mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1445099 - Remove unused properties from browser binding. r=enndeakin
This commit is contained in:
parent
635ae2f3e3
commit
74e6b6b1e9
@ -580,36 +580,6 @@ const gStoragePressureObserver = {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Given a starting docshell and a URI to look up, find the docshell the URI
|
||||
* is loaded in.
|
||||
* @param aDocument
|
||||
* A document to find instead of using just a URI - this is more specific.
|
||||
* @param aDocShell
|
||||
* The doc shell to start at
|
||||
* @param aSoughtURI
|
||||
* The URI that we're looking for
|
||||
* @returns The doc shell that the sought URI is loaded in. Can be in
|
||||
* subframes.
|
||||
*/
|
||||
function findChildShell(aDocument, aDocShell, aSoughtURI) {
|
||||
aDocShell.QueryInterface(Ci.nsIWebNavigation);
|
||||
aDocShell.QueryInterface(Ci.nsIInterfaceRequestor);
|
||||
var doc = aDocShell.getInterface(Ci.nsIDOMDocument);
|
||||
if ((aDocument && doc == aDocument) ||
|
||||
(aSoughtURI && aSoughtURI.spec == aDocShell.currentURI.spec))
|
||||
return aDocShell;
|
||||
|
||||
var node = aDocShell.QueryInterface(Ci.nsIDocShellTreeItem);
|
||||
for (var i = 0; i < node.childCount; ++i) {
|
||||
var docShell = node.getChildAt(i);
|
||||
docShell = findChildShell(aDocument, docShell, aSoughtURI);
|
||||
if (docShell)
|
||||
return docShell;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
var gPopupBlockerObserver = {
|
||||
handleEvent(aEvent) {
|
||||
if (aEvent.originalTarget != gBrowser.selectedBrowser)
|
||||
|
@ -370,10 +370,6 @@ window._gBrowser = {
|
||||
return this.selectedBrowser.webNavigation;
|
||||
},
|
||||
|
||||
get webBrowserFind() {
|
||||
return this.selectedBrowser.webBrowserFind;
|
||||
},
|
||||
|
||||
get webProgress() {
|
||||
return this.selectedBrowser.webProgress;
|
||||
},
|
||||
|
@ -166,10 +166,6 @@
|
||||
onget="return this.contentDocument ? this.contentDocument.contentType : null;"
|
||||
readonly="true"/>
|
||||
|
||||
<property name="preferences"
|
||||
onget="return this.mPrefs.QueryInterface(Components.interfaces.nsIPrefService);"
|
||||
readonly="true"/>
|
||||
|
||||
<!--
|
||||
Weak reference to an optional frame loader that can be used to influence
|
||||
process selection for this browser.
|
||||
@ -492,14 +488,6 @@
|
||||
return val;"
|
||||
onget="return this.getAttribute('showresizer') == 'true';"/>
|
||||
|
||||
<property name="manifestURI"
|
||||
readonly="true">
|
||||
<getter><![CDATA[
|
||||
return this.contentDocument.documentElement &&
|
||||
this.contentDocument.documentElement.getAttribute("manifest");
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
<property name="fullZoom">
|
||||
<getter><![CDATA[
|
||||
return this.markupDocumentViewer.fullZoom;
|
||||
@ -509,13 +497,6 @@
|
||||
]]></setter>
|
||||
</property>
|
||||
|
||||
<property name="deviceFullZoom"
|
||||
readonly="true">
|
||||
<getter><![CDATA[
|
||||
return this.markupDocumentViewer.deviceFullZoom;
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
<property name="textZoom">
|
||||
<getter><![CDATA[
|
||||
return this.markupDocumentViewer.textZoom;
|
||||
@ -525,13 +506,6 @@
|
||||
]]></setter>
|
||||
</property>
|
||||
|
||||
<property name="effectiveTextZoom"
|
||||
readonly="true">
|
||||
<getter><![CDATA[
|
||||
return this.markupDocumentViewer.effectiveTextZoom;
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
<property name="isSyntheticDocument">
|
||||
<getter><![CDATA[
|
||||
return this.contentDocument.mozSyntheticDocument;
|
||||
@ -586,27 +560,6 @@
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="findChildShell">
|
||||
<parameter name="aDocShell"/>
|
||||
<parameter name="aSoughtURI"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aDocShell.QueryInterface(Ci.nsIWebNavigation)
|
||||
.currentURI.spec == aSoughtURI.spec)
|
||||
return aDocShell;
|
||||
var node = aDocShell.QueryInterface(
|
||||
Ci.nsIDocShellTreeItem);
|
||||
for (var i = 0; i < node.childCount; ++i) {
|
||||
var docShell = node.getChildAt(i);
|
||||
docShell = this.findChildShell(docShell, aSoughtURI);
|
||||
if (docShell)
|
||||
return docShell;
|
||||
}
|
||||
return null;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="onPageHide">
|
||||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
@ -899,14 +852,6 @@
|
||||
]]></setter>
|
||||
</property>
|
||||
|
||||
<field name="mFormFillAttached">
|
||||
false
|
||||
</field>
|
||||
|
||||
<field name="isShowingMessage">
|
||||
false
|
||||
</field>
|
||||
|
||||
<field name="droppedLinkHandler">
|
||||
null
|
||||
</field>
|
||||
|
@ -276,11 +276,6 @@
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
<field name="_manifestURI"/>
|
||||
<property name="manifestURI"
|
||||
onget="return this._manifestURI"
|
||||
readonly="true"/>
|
||||
|
||||
<field name="mDestroyed">false</field>
|
||||
|
||||
<field name="_permitUnloadId">0</field>
|
||||
|
Loading…
Reference in New Issue
Block a user