If you open a URL in a new Window and then attach it back, the Right Click->"Duplicate" functionality doesnt work
Categories
(Firefox :: Session Restore, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox110 | --- | wontfix |
| firefox111 | --- | wontfix |
| firefox112 | --- | wontfix |
People
(Reporter: mayankleoboy1, Assigned: farre)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
- Start Nightly with a new profile
- go to URL-bar and press the down key
-> A drop-down menu with pre-populated URL will appear - use the down key to highlight a URL (e.g. youtube,com) and press Shift+Enter
-> Youtube.com will open in a new tab in a new window - Let youttube.com load completely
- Attach the tab with youtube.com to the original Window from Step1
- Right click on the youtube tab->Duplicate
ER: A new tab will open and load youtube.com
AR: A blank tab opens
The steps a somewhat complex. Please see attached video.
Regression:
2023-03-07T08:19:48.290000: DEBUG : Found commit message:
Bug 1774242 - Make sure invariants for the test is correct. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149280
| Reporter | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
Set release status flags based on info from the regressing bug 1774242
:farre, since you are the author of the regressor, bug 1774242, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
| Reporter | ||
Comment 4•3 years ago
|
||
I cant repro this If I wait for some time (15 seconds?) after the tab has loaded, and then re-attach it and try to duplicate the tab. This sounds like it may be related to bug 1798232.
In general, I came across this bug accidentally. I dont think that in the real world, u user will open URL in a new tab, re-attach it to the original window and try ti duplicate the tab within a span of 15 seconds. The bug is real, but severity and user impact is very low IMHO.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 5•3 years ago
|
||
Bug 1774242 is a test, and no functionality is changed. I'm not sure that it's caused by Bug 1798232, but it may have the same root cause. The fact that waiting 15 seconds solves the issue indicates that there is a missing state sync step after re-attaching. I'd actually expect Bug 1798232 to solve this issue as well.
| Assignee | ||
Comment 6•3 years ago
•
|
||
Right, Bug 1798232 almost fixes it. If you perform the STR but add opening another new tab in the new window before dragging the tab back, then duplicating it works, because we dispatch a TabClose event. But if it's the final tab in the window, we'skip TabClose.
| Assignee | ||
Comment 7•3 years ago
|
||
When we move the last tab from a window we loose session history if we
do it before the first write to TabStateCache. To not loose session
history we need to force a session history write to the tab state
cache before the window goes away.
Updated•3 years ago
|
Comment 8•2 years ago
|
||
I wasn't able to reproduce this with the STR in comment 0; the tab duplicated as expected with the correct page. :farre, do you know if this was already fixed, or is the attached patch still something we want to finish up and land?
| Reporter | ||
Comment 9•2 years ago
|
||
I can still repro it
| Assignee | ||
Comment 10•2 years ago
|
||
The attached patch needs updates, unfortunately. I'll try to see if I can find time to finish it.
Updated•2 years ago
|
Description
•