Closed
Bug 910167
Opened 11 years ago
Closed 11 years ago
Remove remaining uses of nsISessionStore in browser/base/
Categories
(Firefox :: General, defect)
Firefox
General
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)
8.24 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
+++ 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 | ||
Updated•11 years ago
|
Assignee: nobody → georgiana.chelu93
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #796811 -
Flags: review?(dao)
Reporter | ||
Comment 2•11 years ago
|
||
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-
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #796811 -
Attachment is obsolete: true
Attachment #796827 -
Flags: review?(dao)
Reporter | ||
Comment 4•11 years ago
|
||
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+
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #796827 -
Attachment is obsolete: true
Attachment #796880 -
Flags: review?(dao)
Reporter | ||
Updated•11 years ago
|
Attachment #796880 -
Flags: review?(dao) → review+
Reporter | ||
Updated•11 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 6•11 years ago
|
||
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
You need to log in
before you can comment on or make changes to this bug.
Description
•