mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703523 - #ifdef some windows and crash reporter specific parts of browser.js. r=gavin
This commit is contained in:
parent
0d8f2ba3a8
commit
145a32c539
@ -1662,12 +1662,14 @@ function delayedStartup(isLoadingBlank, mustLoadSidebar) {
|
||||
gDownloadMgr = Cc["@mozilla.org/download-manager;1"].
|
||||
getService(Ci.nsIDownloadManager);
|
||||
|
||||
#ifdef XP_WIN
|
||||
if (Win7Features) {
|
||||
let tempScope = {};
|
||||
Cu.import("resource://gre/modules/DownloadTaskbarProgress.jsm",
|
||||
tempScope);
|
||||
tempScope.DownloadTaskbarProgress.onBrowserWindowLoad(window);
|
||||
}
|
||||
#endif
|
||||
}, 10000);
|
||||
|
||||
#ifndef XP_MACOSX
|
||||
@ -6992,11 +6994,13 @@ function getPluginInfo(pluginElement)
|
||||
|
||||
var gPluginHandler = {
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
get CrashSubmit() {
|
||||
delete this.CrashSubmit;
|
||||
Cu.import("resource://gre/modules/CrashSubmit.jsm", this);
|
||||
return this.CrashSubmit;
|
||||
},
|
||||
#endif
|
||||
|
||||
// Map the plugin's name to a filtered version more suitable for user UI.
|
||||
makeNicePluginName : function (aName, aFilename) {
|
||||
@ -7136,6 +7140,7 @@ var gPluginHandler = {
|
||||
BrowserOpenAddonsMgr("addons://list/plugin");
|
||||
},
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
// Callback for user clicking "submit a report" link
|
||||
submitReport : function(pluginDumpID, browserDumpID) {
|
||||
// The crash reporter wants a DOM element it can append an IFRAME to,
|
||||
@ -7144,6 +7149,7 @@ var gPluginHandler = {
|
||||
if (browserDumpID)
|
||||
this.CrashSubmit.submit(browserDumpID);
|
||||
},
|
||||
#endif
|
||||
|
||||
// Callback for user clicking a "reload page" link
|
||||
reloadPage: function (browser) {
|
||||
|
Loading…
Reference in New Issue
Block a user