Accessing currentURI of a lazy browser while the browser is swapped corrupts the cached currentURI
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
Details
Attachments
(1 file)
There was a regression in extensions (bug 1694699) due to an incorrect value for currentURI
. I have fixed the trigger in bug 1694699 for that specific test case and fixed another trigger in bug 1695346. But these fixes didn't touch the root cause in the tabbrowser/session restore code. I'll attach the fix for the root cause along with a regression test to this bug.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1695346#c1 for a concise explanation of the bug (and the fix).
Assignee | ||
Comment 1•4 years ago
|
||
Re-order calls in SessionStore.jsm to invoke the side-effect-free logic
before triggering observable events.
Clear (likely) stale value of the cached currentURI when lazy browsers
are swapped.
And while I was at it, I also fixed a bug that caused a lazy browser to
eagerly be unlazified because the unneeded mute() call on a lazy browser
unlazifies it (discovered when I added complete test coverage for this
change).
Assignee | ||
Comment 2•4 years ago
•
|
||
Dao, do you have time to review this or should I look for a different reviewer?
The fix itself is just one line of code + moving existing code around.
Comment 5•4 years ago
|
||
bugherder |
Description
•