Closed
Bug 864041
Opened 13 years ago
Closed 11 years ago
Remove Firefox 2+3 compat code from about:sessionrestore
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 34
People
(Reporter: mkohler, Assigned: nyee, Mentored)
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(1 file, 5 obsolete files)
|
4.48 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
There is Firefox 2 and Firefox 3 compat code in nsSessionStartup. I think we can remove this.
| Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•12 years ago
|
||
Comment on attachment 739989 [details] [diff] [review]
Patch v1
Review of attachment 739989 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good but we should do the same in browser/components/sessionstore/content/aboutSessionRestore.js. Also, we should remove the test for bug 581593 which is just about this backwards compatibility.
Attachment #739989 -
Flags: review?(ttaubert) → feedback+
| Reporter | ||
Comment 3•12 years ago
|
||
Attachment #739989 -
Attachment is obsolete: true
Attachment #766359 -
Flags: review?(ttaubert)
Comment 4•12 years ago
|
||
Comment on attachment 766359 [details] [diff] [review]
Patch v2
Review of attachment 766359 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/content/aboutSessionRestore.js
@@ +24,5 @@
> gStateObject = JSON.parse(sessionData.value);
> }
> catch (exJSON) {
> var s = new Cu.Sandbox("about:blank", {sandboxName: 'aboutSessionRestore'});
> + gStateObject = Cu.evalInSandbox(sessionData.value, s);
I think it would be sufficient if we just do "gStateObject = JSON.parse(sessionData.value);" without a try statement. If sessionData.value is invalid we should just throw an error and there is nothing to show on the page anyway.
Attachment #766359 -
Flags: review?(ttaubert)
| Reporter | ||
Comment 5•12 years ago
|
||
Attachment #766359 -
Attachment is obsolete: true
Attachment #771786 -
Flags: review?(ttaubert)
Comment 6•12 years ago
|
||
Comment on attachment 771786 [details] [diff] [review]
Patch v3
Review of attachment 771786 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #771786 -
Flags: review?(ttaubert) → review+
Comment 7•12 years ago
|
||
Comment on attachment 771786 [details] [diff] [review]
Patch v3
Sorry, revoking my r+ for now. It seems that this breaks browser/components/sessionstore/test/browser_586068-apptabs.js for some reason.
Attachment #771786 -
Flags: review+
Comment 8•12 years ago
|
||
This does also fail when running the whole test suite:
/browser/components/sessionstore/test/browser_601955.js | first tab should not be pinned yet
Both tests seem to do fine when run in single mode.
| Reporter | ||
Updated•11 years ago
|
Assignee: mkohler → nobody
Comment 9•11 years ago
|
||
The code in nsSessionStartup has been removed already by another patch. What's left is to remove the rest of it in about:sessionrestore, just like Michael's patch did already.
Summary: Delete Firefox 2 and Firefox 3 compat in nsSessionStartup → Remove Firefox 2+3 compat code from about:sessionrestore
Whiteboard: [good first bug][mentor=ttaubert][lang=js]
Updated•11 years ago
|
Mentor: ttaubert
Whiteboard: [good first bug][mentor=ttaubert][lang=js] → [good first bug][lang=js]
| Assignee | ||
Comment 10•11 years ago
|
||
This is the fix for the only Firefox 2+3 backwards compatibility code I have managed to find as of now.
Attachment #8454845 -
Flags: review?(mak77)
Comment 11•11 years ago
|
||
Comment on attachment 8454845 [details] [diff] [review]
bug-864041-fix
Review of attachment 8454845 [details] [diff] [review]:
-----------------------------------------------------------------
Hi,
I think you should still remove test browser_581593.js, remove the try/catch (keeping just the JSON.parse call).
Basically here we are undoing Bug 581593 (most of http://hg.mozilla.org/mozilla-central/rev/c04353b79cfa), that is what the previous patch attached here was doing, apart from the nsSessionStartup changes.
Also, considered the previous attempt failed on some tests, we need a Try server run... Do you have Commit level 1 access? If not, just attach the patch and needinfo me, I will push there for you.
Attachment #8454845 -
Flags: review?(mak77) → feedback-
Updated•11 years ago
|
Assignee: nobody → ny.nathan.yee
| Assignee | ||
Comment 12•11 years ago
|
||
Attachment #8454845 -
Attachment is obsolete: true
Attachment #8457410 -
Flags: review?(mak77)
| Assignee | ||
Comment 13•11 years ago
|
||
Attachment #8457410 -
Attachment is obsolete: true
Attachment #8457410 -
Flags: review?(mak77)
Attachment #8457416 -
Flags: review?(mak77)
| Assignee | ||
Comment 14•11 years ago
|
||
I do not currently have Commit level 1 access. Do you happen to know any way I could be granted this?
Flags: needinfo?(mak77)
| Assignee | ||
Comment 15•11 years ago
|
||
Reminder comment for someone to push the patch to try server.
Flags: needinfo?(mak77)
Comment 16•11 years ago
|
||
Sorry, I totally missed that I'm the mentor for this bug :/ Marco was so kind to take over while I was away. I'll push it to try in a minute, Nathan. Thank you for working on this!
Comment 17•11 years ago
|
||
Pushed to try:
https://tbpl.mozilla.org/?tree=Try&rev=79817cd6c767
Updated•11 years ago
|
Attachment #771786 -
Attachment is obsolete: true
Comment 18•11 years ago
|
||
Comment on attachment 8457416 [details] [diff] [review]
bug-864041-fix
Review of attachment 8457416 [details] [diff] [review]:
-----------------------------------------------------------------
Try says it's good to go!
Attachment #8457416 -
Flags: review?(mak77) → review+
Comment 19•11 years ago
|
||
Is this checkin-needed then?
Comment 21•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [good first bug][lang=js] → [good first bug][lang=js][fixed-in-fx-team]
Comment 22•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][lang=js][fixed-in-fx-team] → [good first bug][lang=js]
Target Milestone: --- → Firefox 34
Updated•11 years ago
|
QA Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•