Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2640953d8b | ||
|
|
7eb7d67f7a | ||
|
|
e28860ba7f | ||
|
|
49a96b1d91 | ||
|
|
3130812693 | ||
|
|
71ae69aea8 | ||
|
|
9e34d697c7 | ||
|
|
8fa9125d02 | ||
|
|
4b4488c3e4 | ||
|
|
248db7d301 | ||
|
|
e199f2949b | ||
|
|
456b5450a4 | ||
|
|
d8e629c4a3 | ||
|
|
4898c4f297 | ||
|
|
7cd578bbc6 | ||
|
|
1e91df628a | ||
|
|
b110549cbd | ||
|
|
971047835a | ||
|
|
dd4d9eb032 | ||
|
|
8b94f1e480 | ||
|
|
c89610a5c7 | ||
|
|
217963cbed | ||
|
|
c4f4e18340 | ||
|
|
8a7c0e7345 | ||
|
|
52e304d450 | ||
|
|
cfc0eeca53 | ||
|
|
ebd3dd9228 | ||
|
|
cb40e4e7ef | ||
|
|
662dba55fd | ||
|
|
8760ce023c | ||
|
|
b86e148bb7 | ||
|
|
9e83721e5e | ||
|
|
dc2d6c2e60 | ||
|
|
4ada6f6762 |
No files matched your search
@@ -1480,6 +1480,16 @@ nsresult nsPluginInstanceOwner::DispatchFocusToPlugin(nsIDOMEvent* aFocusEvent)
|
||||
|
||||
nsresult nsPluginInstanceOwner::ProcessKeyPress(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
// ProcessKeyPress() may be called twice with same eKeyPress event because we
|
||||
// listen in both the default and system event groups (to capture keypresses
|
||||
// potentially captured by plugins that are not printable keys).
|
||||
// When this is called in the latter case and the event must be fired in the
|
||||
// default event group too, we don't need to do anything else and can return.
|
||||
if (!aKeyEvent->WidgetEventPtr()->mFlags.mOnlySystemGroupDispatchInContent &&
|
||||
aKeyEvent->WidgetEventPtr()->mFlags.mInSystemGroup) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
return DispatchKeyToPlugin(aKeyEvent);
|
||||
#else
|
||||
@@ -2547,6 +2557,7 @@ nsPluginInstanceOwner::Destroy()
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("mouseover"), this, false);
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("mouseout"), this, false);
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("keypress"), this, true);
|
||||
content->RemoveSystemEventListener(NS_LITERAL_STRING("keypress"), this, true);
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("keydown"), this, true);
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("keyup"), this, true);
|
||||
content->RemoveEventListener(NS_LITERAL_STRING("drop"), this, true);
|
||||
@@ -2856,25 +2867,22 @@ nsresult nsPluginInstanceOwner::Init(nsIContent* aContent)
|
||||
// register context menu listener
|
||||
mCXMenuListener = new nsPluginDOMContextMenuListener(aContent);
|
||||
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("focus"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("blur"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseup"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mousedown"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mousemove"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("click"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("dblclick"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseover"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseout"), this, false,
|
||||
false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("focus"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("blur"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseup"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mousedown"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mousemove"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("click"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("dblclick"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseover"), this, false, false);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("mouseout"), this, false, false);
|
||||
|
||||
// The "keypress" event should be handled when it's in the default event group
|
||||
// if the event is fired in content.
|
||||
// Otherwise, it should be handled when it's in the system event group.
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("keypress"), this, true);
|
||||
aContent->AddSystemEventListener(NS_LITERAL_STRING("keypress"), this, true);
|
||||
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("keydown"), this, true);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("keyup"), this, true);
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("drop"), this, true);
|
||||
|
||||
@@ -141,6 +141,11 @@ nsJXLDecoder::ReadJXLData(const char* aData, size_t aLength)
|
||||
Nothing(), SurfacePipeFlags());
|
||||
for (uint8_t* rowPtr = mOutBuffer.begin(); rowPtr < mOutBuffer.end();
|
||||
rowPtr += mInfo.xsize * 4) {
|
||||
// FIXME: Quick and dirty BGRA to RGBA conversion.
|
||||
// We currently have a channel ordering mis-match here.
|
||||
for (uint8_t* pixPtr = rowPtr; pixPtr < rowPtr + mInfo.xsize * 4; pixPtr+=4){
|
||||
std::swap(pixPtr[0], pixPtr[2]);
|
||||
}
|
||||
pipe->WriteBuffer(reinterpret_cast<uint32_t*>(rowPtr));
|
||||
}
|
||||
|
||||
|
||||
@@ -613,14 +613,6 @@ function UpdateParser(aId, aUpdateKey, aUrl, aObserver) {
|
||||
let requireBuiltIn = Services.prefs.getBoolPref(PREF_UPDATE_REQUIREBUILTINCERTS, true);
|
||||
|
||||
logger.debug("Requesting " + aUrl);
|
||||
|
||||
if (!aUrl) {
|
||||
logger.warn("Request failed: empty update manifest URL");
|
||||
this._doneAt = new Error("UP_emptyManifestURL");
|
||||
this.notifyError(AddonUpdateChecker.ERROR_DOWNLOAD_ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
this.request = new ServiceRequest();
|
||||
this.request.open("GET", this.url, true);
|
||||
|
||||
@@ -1720,14 +1720,11 @@ nsLocalFile::GetNativeTarget(nsACString& aResult)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
ssize_t written = readlink(mPath.get(), target.BeginWriting(), size_t(size));
|
||||
if (written < 0) {
|
||||
if (readlink(mPath.get(), target, (size_t)size) < 0) {
|
||||
free(target);
|
||||
return NSRESULT_FOR_ERRNO();
|
||||
}
|
||||
// Target might have changed since the lstat call, or lstat might lie, see bug
|
||||
// 1791029.
|
||||
target.Truncate(written);
|
||||
target[size] = '\0';
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
nsCOMPtr<nsIFile> self(this);
|
||||
@@ -1778,15 +1775,12 @@ nsLocalFile::GetNativeTarget(nsACString& aResult)
|
||||
size = newSize;
|
||||
}
|
||||
|
||||
ssize_t linkLen = readlink(flatRetval.get(), target, size);
|
||||
int32_t linkLen = readlink(flatRetval.get(), target, size);
|
||||
if (linkLen == -1) {
|
||||
rv = NSRESULT_FOR_ERRNO();
|
||||
break;
|
||||
}
|
||||
// Target might have changed since the lstat call, or lstat might lie, see bug
|
||||
// 1791029.
|
||||
newTarget.Truncate(linkLen);
|
||||
target = newTarget;
|
||||
target[linkLen] = '\0';
|
||||
}
|
||||
|
||||
free(target);
|
||||
|
||||
Reference in new issue
Block a user