tor-browser

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

commit 95b3548f2de41a6d8dbdd4617a2da6a098609177
parent 90a83023c9ccaa35a3e46b2438456faa82772306
Author: Henrik Skupin <mail@hskupin.info>
Date:   Tue,  9 Dec 2025 14:06:18 +0000

Bug 1944568 - [remote] Only observe content process browsing contexts with the ParentWebProgressListener. r=jdescottes

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

Diffstat:
Mremote/shared/listeners/ParentWebProgressListener.sys.mjs | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/remote/shared/listeners/ParentWebProgressListener.sys.mjs b/remote/shared/listeners/ParentWebProgressListener.sys.mjs @@ -248,13 +248,18 @@ export class ParentWebProgressListener { #onContextAttached = async (eventName, data) => { const { browsingContext } = data; - this.#startWatchingBrowsingContextNavigation(browsingContext); + + if (browsingContext.isContent) { + this.#startWatchingBrowsingContextNavigation(browsingContext); + } }; #onContextDiscarded = async (eventName, data = {}) => { const { browsingContext } = data; - this.#stopWatchingBrowsingContextNavigation(browsingContext); + if (browsingContext.isContent) { + this.#stopWatchingBrowsingContextNavigation(browsingContext); + } }; #startWatchingBrowsingContextNavigation(browsingContext) {