Closed Bug 910167 Opened 11 years ago Closed 11 years ago

Remove remaining uses of nsISessionStore in browser/base/

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 26

People

(Reporter: dao, Assigned: gia)

References

Details

(Whiteboard: [good first bug][lang=js][mentor=dao])

Attachments

(1 file, 2 obsolete files)

+++ This bug was initially created as a clone of Bug #898732 +++ There are a few remaining uses of nsISessionStore in browser/base/ that we can treat like in bug 898732: http://mxr.mozilla.org/mozilla-central/search?string=nsISessionStore&find=browser%2Fbase%2F
Assignee: nobody → georgiana.chelu93
Attached patch patch1 (obsolete) — Splinter Review
Attachment #796811 - Flags: review?(dao)
Comment on attachment 796811 [details] [diff] [review] patch1 >--- a/browser/base/content/browser-places.js >+++ b/browser/base/content/browser-places.js >@@ -475,19 +475,17 @@ var PlacesCommandHook = { > > // View for the history menu. > function HistoryMenu(aPopupShowingEvent) { > // Workaround for Bug 610187. The sidebar does not include all the Places > // views definitions, and we don't need them there. > // Defining the prototype inheritance in the prototype itself would cause > // browser.js to halt on "PlacesMenu is not defined" error. > this.__proto__.__proto__ = PlacesMenu.prototype; >- XPCOMUtils.defineLazyServiceGetter(this, "_ss", >- "@mozilla.org/browser/sessionstore;1", >- "nsISessionStore"); >+ XPCOMUtils.defineLazyServiceGetter(this, SessionStore); That won't work. You need to replace all occurrences of 'this._ss' with 'SessionStore'.
Attachment #796811 - Flags: review?(dao) → review-
Attached patch patch2 (obsolete) — Splinter Review
Attachment #796811 - Attachment is obsolete: true
Attachment #796827 - Flags: review?(dao)
Comment on attachment 796827 [details] [diff] [review] patch2 >--- a/browser/base/content/browser-places.js >+++ b/browser/base/content/browser-places.js >@@ -475,30 +475,28 @@ var PlacesCommandHook = { > > // View for the history menu. > function HistoryMenu(aPopupShowingEvent) { > // Workaround for Bug 610187. The sidebar does not include all the Places > // views definitions, and we don't need them there. > // Defining the prototype inheritance in the prototype itself would cause > // browser.js to halt on "PlacesMenu is not defined" error. > this.__proto__.__proto__ = PlacesMenu.prototype; >- XPCOMUtils.defineLazyServiceGetter(this, "_ss", >- "@mozilla.org/browser/sessionstore;1", >- "nsISessionStore"); >+ XPCOMUtils.defineLazyServiceGetter(this, SessionStore); Remove this line, it's broken and unneeded. :) r+ with that change, thanks!
Attachment #796827 - Flags: review?(dao) → review+
Attached patch patch3Splinter Review
Attachment #796827 - Attachment is obsolete: true
Attachment #796880 - Flags: review?(dao)
Attachment #796880 - Flags: review?(dao) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Blocks: 1450559
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: