Closed Bug 1057481 Opened 10 years ago Closed 10 years ago

[E10S] Firefox restores all the previously open windows from the last session even when they were closed

Categories

(Core :: DOM: Content Processes, defect)

34 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: achwaqkhalid, Assigned: billm)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 (Beta/Release)
Build ID: 20140822030201
Blocks: e10s
Component: Untriaged → Session Restore
Status: UNCONFIRMED → NEW
tracking-e10s: --- → ?
Ever confirmed: true
OS: Windows 8.1 → All
Hardware: x86_64 → All
An error appears in Error Console when I close a window

Error: aWindow.content is null
Source File: resource:///modules/sessionstore/SessionStore.jsm
Line: 1007
Regression window(m-i)
Good:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ebffbc56b3a7
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140820102420
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5650d84919fc
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140820110915
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=ebffbc56b3a7&tochange=5650d84919fc

Regressed by: 
25c918c5f3e1	Roberto A. Vitillo — Bug 559505 - Deprecate localstore.rdf and replace it with xulstore. r=enn, sr=bsmedberg CLOSED TREE
Blocks: 559505
In my case, I can also reproduce in non-e10s...
Maybe the range of comment #2 is wrong
No longer blocks: 559505
I was able to reproduce in non-e10s mode, but I still think this is an e10s bug. I think session store is not updated properly in e10s mode. When you switch the "browser.tabs.remote.autostart" pref to false and restart Firefox in non-e10s mode, the bad (e10s) session store is restored with closed windows. If you restart from non-e10s mode, then closed windows are not restored.

myfavoritebeer.org is a good test website because it opens a Persona login window.
Okay

Steps To Reproduce:
1. Open https://developer.mozilla.org/En/Code_snippets
2. Click "Signin with" > "Persona"
3. Login, then wait for automatic reload the page
4. Wait for 15sec to ensure saving session data (this step maybe not necessary)
5. Exit browser
6. Start Browser and Click "Restore Previous Session"

Regression widnow(m-i)
Good:
https://hg.mozilla.org/integration/mozilla-inbound/rev/72f6354159d5
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140820124716
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/304619045d61
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140820125117
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=72f6354159d5&tochange=304619045d61


In local build
Last Good: 06d5e509cdb4
First Bad: d6bdd3272ccb

Triggered by:
d6bdd3272ccb	Bill McCloskey — Bug 1051017 - Add browser.contentWindowAsCPOW and browser.contentDocumentAsCPOW (r=mconley,mrbkap)
Component: Session Restore → DOM: Content Processes
Product: Firefox → Core
An easier STR is to start a normal build (non-e10s) and open an e10s window. If closing the e10s-window causes an error message in the console that says "aWindow.content is null" then sessionstore will fail too.
(In reply to Tim Taubert [:ttaubert] from comment #7)
> An easier STR is to start a normal build (non-e10s) and open an e10s window.
> If closing the e10s-window causes an error message in the console that says
> "aWindow.content is null" then sessionstore will fail too.

I think this seems to be a different problem.
Please file a separate bug.
Flags: needinfo?(ttaubert)
It's not. Please take a look at comment #1. I can tell that this is exactly what prevents sessionstore from recording closed windows as closed.
Flags: needinfo?(ttaubert)
The second hunk is unrelated--I just wanted to fix a warning I was getting when the properties are undefined.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #8479271 - Flags: review?(ttaubert)
Comment on attachment 8479271 [details] [diff] [review]
session-store-cpow

Review of attachment 8479271 [details] [diff] [review]:
-----------------------------------------------------------------

Ah, that was easier than I expected. Thanks!
Attachment #8479271 - Flags: review?(ttaubert) → review+
https://hg.mozilla.org/mozilla-central/rev/9cfeb1314dc1
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: