Closed
Bug 776577
Opened 12 years ago
Closed 12 years ago
Update usage in SeaMonkey of GetCodebasePrincipal to reflect changes to API (Port Bug 774585)
Categories
(SeaMonkey :: General, defect)
SeaMonkey
General
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.14
People
(Reporter: philip.chee, Assigned: neil)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
philip.chee
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #776402 +++
Bug 774585 changed the way that GetCodebasePrincipal works (see https://bugzilla.mozilla.org/show_bug.cgi?id=774585#c0).
Thunderbird uses GetCodebasePrincipal in 3 locations:
/mail/components/newmailaccount/content/accountProvisioner.js
line 46 -- var principal = ssm.getCodebasePrincipal(uri);
/mail/components/aboutRedirector.js
line 54 -- let principal = secMan.getCodebasePrincipal(aURI);
/mail/test/mozmill/newmailaccount/test-newmailaccount.js
line 1205 -- let principal = ssm.getCodebasePrincipal(uri);
These need to be updated to fix Account Provisioner and our About Redirector.
Cc'ing some SeaMonkey people, because I think suite is affected too.
Reporter | ||
Updated•12 years ago
|
Summary: Update usage in SeaMonkey of GetCodebasePrincipal to reflect changes to API → Update usage in SeaMonkey of GetCodebasePrincipal to reflect changes to API (Port Bug 774585)
Assignee | ||
Comment 1•12 years ago
|
||
This is to fix the session store bustage only.
Attachment #647104 -
Flags: review?(philip.chee)
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 647104 [details] [diff] [review]
Session Store bustage fix only
I think _serializeSessionStorage also needs to be fixed.
e.g.
var principal = SecMan.getCodebasePrincipal(uri);
should be updated to use getDocShellCodebasePrincipal()
Attachment #647104 -
Flags: review?(philip.chee)
Assignee | ||
Comment 3•12 years ago
|
||
Assignee: nobody → neil
Attachment #647104 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #653081 -
Flags: review?(philip.chee)
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 653081 [details] [diff] [review]
Proposed patch
>+ let principal = SecMan.getAppCodebasePrincipal(uri, aDocShell);
Oops, I accidentally copied from the wrong patch by mistake; this should say getDocShellCodebasePrincipal.
Updated•12 years ago
|
Comment 5•12 years ago
|
||
Comment on attachment 653081 [details] [diff] [review]
Proposed patch
Review of attachment 653081 [details] [diff] [review]:
-----------------------------------------------------------------
::: suite/feeds/src/FeedWriter.js
@@ +1106,5 @@
> this._handlersMenuList = this._getUIElement("handlersMenuList");
>
> var secman = Components.classes["@mozilla.org/scriptsecuritymanager;1"]
> .getService(Components.interfaces.nsIScriptSecurityManager);
> + this._feedPrincipal = secman.getSimpleCodebasePrincipal(this._feedURI);
Ftr, this line is copied from
http://hg.mozilla.org/mozilla-central/rev/2328647c5d6d
from bug 774585 ;-)
Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 653081 [details] [diff] [review]
Proposed patch
Looks OK from code inspection. Since with this patch session restore seems to be working with no problems including sites that require local storage I'm giving this a rs=me
Attachment #653081 -
Flags: review?(philip.chee) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → seamonkey2.14
You need to log in
before you can comment on or make changes to this bug.
Description
•