Closed
Bug 558644
Opened 15 years ago
Closed 15 years ago
Use Services.jsm and lazy getters in SeaMonkey sessionstore.
Categories
(SeaMonkey :: Session Restore, defect)
SeaMonkey
Session Restore
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: misak.bugzilla, Assigned: misak.bugzilla)
References
Details
Attachments
(1 file, 1 obsolete file)
23.53 KB,
patch
|
misak.bugzilla
:
review+
misak.bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
Port of "Bug 530207 - Use lazy getters for services in sessionstore" and "Bug 553104 - Use Services.jsm in sessionstore"
I ran test on my Fedora 12, no failed test seen.
Attachment #438344 -
Flags: superreview?(neil)
Attachment #438344 -
Flags: review?(neil)
Comment 1•15 years ago
|
||
Comment on attachment 438344 [details] [diff] [review]
patch
I'm not a big fan of lazy getters. That NetUtil one looks particularly unobvious to me. Perhaps we can import it in writeFile instead?
Assignee | ||
Comment 2•15 years ago
|
||
Neil, You promised to review this by IRC.
Comment 3•15 years ago
|
||
Comment on attachment 438344 [details] [diff] [review]
patch
>-Components.utils.import("resource://gre/modules/NetUtil.jsm");
Please leave NetUtil as a normal imported module. r+sr=me with this fixed.
>+XPCOMUtils.defineLazyServiceGetter(this, "CookieSvc",
>+ "@mozilla.org/cookiemanager;1", "nsICookieManager2");
I assume Firefox renamed theirs from cm/cookieManager to CookieSvc too?
>+XPCOMUtils.defineLazyServiceGetter(this, "SecuritySvc",
>+ "@mozilla.org/scriptsecuritymanager;1", "nsIScriptSecurityManager");
They're at it again. Everyone else calls it SecMan...
Assignee | ||
Comment 4•15 years ago
|
||
All nits fixed, renamed CookieSvc to cm, CookieSvc to SecMan too. Carrying forward r+ and sr+ from Neil.
Attachment #438344 -
Attachment is obsolete: true
Attachment #441345 -
Flags: superreview+
Attachment #441345 -
Flags: review+
Attachment #438344 -
Flags: superreview?(neil)
Attachment #438344 -
Flags: review?(neil)
Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•