From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- testing/specialpowers/content/MockFilePicker.sys.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/specialpowers/content/MockFilePicker.sys.mjs') diff --git a/testing/specialpowers/content/MockFilePicker.sys.mjs b/testing/specialpowers/content/MockFilePicker.sys.mjs index ee2f11af75..0ce8c25d4e 100644 --- a/testing/specialpowers/content/MockFilePicker.sys.mjs +++ b/testing/specialpowers/content/MockFilePicker.sys.mjs @@ -48,11 +48,11 @@ export var MockFilePicker = { window: null, pendingPromises: [], - init(window) { - this.window = window; + init(browsingContext) { + this.window = browsingContext.window; this.reset(); - this.factory = newFactory(window); + this.factory = newFactory(this.window); if (!registrar.isCIDRegistered(newClassID)) { oldClassID = registrar.contractIDToCID(CONTRACT_ID); registrar.registerFactory(newClassID, "", CONTRACT_ID, this.factory); -- cgit v1.2.3