зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1147064 - Add positive/negative to buttons. r=margaret
--HG-- extra : rebase_source : 4b94763957288a5f7dca559d6ad8cd798033125b
This commit is contained in:
Родитель
3cf5991a56
Коммит
95171a3069
|
@ -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
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче