зеркало из https://github.com/mozilla/pjs.git
Bug 222305 Cache find instance so that find utils can set the frame to search r=bryner sr=bienvenu
This commit is contained in:
Родитель
9ad2cc4140
Коммит
f01efb4d11
|
@ -219,9 +219,18 @@
|
|||
onget="return this.docShell.QueryInterface(Components.interfaces.nsIWebNavigation);"
|
||||
readonly="true"/>
|
||||
|
||||
<field name="_webBrowserFind">null</field>
|
||||
|
||||
<property name="webBrowserFind"
|
||||
readonly="true"
|
||||
onget="return this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebBrowserFind);"/>
|
||||
readonly="true">
|
||||
<getter>
|
||||
<![CDATA[
|
||||
if (!this._webBrowserFind)
|
||||
this._webBrowserFind = this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebBrowserFind);
|
||||
return this._webBrowserFind;
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="webProgress"
|
||||
readonly="true"
|
||||
|
|
|
@ -201,9 +201,18 @@
|
|||
onget="return this.docShell.QueryInterface(Components.interfaces.nsIWebNavigation);"
|
||||
readonly="true"/>
|
||||
|
||||
<field name="_webBrowserFind">null</field>
|
||||
|
||||
<property name="webBrowserFind"
|
||||
readonly="true"
|
||||
onget="return this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebBrowserFind);"/>
|
||||
readonly="true">
|
||||
<getter>
|
||||
<![CDATA[
|
||||
if (!this._webBrowserFind)
|
||||
this._webBrowserFind = this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebBrowserFind);
|
||||
return this._webBrowserFind;
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="webProgress"
|
||||
readonly="true"
|
||||
|
|
Загрузка…
Ссылка в новой задаче