Merge last of bustage fixup from the plugin UI to electrolysis.

This commit is contained in:
Benjamin Smedberg 2010-02-10 14:25:01 -05:00
Родитель 018e91c891 3913348852
Коммит 2134b2c165
4 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

@ -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;
}