Closed Bug 1357098 Opened 8 years ago Closed 8 years ago

Pinned tabs are not restored after browser restart

Categories

(Firefox :: Session Restore, defect)

55 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 55
Tracking Status
firefox-esr52 --- unaffected
firefox53 --- unaffected
firefox54 --- unaffected
firefox55 --- verified

People

(Reporter: aleksandrs, Assigned: mconley)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

Steps: 1. Created new profile 2. Navigated to "example.com" page 3. Pinned "example.com" tab 4. Opened new window 5. Navigated to "example.org" in a new window 6. Pinned "example.org" tab 7. Closed browser 8. Reopened browser Result: Browser started with two windows. Only "example.com" pinned tab has been restored in its window. Second window contains two blank tabs. "example.org" pinned tab has been lost Expected result: Browser starts with two windows. Both "example.com" and "example.com" are pinned and available in respective windows.
Correction > Both "example.com" and "example.com" are pinned and available in respective windows. should be read as > Both "example.com" and "example.org" are pinned and available in respective windows.
FWIW, right after relaunch browser console contains error - "TypeError: tabAtTargetIndex is undefined" with backtrace to https://dxr.mozilla.org/mozilla-central/rev/c697e756f738ce37abc56f31bfbc48f55625d617/browser/components/sessionstore/SessionStore.jsm#3329
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Flags: needinfo?(mconley)
Thanks for the bug report! I guess I missed a case here. Investigating...
Assignee: nobody → mconley
Flags: needinfo?(mconley)
I thought it'd be straight-forward to write a test for this. I was wrong. It appears as if _prepDataForDeferredRestore is only ever called when initting the session, and I don't believe I can trigger that from a Mochitest. That leaves Firefox UI Tests. Unfortunately, I can't seem to pin tabs from that framework. :/
(In reply to Mike Conley (:mconley) - PTO until April 27th. from comment #6) > That leaves Firefox UI Tests. Unfortunately, I can't seem to pin tabs from that > framework. :/ Any thoughts on that, Henrik?
Flags: needinfo?(hskupin)
Comment on attachment 8861666 [details] Bug 1357098 - Fix off-by-one error in SessionStore when preparing deferred restore data. https://reviewboard.mozilla.org/r/133656/#review136670 Well, kudos for finding this, Mike. Thanks!
Attachment #8861666 - Flags: review?(mdeboer) → review+
(In reply to Ryan VanderMeulen [:RyanVM] from comment #7) > (In reply to Mike Conley (:mconley) - PTO until April 27th. from comment #6) > > That leaves Firefox UI Tests. Unfortunately, I can't seem to pin tabs from that > > framework. :/ We don't have an implementation yet which uses the UI to pin a tab. But if calling a GeckoAPI is fine in this case it wouldn't matter. You can just do it. There is no restriction in that you only have to use the provided classes from Firefox Puppeteer.
Flags: needinfo?(hskupin)
Depends on: 1359813
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df0562354e0b Fix off-by-one error in SessionStore when preparing deferred restore data. r=mikedeboer
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
The issue is no longer reproducible on Firefox Nightly 55.0a1 (build ID: 20170503030212). Test were performed under Windows 10x64. [bugday-20170503]
¡Hola Fahima! Thanks on verifying. ¡Gracias! Alex
Status: RESOLVED → VERIFIED
Flags: in-qa-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: