mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
Bug 622514 - Remove XPCOM cruft from tabview.js. r=ian
This commit is contained in:
parent
cac08905a3
commit
3a58e419bd
@ -8,10 +8,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "gWindow", function() {
|
||||
return window.QueryInterface(Ci.nsIInterfaceRequestor).
|
||||
getInterface(Ci.nsIWebNavigation).
|
||||
QueryInterface(Ci.nsIDocShell).
|
||||
chromeEventHandler.ownerDocument.defaultView;
|
||||
return window.parent;
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "gBrowser", function() gWindow.gBrowser);
|
||||
@ -32,9 +29,7 @@ XPCOMUtils.defineLazyGetter(this, "tabviewBundle", function() {
|
||||
function tabviewString(name) tabviewBundle.GetStringFromName('tabview.' + name);
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "gPrefBranch", function() {
|
||||
return Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefService).
|
||||
getBranch("browser.panorama.");
|
||||
return Services.prefs.getBranch("browser.panorama.");
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "gPrivateBrowsing", function() {
|
||||
|
Loading…
Reference in New Issue
Block a user