History remembers url instead of title for prematurely inserted lazy browsers
Categories
(Firefox :: Session Restore, defect)
Tracking
()
People
(Reporter: Oriol, Unassigned)
References
Details
(Keywords: regression, Whiteboard: [sng] steps in comment 35)
Attachments
(4 files)
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
| Reporter | ||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
| Reporter | ||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
| Reporter | ||
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
| Reporter | ||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
| Reporter | ||
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
| Reporter | ||
Comment 21•8 years ago
|
||
Comment 22•8 years ago
|
||
| Reporter | ||
Comment 23•8 years ago
|
||
Comment 24•8 years ago
|
||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 27•8 years ago
|
||
| Reporter | ||
Comment 28•8 years ago
|
||
Comment 29•8 years ago
|
||
| Reporter | ||
Comment 30•8 years ago
|
||
| Reporter | ||
Comment 31•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 32•7 years ago
|
||
Comment 33•7 years ago
|
||
| Reporter | ||
Comment 34•7 years ago
|
||
| Reporter | ||
Comment 35•7 years ago
|
||
| str | ||
| Reporter | ||
Comment 36•7 years ago
|
||
Comment 37•7 years ago
|
||
| Reporter | ||
Comment 38•7 years ago
|
||
| Reporter | ||
Comment 39•7 years ago
|
||
| Reporter | ||
Comment 40•7 years ago
|
||
| Reporter | ||
Comment 41•7 years ago
|
||
Comment 42•7 years ago
|
||
Comment 43•7 years ago
|
||
Comment 44•7 years ago
|
||
Comment 45•7 years ago
|
||
Comment 46•7 years ago
|
||
Updated•7 years ago
|
Comment 47•7 years ago
|
||
| Reporter | ||
Comment 48•7 years ago
|
||
Comment 49•7 years ago
|
||
Comment 50•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Comment 51•1 year ago
|
||
Dao, do you think this is something that could be fixed on the tabbed browser side, or should we modify the docshell to not update title if there's not <title> tag (or if the browser has certain characteristics)?
Updated•1 year ago
|
Updated•1 year ago
|
Comment 52•1 year ago
|
||
(In reply to Marco Bonardo [:mak] from comment #51)
Dao, do you think this is something that could be fixed on the tabbed browser side, or should we modify the docshell to not update title if there's not <title> tag (or if the browser has certain characteristics)?
We chatted about this. To sum things up, this bug happens (supposedly; I'm not quite sure that it actually still reproduces) when trying to access something on a lazy browser (a browser that isn't inserted into the document), causing us to unlazify / insert the browser: https://searchfox.org/mozilla-central/rev/109bb25545f0d2df31954dc0a9afbf30d900b6bb/browser/base/content/tabbrowser.js#2300
Upon inserting the browser, we end up running ContentRestore::restoreHistory, which calls webNavigation.setCurrentURIForSessionStore:
https://searchfox.org/mozilla-central/rev/109bb25545f0d2df31954dc0a9afbf30d900b6bb/browser/components/sessionstore/ContentRestore.sys.mjs#116
And then setCurrentURIForSessionStore ends up calling setCurrentURI and invalidating mTitleValidForCurrentURI: https://searchfox.org/mozilla-central/rev/109bb25545f0d2df31954dc0a9afbf30d900b6bb/docshell/base/nsDocShell.cpp#1535-1537
It may make sense to move this to Core::DOM: Navigation, as docshell code is responsible here following the setCurrentURIForSessionStore call.
Updated•1 year ago
|
Comment 53•1 year ago
|
||
So we're not sure this can even still happen. I tried to reproduce this with the steps from comment 35 but can't seem to get the title to disappear. Oriol, can you still reproduce this?
| Reporter | ||
Comment 54•1 year ago
|
||
Well, this required disabling e10s, which nowadays is not easy at all.
Anyways, I have bisected and this was seemingly fixed in https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=56166cae2e26429f4786ad1013adae78189a12e8&tochange=29ba77e279e4346ecf071b81c8fb171115b266d1
Possibly by bug 1589102?
Updated•1 year ago
|
Description
•