commit ba268eeb0f862bb0738980c064f206891c81e6c5 parent 95b3548f2de41a6d8dbdd4617a2da6a098609177 Author: Henrik Skupin <mail@hskupin.info> Date: Tue, 9 Dec 2025 14:06:19 +0000 Bug 1944568 - [remote] Only delay the "attached" event for browsing contexts in a content process. r=jdescottes Differential Revision: https://phabricator.services.mozilla.com/D270533 Diffstat:
| M | remote/shared/listeners/BrowsingContextListener.sys.mjs | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/remote/shared/listeners/BrowsingContextListener.sys.mjs b/remote/shared/listeners/BrowsingContextListener.sys.mjs @@ -64,9 +64,9 @@ export class BrowsingContextListener { observe(subject, topic, data) { switch (topic) { case OBSERVER_TOPIC_ATTACHED: - // Delay emitting the event for top-level browsing contexts until - // the embedder element has been set. - if (!subject.parent) { + // Delay emitting the event for top-level browsing contexts in + // the content process until the embedder element has been set. + if (subject.isContent && !subject.parent) { this.#topContextsToAttach.set(subject, data); return; }