From def92d1b8e9d373e2f6f27c366d578d97d8960c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:50 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- .../marionette/actors/MarionetteCommandsChild.sys.mjs | 2 +- remote/marionette/browser.sys.mjs | 19 +------------------ remote/marionette/driver.sys.mjs | 17 ----------------- 3 files changed, 2 insertions(+), 36 deletions(-) (limited to 'remote/marionette') diff --git a/remote/marionette/actors/MarionetteCommandsChild.sys.mjs b/remote/marionette/actors/MarionetteCommandsChild.sys.mjs index 078612da56..d454e03fb0 100644 --- a/remote/marionette/actors/MarionetteCommandsChild.sys.mjs +++ b/remote/marionette/actors/MarionetteCommandsChild.sys.mjs @@ -284,7 +284,7 @@ export class MarionetteCommandsChild extends JSWindowActorChild { const accessible = await lazy.accessibility.getAccessible(elem); if (!accessible) { - return null; + return ""; } // If name is null (absent), expose the empty string. diff --git a/remote/marionette/browser.sys.mjs b/remote/marionette/browser.sys.mjs index d9a867fac5..397bb75a1e 100644 --- a/remote/marionette/browser.sys.mjs +++ b/remote/marionette/browser.sys.mjs @@ -144,23 +144,6 @@ browser.Context = class { }; } - /** - * Retrieves the current tabmodal UI object. According to the browser - * associated with the currently selected tab. - */ - getTabModal() { - let br = this.contentBrowser; - if (!br.hasAttribute("tabmodalPromptShowing")) { - return null; - } - - // The modal is a direct sibling of the browser element. - // See tabbrowser.xml's getTabModalPromptBox. - let modalElements = br.parentNode.getElementsByTagName("tabmodalprompt"); - - return br.tabModalPromptBox.getPrompt(modalElements[0]); - } - /** * Close the current window. * @@ -254,7 +237,7 @@ browser.Context = class { tab = await lazy.TabManager.addTab({ focus, window: this.window }); } else if (lazy.AppInfo.isFirefox) { const opened = new lazy.EventPromise(this.window, "TabOpen"); - this.window.BrowserOpenTab({ url: "about:blank" }); + this.window.BrowserCommands.openTab({ url: "about:blank" }); await opened; tab = this.tabBrowser.selectedTab; diff --git a/remote/marionette/driver.sys.mjs b/remote/marionette/driver.sys.mjs index f4642e756e..6b5b1cf082 100644 --- a/remote/marionette/driver.sys.mjs +++ b/remote/marionette/driver.sys.mjs @@ -3346,23 +3346,6 @@ GeckoDriver.prototype.setPermission = async function (cmd) { const { descriptor, state, oneRealm = false } = cmd.parameters; const browsingContext = lazy.assert.open(this.getBrowsingContext()); - // XXX: WPT should not have these but currently they do and we pass testing pref to - // pass them, see bug 1875837. - if ( - ["clipboard-read", "clipboard-write"].includes(descriptor.name) && - state === "granted" - ) { - if ( - Services.prefs.getBoolPref("dom.events.testing.asyncClipboard", false) - ) { - // Okay, do nothing. The clipboard module will work without permission. - return; - } - throw new lazy.error.UnsupportedOperationError( - "setPermission: expected dom.events.testing.asyncClipboard to be set" - ); - } - // XXX: We currently depend on camera/microphone tests throwing UnsupportedOperationError, // the fix is ongoing in bug 1609427. if (["camera", "microphone"].includes(descriptor.name)) { -- cgit v1.2.3