tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 7a607605563fcfb274fc87e56ff933d9308a601b
parent 95529d6d243519d7ce68c8a66a3a04496036e4b2
Author: Henrik Skupin <mail@hskupin.info>
Date:   Tue, 16 Dec 2025 12:03:47 +0000

Bug 1851788 - [webdriver-bidi] "browsingContext.close" has to use _getNavigable as well. r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D276227

Diffstat:
Mremote/webdriver-bidi/modules/root/browsingContext.sys.mjs | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/remote/webdriver-bidi/modules/root/browsingContext.sys.mjs b/remote/webdriver-bidi/modules/root/browsingContext.sys.mjs @@ -554,13 +554,7 @@ class BrowsingContextModule extends RootBiDiModule { lazy.pprint`Expected "promptUnload" to be a boolean, got ${promptUnload}` ); - const context = lazy.NavigableManager.getBrowsingContextById(contextId); - if (!context) { - throw new lazy.error.NoSuchFrameError( - `Browsing Context with id ${contextId} not found` - ); - } - + const context = this._getNavigable(contextId); lazy.assert.topLevel( context, lazy.pprint`Browsing context with id ${contextId} is not top-level`