mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147064 - Add positive/negative to buttons. r=margaret
This commit is contained in:
parent
123866ad64
commit
68367db37c
@ -39,7 +39,8 @@ var OfflineApps = {
|
||||
label: strings.GetStringFromName("offlineApps.allow"),
|
||||
callback: function() {
|
||||
OfflineApps.allowSite(aContentWindow.document);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
|
||||
let requestor = BrowserApp.manifest ? "'" + BrowserApp.manifest.name + "'" : host;
|
||||
|
@ -45,7 +45,8 @@ var PluginHelper = {
|
||||
Services.perms.add(uri, "plugins", Ci.nsIPermissionManager.ALLOW_ACTION);
|
||||
|
||||
PluginHelper.playAllPlugins(aTab.browser.contentWindow);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -113,7 +113,8 @@ var WebrtcUI = {
|
||||
allowedDevices.AppendElement(videoDevices[videoId]);
|
||||
|
||||
Services.obs.notifyObservers(allowedDevices, "getUserMedia:response:allow", aCallID);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
},
|
||||
|
||||
|
@ -3064,7 +3064,8 @@ var LightWeightThemeWebInstaller = {
|
||||
label: allowButtonText,
|
||||
callback: function () {
|
||||
LightWeightThemeWebInstaller._install(data);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
|
||||
NativeWindow.doorhanger.show(message, "Personas", buttons, BrowserApp.selectedTab.id);
|
||||
@ -6259,7 +6260,8 @@ var XPInstallObserver = {
|
||||
// Kick off the install
|
||||
installInfo.install();
|
||||
return false;
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
}
|
||||
NativeWindow.doorhanger.show(message, aTopic, buttons, tab.id);
|
||||
@ -6353,7 +6355,8 @@ var XPInstallObserver = {
|
||||
let appStartup = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup);
|
||||
appStartup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
|
||||
}
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
|
||||
let message = Strings.browser.GetStringFromName("notificationRestart.normal");
|
||||
@ -6663,7 +6666,8 @@ var PopupBlockerObserver = {
|
||||
PopupBlockerObserver.allowPopupsForSite(true);
|
||||
|
||||
PopupBlockerObserver.showPopupsForSite();
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}
|
||||
];
|
||||
|
||||
@ -6779,7 +6783,8 @@ var IndexedDB = {
|
||||
callback: function() {
|
||||
clearTimeout(timeoutId);
|
||||
observer.observe(null, responseTopic, Ci.nsIPermissionManager.ALLOW_ACTION);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
|
||||
let options = { checkbox: Strings.browser.GetStringFromName("offlineApps.dontAskAgain") };
|
||||
|
@ -120,7 +120,8 @@ ContentPermissionPrompt.prototype = {
|
||||
}
|
||||
|
||||
request.allow();
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}];
|
||||
|
||||
let requestor = chromeWin.BrowserApp.manifest ? "'" + chromeWin.BrowserApp.manifest.name + "'" : request.principal.URI.host;
|
||||
|
@ -225,7 +225,8 @@ LoginManagerPrompter.prototype = {
|
||||
}
|
||||
pwmgr.addLogin(aLogin);
|
||||
promptHistogram.add(PROMPT_ADD);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}
|
||||
];
|
||||
|
||||
@ -282,7 +283,8 @@ LoginManagerPrompter.prototype = {
|
||||
callback: function() {
|
||||
self._updateLogin(aOldLogin, aNewPassword);
|
||||
promptHistogram.add(PROMPT_UPDATE);
|
||||
}
|
||||
},
|
||||
positive: true
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user