Open Bug 1693120 Opened 5 years ago

onLocationChange handler "consumers" in browser.js / tabbrowser.js should not update internal state for subframe loads

Categories

(Firefox :: Tabbed Browser, defect)

Desktop
All
defect

Tracking

()

Tracking Status
firefox87 --- affected

People

(Reporter: Gijs, Unassigned)

Details

Unfortunately there are a number of places in our onLocationChange handlers not guarded by an isTopLevel check, e.g. https://searchfox.org/mozilla-central/rev/5120ec68572d946bd15101cf2ee2eaf4a210724f/browser/base/content/browser.js#5222 , https://searchfox.org/mozilla-central/rev/5120ec68572d946bd15101cf2ee2eaf4a210724f/browser/base/content/browser.js#5241-5251 , that really should be.

This means some of those features probably don't work properly on pages with subframes, and/or where they do, it's by accident.

We should audit for this and fix it.

You need to log in before you can comment on or make changes to this bug.