Closed
Bug 1492154
Opened 6 years ago
Closed 6 years ago
Session service does not handle custom protocols properly
Categories
(SeaMonkey :: Session Restore, defect)
Tracking
(seamonkey2.49esr fixed, seamonkey2.60 wontfix, seamonkey2.53 affected, seamonkey2.57esr fixed)
RESOLVED
FIXED
Future
People
(Reporter: Off.Just.Off, Assigned: frg)
References
Details
Attachments
(2 files, 1 obsolete file)
1.86 KB,
patch
|
Details | Diff | Splinter Review | |
1.45 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-esr52+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20100101 Steps to reproduce: 1. Set up the browser to restore previous session on startup 2. Install Classic Add-ons Archive (CAA) add-on from https://github.com/JustOff/ca-archive/releases/download/1.1.4/ca-archive-1.1.5b1.xpi 3. Click the CAA button to open the catalog (or type "caa:" in the urlbar) 4. Restart the browser Actual results: 1. The console displays an error at https://dxr.mozilla.org/comm-esr52/source/suite/common/src/nsSessionStore.js#1696 when you explore CAA. 2. The tab with CAA does not restored after the browser restart. Expected results: All tabs must be restored and errors should not occur.
I think this can be easily fixed by replacing let origin = principal.origin; with let origin; try { origin = principal.origin; } catch (ex) { origin = principal.URI.spec; } at https://dxr.mozilla.org/comm-esr52/source/suite/common/src/nsSessionStore.js#1696 PS: I would also like to draw your attention that the condition at https://dxr.mozilla.org/comm-esr52/source/suite/common/src/nsSessionStore.js#1700 will never be fulfilled, as the principal does not contain either uri or url.
Assignee | ||
Updated•6 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 2•6 years ago
|
||
> origin = principal.origin; You sure the assignnemt throws and not just returns null in which case and if (!... might be better? > as the principal does not contain either uri or url. Hmm this looks like a typo. Should be URI I think. 6 years old. Must not be important :) I look at it when I find some time. Maybe this weekend.
> You sure the assignment throws and not just returns null? NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIPrincipal.origin] > I look at it when I find some time. Thank you.
Assignee | ||
Comment 4•6 years ago
|
||
Changes seem to not cause a regression but I didin't try the build yet much. I will send the patch to Bill for putting into his unoffical builds: http://www.wg9s.com/comm-esr/ Please check if it fixes you regression when the build is up. Patch should appear in this directory then: http://www.wg9s.com/comm-esr/patches/git/comm-esr52/ Porting to 2.53+ now.
Assignee: nobody → frgrahl
Status: NEW → ASSIGNED
Flags: needinfo?(Off.Just.Off)
Assignee | ||
Comment 5•6 years ago
|
||
just the comment changed.
Attachment #9011217 -
Attachment is obsolete: true
Assignee | ||
Comment 6•6 years ago
|
||
Patch for 2.53 and 2.57
Thank you, I confirm the regression is fixed in WG9s SeaMonkey 2.49.5 build 20180923041539.
Flags: needinfo?(Off.Just.Off)
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 9011276 [details] [diff] [review] 1492154-sessionstore.patch Into all trees for the Good of SeaMonkeykind
Attachment #9011276 -
Flags: review?(iann_bugzilla)
Attachment #9011276 -
Flags: approval-comm-esr60?
Attachment #9011276 -
Flags: approval-comm-esr52?
Comment on attachment 9011276 [details] [diff] [review] 1492154-sessionstore.patch Wonder how those typos slipped through LGTM r/a=me
Attachment #9011276 -
Flags: review?(iann_bugzilla)
Attachment #9011276 -
Flags: review+
Attachment #9011276 -
Flags: approval-comm-esr60?
Attachment #9011276 -
Flags: approval-comm-esr60+
Attachment #9011276 -
Flags: approval-comm-esr52?
Attachment #9011276 -
Flags: approval-comm-esr52+
Comment 10•6 years ago
|
||
Pushed by frgrahl@gmx.net: https://hg.mozilla.org/comm-central/rev/bb81266621e3 Allow for invalid origin in principal and fix misspelled principal uri and url in sessionstore. r=IanN
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•6 years ago
|
||
https://hg.mozilla.org/releases/comm-esr60/rev/307328b798db41e6d2f7258e0db0909baec969f6
status-seamonkey2.57esr:
--- → fixed
status-seamonkey2.60:
--- → wontfix
Target Milestone: --- → Future
Assignee | ||
Comment 12•6 years ago
|
||
Target 2.49.5 https://hg.mozilla.org/releases/comm-esr52/rev/883ee2aed9c0f0e50bd3530c984e3631cd3c858a
status-seamonkey2.49esr:
--- → fixed
status-seamonkey2.53:
--- → affected
You need to log in
before you can comment on or make changes to this bug.
Description
•