Duplicating a tab after moving to a new window opens wrong site
Categories
(Firefox :: Tabbed Browser, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox106 | --- | wontfix |
firefox107 | --- | wontfix |
firefox108 | --- | verified |
People
(Reporter: calvin, Assigned: farre)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Steps to reproduce:
I can reproduce on a new Firefox profile and the latest Nightly (Build ID 20221030090504) by following these steps:
- Open a new tab, paste https://example.com in the address bar, and press Enter.
- Move the tab to a new window. (Right click the tab for context menu -> Move Tab -> Move to New Window. If this option is disabled, first open another tab so there is more than one tab in the window.)
- Duplicate the tab. (Right click the tab for context menu -> Duplicate Tab.)
Actual results:
Another tab is opened to the site before navigation to https://example.com.
Expected results:
Another tab is opened to https://example.com.
Reporter | ||
Updated•2 years ago
|
![]() |
||
Updated•2 years ago
|
![]() |
||
Comment 1•2 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=b79ebf7f49d8e071c6ceec3f9d19852bf2eba4fe&tochange=2e7ecad460f2be1275a59b7f55c4ff5a8fe3274e
Tentatively marked Bug 1756995 as a regressor.
Comment 2•2 years ago
|
||
:farre, since you are the author of the regressor, bug 1756995, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
If you do:
- Open a new tab, paste https://example.com in the address bar, and press Enter.
- Wait for more than 15 seconds
- Move the tab to a new window. (Right click the tab for context menu -> Move Tab -> Move to New Window. If this option is disabled, first open another tab so there is more than one tab in the window.)
- Duplicate the tab. (Right click the tab for context menu -> Duplicate Tab.)
then this does not reproduce. And the reason for this is that the session store tab state hasn't been flushed before moving the window.
Assignee | ||
Comment 4•2 years ago
|
||
Turns out that the problem is that we don't explicitly flush a tab's session store state before moving, and the reason that bug 1756995 regressed this is that nsDocShell::EndPageLoad
used to force a flush (which was bad), but bug 1756995 fixed that. And then this issue surfaced.
Assignee | ||
Comment 5•2 years ago
|
||
Assignee | ||
Comment 6•2 years ago
|
||
When moving a tab to a new window, the tab state needs to be flushed
and then copied over. Copying the current state could possibly miss
out on any buffered changes. Unfortunately we can't wait for the flush
to complete and then move, so we need to force the old state on top of
the new.
Comment 8•2 years ago
|
||
bugherder |
Comment 9•2 years ago
|
||
Reproduced the issue in Beta 107.0b8 using Windows 10.
Verified - Fixed in latest Nightly 108.0a1 (build id: 20221102174350).
Updated•2 years ago
|
Description
•