Page MenuHomePhabricator

Bug 1813341 - Check topBrowsingContext is not null before using it. r?ochameau
ClosedPublic

Authored by def00111 on Jan 28 2023, 10:12 PM.
Referenced Files
Unknown Object (File)
Thu, May 1, 6:55 AM
Unknown Object (File)
Thu, Apr 17, 9:45 AM
Unknown Object (File)
Wed, Apr 16, 10:42 PM
Unknown Object (File)
Apr 9 2025, 10:16 PM
Unknown Object (File)
Mar 15 2025, 6:06 AM
Unknown Object (File)
Mar 1 2025, 6:57 AM
Unknown Object (File)
Feb 16 2025, 7:21 AM
Unknown Object (File)
Feb 1 2025, 7:25 AM
Subscribers
None

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Lint Not Applicable
Unit
Tests Not Applicable
Build Status
Buildable 504185
Build 600525: arc lint + arc unit

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

testing: this prevents an exception involving an addon, which doesn't really break anything.

devtools/server/actors/watcher/browsing-context-helpers.sys.mjs
382–391

Could you add a comment to mention that we may not have any BrowsingContext if this code runs against an unloaded tab?

This revision is now accepted and ready to land.Feb 1 2023, 7:43 PM
devtools/server/actors/watcher/browsing-context-helpers.sys.mjs
382–391

Is this comment ok?

devtools/server/actors/watcher/browsing-context-helpers.sys.mjs
382–391

Yes, thanks for your contribution!