diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /browser/components/originattributes/test | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/originattributes/test')
-rw-r--r-- | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | 3 | ||||
-rw-r--r-- | browser/components/originattributes/test/browser/browser_httpauth.js | 19 |
2 files changed, 5 insertions, 17 deletions
diff --git a/browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js b/browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js index b51ac12849..c54bb1aec1 100644 --- a/browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js +++ b/browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js @@ -27,7 +27,7 @@ const TEST_PATH_PAGE = `${TEST_BASE_PATH}file_favicon.png`; const TEST_PATH_FRAME = `${TEST_BASE_PATH}file_favicon.png`; let MockFilePicker = SpecialPowers.MockFilePicker; -MockFilePicker.init(window); +MockFilePicker.init(window.browsingContext); const tempDir = createTemporarySaveDirectory(); MockFilePicker.displayDirectory = tempDir; @@ -38,6 +38,7 @@ add_setup(async function () { set: [ ["privacy.firstparty.isolate", true], ["dom.security.https_first", false], + ["dom.block_download_insecure", false], ], }); diff --git a/browser/components/originattributes/test/browser/browser_httpauth.js b/browser/components/originattributes/test/browser/browser_httpauth.js index 085d493c1b..b2e95e13ac 100644 --- a/browser/components/originattributes/test/browser/browser_httpauth.js +++ b/browser/components/originattributes/test/browser/browser_httpauth.js @@ -6,11 +6,6 @@ let authPromptModalType = Services.prefs.getIntPref( "prompts.modalType.httpAuth" ); -let commonDialogEnabled = - authPromptModalType === Services.prompt.MODAL_TYPE_WINDOW || - (authPromptModalType === Services.prompt.MODAL_TYPE_TAB && - Services.prefs.getBoolPref("prompts.tabChromePromptSubDialog")); - let server = new HttpServer(); server.registerPathHandler("/file.html", fileHandler); server.start(-1); @@ -38,23 +33,15 @@ function fileHandler(metadata, response) { } function onCommonDialogLoaded(subject) { - let dialog; - if (commonDialogEnabled) { - dialog = subject.Dialog; - } else { - let promptBox = - subject.ownerGlobal.gBrowser.selectedBrowser.tabModalPromptBox; - dialog = promptBox.getPrompt(subject).Dialog; - } + let dialog = subject.Dialog; + // Submit random account and password dialog.ui.loginTextbox.setAttribute("value", Math.random()); dialog.ui.password1Textbox.setAttribute("value", Math.random()); dialog.ui.button0.click(); } -let authPromptTopic = commonDialogEnabled - ? "common-dialog-loaded" - : "tabmodal-dialog-loaded"; +let authPromptTopic = "common-dialog-loaded"; Services.obs.addObserver(onCommonDialogLoaded, authPromptTopic); registerCleanupFunction(() => { |