summaryrefslogtreecommitdiffstats
path: root/toolkit/components/printing/tests/head.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/printing/tests/head.js')
-rw-r--r--toolkit/components/printing/tests/head.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/printing/tests/head.js b/toolkit/components/printing/tests/head.js
index a69faa436e..4c8c0b26b6 100644
--- a/toolkit/components/printing/tests/head.js
+++ b/toolkit/components/printing/tests/head.js
@@ -521,7 +521,7 @@ class PrintHelper {
mockFilePickerCancel() {
if (!pickerMocked) {
pickerMocked = true;
- MockFilePicker.init(window);
+ MockFilePicker.init(window.browsingContext);
registerCleanupFunction(() => MockFilePicker.cleanup());
}
MockFilePicker.returnValue = MockFilePicker.returnCancel;
@@ -530,7 +530,7 @@ class PrintHelper {
mockFilePicker(filename) {
if (!pickerMocked) {
pickerMocked = true;
- MockFilePicker.init(window);
+ MockFilePicker.init(window.browsingContext);
registerCleanupFunction(() => MockFilePicker.cleanup());
}
MockFilePicker.returnValue = MockFilePicker.returnOK;