зеркало из https://github.com/mozilla/gecko-dev.git
Bug 613785 - Tab modal http auth prompts. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D75568
This commit is contained in:
Родитель
d8204e01b9
Коммит
34b29e1e72
|
@ -4550,6 +4550,14 @@ pref("browser.sanitizer.loglevel", "Warn");
|
|||
// To disable blocking of auth prompts, set the limit to -1.
|
||||
pref("prompts.authentication_dialog_abuse_limit", 2);
|
||||
|
||||
// The prompt type to use for http auth prompts
|
||||
// content: 1, tab: 2, window: 3
|
||||
#ifdef NIGHTLY_BUILD
|
||||
pref("prompts.modalType.httpAuth", 2);
|
||||
#else
|
||||
pref("prompts.modalType.httpAuth", 3);
|
||||
#endif
|
||||
|
||||
// Payment Request API preferences
|
||||
pref("dom.payments.loglevel", "Warn");
|
||||
pref("dom.payments.defaults.saveCreditCard", false);
|
||||
|
|
|
@ -752,8 +752,9 @@ LoginManagerAuthPrompter.prototype = {
|
|||
this._browser
|
||||
);
|
||||
}
|
||||
ok = Services.prompt.promptAuth(
|
||||
this._chromeWindow,
|
||||
ok = Services.prompt.promptAuthBC(
|
||||
this._browser.browsingContext,
|
||||
LoginManagerAuthPrompter.promptAuthModalType,
|
||||
aChannel,
|
||||
aLevel,
|
||||
aAuthInfo,
|
||||
|
@ -1292,6 +1293,13 @@ XPCOMUtils.defineLazyGetter(LoginManagerAuthPrompter.prototype, "log", () => {
|
|||
return logger.log.bind(logger);
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(
|
||||
LoginManagerAuthPrompter,
|
||||
"promptAuthModalType",
|
||||
"prompts.modalType.httpAuth",
|
||||
Services.prompt.MODAL_TYPE_WINDOW
|
||||
);
|
||||
|
||||
const EXPORTED_SYMBOLS = [
|
||||
"LoginManagerAuthPromptFactory",
|
||||
"LoginManagerAuthPrompter",
|
||||
|
|
Загрузка…
Ссылка в новой задаче