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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: misak.bugzilla, Assigned: misak.bugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — 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 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?
Neil, You promised to review this by IRC.
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...
Attached patch for checkingSplinter Review
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)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 573384
No longer blocks: 573384
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: