diff options
Diffstat (limited to 'uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js')
-rw-r--r-- | uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js b/uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js index 0f80af5ac5..082c278b69 100644 --- a/uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js +++ b/uriloader/exthandler/tests/mochitest/browser_download_spam_permissions.js @@ -18,7 +18,7 @@ const TEST_PATH = getRootDirectory(gTestPath).replace( const AUTOMATIC_DOWNLOAD_TOPIC = "blocked-automatic-download"; var MockFilePicker = SpecialPowers.MockFilePicker; -MockFilePicker.init(window); +MockFilePicker.init(window.browsingContext); registerCleanupFunction(() => MockFilePicker.cleanup()); let gTempDownloadDir; @@ -140,7 +140,7 @@ async function savelink() { await popupShown; await new Promise(resolve => { - MockFilePicker.showCallback = function (fp) { + MockFilePicker.showCallback = function () { resolve(); let file = gTempDownloadDir.clone(); file.append("file_with__funny_name.png"); |