Closed Bug 553104 Opened 16 years ago Closed 16 years ago

Use Services.jsm in sessionstore

Categories

(Firefox :: Session Restore, defect)

defect
Not set
trivial

Tracking

()

VERIFIED FIXED
Firefox 3.7a4

People

(Reporter: zpao, Assigned: zpao)

References

Details

Attachments

(1 file)

I know we just made the services lazy, but now we can be even lazier and just import Services.jsm and use as many of those as we can (observer, prefs, more?). It might be appropriate to add more services to Services.jsm.
Attached patch Patch v0.1Splinter Review
Use Services.jsm in nsSessionStartup and nsSessionStore. I didn't add any new services since it didn't seem needed.
Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #433627 - Flags: review?(zeniko)
Comment on attachment 433627 [details] [diff] [review] Patch v0.1 >- shEntry.setURI(IOSvc.newURI(aEntry.url, null, null)); >+ shEntry.setURI(Services.io.newURI(aEntry.url, null, null)); While you're at it, please replace this call to newURI (and three more) with _getURIFromString, or replace _getURIFromString with Services.io.newURI, or both with NetUtil.newUri - as long as things get consistent. Thanks and r+=me.
Attachment #433627 - Flags: review?(zeniko) → review+
Pushed http://hg.mozilla.org/mozilla-central/rev/65c44224e3cd - conformed to use _getURIFromString (Good catch by the way, I hadn't noticed that we were doing that)
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a4
Blocks: 558644
What an QA do to verify this bug?
(In reply to comment #4) > What an QA do to verify this bug? Nothing really. So long as nothing has broken with those services (observers, window mediator, etc) we're fine.
Ok. Session Store seems to work normally in today's nightly. Marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: