Closed Bug 1579097 Opened 6 years ago Closed 6 years ago

nsFrameLoader::GetBrowsingContext forces initialization

Categories

(Core :: DOM: Navigation, task, P3)

task

Tracking

()

RESOLVED WONTFIX
Fission Milestone M5

People

(Reporter: nika, Unassigned)

Details

Currently, when calling nsFrameLoader::GetBrowsingContext, logic to force initialization of the remote browser is run, despite the BrowsingContext having already been created as mBrowsingContext. This is likely unnecessary.

A quick attempt to remove it as part of other changes appears to have caused test breakage, so this initialization appears to be load-bearing in some way or another. I have not spent much time trying to figure out why.

https://searchfox.org/mozilla-central/rev/e5327b05c822cdac24e233afa37d72c0552dbbaf/dom/base/nsFrameLoader.cpp#3218-3226

Priority: -- → P3

The problem is that mBrowsingContext and GetBrowsingContext() are only sometimes the same thing. Which is a pretty big footgun that I've been meaning to fix.

Tentatively moving all bugs whose summaries mention "Fission" (or other Fission-related keywords) but are not assigned to a Fission Milestone to the "?" triage milestone.

This will generate a lot of bugmail, so you can filter your bugmail for the following UUID and delete them en masse:

0ee3c76a-bc79-4eb2-8d12-05dc0b68e732

Fission Milestone: --- → ?

Assigning to kmag because he has a patch up for review on a related bug.

Tracking for Fission dogfooding (M5)

Assignee: nobody → kmaglione+bmo
Fission Milestone: ? → M5

Nika filed this bug, but she now says it's not worth fixing and recommends resolving WONTFIX.

Assignee: kmaglione+bmo → nobody
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.