Closed
Bug 960740
Opened 11 years ago
Closed 11 years ago
Add a 'sanity check' to SessionStore.js to avoid writing bad data
Categories
(Firefox for Metro Graveyard :: General, defect, P2)
Tracking
(firefox28 verified)
VERIFIED
FIXED
Firefox 29
Tracking | Status | |
---|---|---|
firefox28 | --- | verified |
People
(Reporter: emtwo, Assigned: sfoster)
References
Details
(Whiteboard: [beta28] [feature] p=2)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
sfoster
:
review+
|
Details | Diff | Splinter Review |
This would include checking the data for minimum requirements (at least 1 window, at least 1 tab, etc)
Reporter | ||
Updated•11 years ago
|
Whiteboard: [triage]
Updated•11 years ago
|
Blocks: metrov1backlog
Whiteboard: [triage] → [triage] [feature] p=0
Updated•11 years ago
|
Whiteboard: [triage] [feature] p=0 → [beta28] [feature] p=0
Updated•11 years ago
|
Whiteboard: [beta28] [feature] p=0 → [beta28] [feature] p=2
Updated•11 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
QA Contact: jbecerra
Assignee | ||
Comment 2•11 years ago
|
||
This puts a simple sanity check around the actual writing of state data to disk. I just check for windows.length and a truthy selectedWindow and only write and update the timestamp if it passes. That catches the main error condition I've been able to log which is a session state of {"windows":[], "selectedWindow":0}. Clearly we could do further validation.. how much is enough?
Attachment #8363263 -
Flags: review?(msamuel)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8363263 [details] [diff] [review]
Sanity check in saveState before writing session data
Review of attachment 8363263 [details] [diff] [review]:
-----------------------------------------------------------------
I think this is the best way to go for now since the {windows: [], selectedWindow: 0} is the only problem we've seen. If any other write issue comes up we can address it accordingly. Also, I'm hoping bug 959396 will fix some of this.
Attachment #8363263 -
Flags: review?(msamuel) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Patch updated to add \n to the dump string. Carrying msamuel's r+. Landed on fx-team: https://hg.mozilla.org/integration/fx-team/rev/e0cd2d1ff7b7
Attachment #8363263 -
Attachment is obsolete: true
Attachment #8365230 -
Flags: review+
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Assignee | ||
Comment 6•11 years ago
|
||
status-firefox28:
--- → fixed
Comment 7•11 years ago
|
||
Could you please give some guidance in order for the QA to verify this? Thanks!
Flags: needinfo?(sfoster)
Assignee | ||
Comment 8•11 years ago
|
||
I was able to reproduce this before by variations of switching from desktop to metro with multiple tabs open, only about:start, and then back again. The bug was compounded by bug 959396, which means it may be more difficult to reproduce now. If you can start in either mode with/without the restore tabs option and switch successfully from desktop to metro and back again while getting the expected session behavior with regard to tabs, then it is confirmed as fixed.
Flags: needinfo?(sfoster)
Comment 9•11 years ago
|
||
> I was able to reproduce this before by variations of switching from desktop
> to metro with multiple tabs open, only about:start, and then back again. The
> bug was compounded by bug 959396, which means it may be more difficult to
> reproduce now. If you can start in either mode with/without the restore tabs
> option and switch successfully from desktop to metro and back again while
> getting the expected session behavior with regard to tabs, then it is
> confirmed as fixed.
Verified as fixed, for iteration #23, using the above indications, with both latest Nightly and Aurora on Win 8 64-bit.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•