зеркало из https://github.com/mozilla/gecko-dev.git
Merge last of bustage fixup from the plugin UI to electrolysis.
This commit is contained in:
Коммит
2134b2c165
|
@ -1410,6 +1410,7 @@ function BrowserShutdown()
|
|||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.removeObserver(gSessionHistoryObserver, "browser:purge-session-history");
|
||||
os.removeObserver(gXPInstallObserver, "xpinstall-install-blocked");
|
||||
os.removeObserver(gMissingPluginInstaller.pluginCrashed, "plugin-crashed");
|
||||
|
||||
try {
|
||||
gBrowser.removeProgressListener(window.XULBrowserWindow);
|
||||
|
|
|
@ -68,7 +68,7 @@ ifeq ($(OS_ARCH),OS2)
|
|||
TOOL_DIRS += default/os2
|
||||
endif
|
||||
|
||||
ifdef PBBUILD
|
||||
ifdef PBBUILD_BIN
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
||||
TOOL_DIRS += default/mac
|
||||
endif
|
||||
|
|
|
@ -273,8 +273,8 @@ Submitter.prototype = {
|
|||
this.element.removeChild(this.iframe);
|
||||
if (this.errorCallback) {
|
||||
this.errorCallback(this.id);
|
||||
this.cleanup();
|
||||
}
|
||||
this.cleanup();
|
||||
return 0;
|
||||
}
|
||||
// check HTTP status
|
||||
|
@ -283,8 +283,8 @@ Submitter.prototype = {
|
|||
this.element.removeChild(this.iframe);
|
||||
if (this.errorCallback) {
|
||||
this.errorCallback(this.id);
|
||||
this.cleanup();
|
||||
}
|
||||
this.cleanup();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -303,8 +303,10 @@ Submitter.prototype = {
|
|||
submit: function Submitter_submit()
|
||||
{
|
||||
let [dump, extra] = getPendingMinidump(this.id);
|
||||
if (!dump.exists() || !extra.exists())
|
||||
if (!dump.exists() || !extra.exists()) {
|
||||
this.cleanup();
|
||||
return false;
|
||||
}
|
||||
this.dump = dump;
|
||||
this.extra = extra;
|
||||
let iframe = this.document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "iframe");
|
||||
|
@ -315,7 +317,8 @@ Submitter.prototype = {
|
|||
if (iframe.contentWindow.location == "about:blank")
|
||||
return;
|
||||
iframe.removeEventListener("load", loadHandler, true);
|
||||
self.submitForm();
|
||||
if (!self.submitForm())
|
||||
self.cleanup();
|
||||
}
|
||||
|
||||
iframe.addEventListener("load", loadHandler, true);
|
||||
|
|
|
@ -137,7 +137,7 @@ nsEnvironment::Get(const nsAString& aName, nsAString& aOutValue)
|
|||
* vars.
|
||||
*/
|
||||
|
||||
typedef nsBaseHashtableET<nsCStringHashKey,char*> EnvEntryType;
|
||||
typedef nsBaseHashtableET<nsCharPtrHashKey,char*> EnvEntryType;
|
||||
typedef nsTHashtable<EnvEntryType> EnvHashType;
|
||||
|
||||
static EnvHashType *gEnvHash = nsnull;
|
||||
|
@ -178,7 +178,7 @@ nsEnvironment::Set(const nsAString& aName, const nsAString& aValue)
|
|||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
EnvEntryType* entry = gEnvHash->PutEntry(nativeName);
|
||||
EnvEntryType* entry = gEnvHash->PutEntry(nativeName.get());
|
||||
if (!entry) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче