2013-04-25 09:29:31 +04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
|
|
|
|
<bindings id="firefoxBrowserBindings"
|
|
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
|
|
|
<binding id="remote-browser" extends="chrome://global/content/bindings/browser.xml#browser">
|
|
|
|
|
2014-12-09 18:48:27 +03:00
|
|
|
<implementation type="application/javascript"
|
|
|
|
implements="nsIObserver, nsIDOMEventListener, nsIMessageListener, nsIRemoteBrowser">
|
2013-04-25 09:29:31 +04:00
|
|
|
|
2013-07-10 06:45:07 +04:00
|
|
|
<field name="_securityUI">null</field>
|
|
|
|
|
2013-04-25 09:29:31 +04:00
|
|
|
<property name="securityUI"
|
2013-07-10 06:45:07 +04:00
|
|
|
readonly="true">
|
|
|
|
<getter><![CDATA[
|
|
|
|
if (!this._securityUI) {
|
2014-12-30 04:09:52 +03:00
|
|
|
// Don't attempt to create the remote web progress if the
|
|
|
|
// messageManager has already gone away
|
|
|
|
if (!this.messageManager)
|
|
|
|
return null;
|
|
|
|
|
2013-07-10 06:45:07 +04:00
|
|
|
let jsm = "resource://gre/modules/RemoteSecurityUI.jsm";
|
|
|
|
let RemoteSecurityUI = Components.utils.import(jsm, {}).RemoteSecurityUI;
|
|
|
|
this._securityUI = new RemoteSecurityUI();
|
|
|
|
}
|
|
|
|
|
|
|
|
// We want to double-wrap the JS implemented interface, so that QI and instanceof works.
|
|
|
|
var ptr = Cc["@mozilla.org/supports-interface-pointer;1"].
|
|
|
|
createInstance(Ci.nsISupportsInterfacePointer);
|
|
|
|
ptr.data = this._securityUI;
|
|
|
|
return ptr.data.QueryInterface(Ci.nsISecureBrowserUI);
|
|
|
|
]]></getter>
|
|
|
|
</property>
|
2013-04-25 09:29:31 +04:00
|
|
|
|
2014-03-12 07:13:48 +04:00
|
|
|
<method name="adjustPriority">
|
|
|
|
<parameter name="adjustment"/>
|
|
|
|
<body><![CDATA[
|
|
|
|
this.messageManager.sendAsyncMessage("NetworkPrioritizer:AdjustPriority",
|
|
|
|
{adjustment: adjustment});
|
|
|
|
]]></body>
|
|
|
|
</method>
|
|
|
|
|
2014-12-30 04:09:52 +03:00
|
|
|
<field name="_controller">null</field>
|
|
|
|
|
2015-06-05 15:33:29 +03:00
|
|
|
<field name="_selectParentHelper">null</field>
|
|
|
|
|
2013-08-06 20:35:39 +04:00
|
|
|
<field name="_remoteWebNavigation">null</field>
|
|
|
|
|
2013-10-28 23:24:51 +04:00
|
|
|
<property name="webNavigation"
|
|
|
|
onget="return this._remoteWebNavigation;"
|
|
|
|
readonly="true"/>
|
2013-04-25 09:29:31 +04:00
|
|
|
|
|
|
|
<field name="_remoteWebProgress">null</field>
|
|
|
|
|
|
|
|
<property name="webProgress" readonly="true">
|
2013-07-10 06:45:07 +04:00
|
|
|
<getter>
|
|
|
|
<![CDATA[
|
2013-04-25 09:29:31 +04:00
|
|
|
if (!this._remoteWebProgress) {
|
2014-12-30 04:09:52 +03:00
|
|
|
// Don't attempt to create the remote web progress if the
|
|
|
|
// messageManager has already gone away
|
|
|
|
if (!this.messageManager)
|
|
|
|
return null;
|
|
|
|
|
2013-07-10 06:45:07 +04:00
|
|
|
let jsm = "resource://gre/modules/RemoteWebProgress.jsm";
|
2014-12-30 04:09:52 +03:00
|
|
|
let { RemoteWebProgressManager } = Cu.import(jsm, {});
|
2013-11-13 03:02:14 +04:00
|
|
|
this._remoteWebProgressManager = new RemoteWebProgressManager(this);
|
|
|
|
this._remoteWebProgress = this._remoteWebProgressManager.topLevelWebProgress;
|
2013-04-25 09:29:31 +04:00
|
|
|
}
|
|
|
|
return this._remoteWebProgress;
|
2013-07-10 06:45:07 +04:00
|
|
|
]]>
|
|
|
|
</getter>
|
2013-04-25 09:29:31 +04:00
|
|
|
</property>
|
|
|
|
|
2013-09-14 03:27:19 +04:00
|
|
|
<field name="_remoteFinder">null</field>
|
|
|
|
|
|
|
|
<property name="finder" readonly="true">
|
|
|
|
<getter><![CDATA[
|
|
|
|
if (!this._remoteFinder) {
|
2015-02-19 03:47:43 +03:00
|
|
|
// Don't attempt to create the remote finder if the
|
2014-12-30 04:09:52 +03:00
|
|
|
// messageManager has already gone away
|
|
|
|
if (!this.messageManager)
|
|
|
|
return null;
|
|
|
|
|
2013-09-14 03:27:19 +04:00
|
|
|
let jsm = "resource://gre/modules/RemoteFinder.jsm";
|
2014-12-30 04:09:52 +03:00
|
|
|
let { RemoteFinder } = Cu.import(jsm, {});
|
2013-09-14 03:27:19 +04:00
|
|
|
this._remoteFinder = new RemoteFinder(this);
|
|
|
|
}
|
|
|
|
return this._remoteFinder;
|
|
|
|
]]></getter>
|
|
|
|
</property>
|
|
|
|
|
2013-07-29 19:03:41 +04:00
|
|
|
<field name="_documentURI">null</field>
|
|
|
|
|
2014-03-12 07:13:41 +04:00
|
|
|
<field name="_documentContentType">null</field>
|
|
|
|
|
2013-11-13 03:02:14 +04:00
|
|
|
<!--
|
|
|
|
Used by session restore to ensure that currentURI is set so
|
|
|
|
that switch-to-tab works before the tab is fully
|
|
|
|
restored. This function also invokes onLocationChanged
|
|
|
|
listeners in tabbrowser.xml.
|
|
|
|
-->
|
|
|
|
<method name="_setCurrentURI">
|
|
|
|
<parameter name="aURI"/>
|
|
|
|
<body><![CDATA[
|
|
|
|
this._remoteWebProgressManager.setCurrentURI(aURI);
|
|
|
|
]]></body>
|
|
|
|
</method>
|
|
|
|
|
2013-07-29 19:03:41 +04:00
|
|
|
<property name="documentURI"
|
|
|
|
onget="return this._documentURI;"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-03-12 07:13:41 +04:00
|
|
|
<property name="documentContentType"
|
|
|
|
onget="return this._documentContentType;"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2013-07-27 01:26:35 +04:00
|
|
|
<field name="_contentTitle">""</field>
|
2013-04-25 09:29:39 +04:00
|
|
|
|
|
|
|
<property name="contentTitle"
|
|
|
|
onget="return this._contentTitle"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-04-29 22:05:57 +04:00
|
|
|
<field name="_characterSet">""</field>
|
2013-04-27 19:37:04 +04:00
|
|
|
|
|
|
|
<property name="characterSet"
|
2014-08-13 21:29:00 +04:00
|
|
|
onget="return this._characterSet">
|
|
|
|
<setter><![CDATA[
|
|
|
|
this.messageManager.sendAsyncMessage("UpdateCharacterSet", {value: val});
|
|
|
|
this._characterSet = val;
|
|
|
|
]]></setter>
|
|
|
|
</property>
|
|
|
|
|
|
|
|
<field name="_mayEnableCharacterEncodingMenu">null</field>
|
|
|
|
|
|
|
|
<property name="mayEnableCharacterEncodingMenu"
|
|
|
|
onget="return this._mayEnableCharacterEncodingMenu;"
|
2013-04-27 19:37:04 +04:00
|
|
|
readonly="true"/>
|
|
|
|
|
2013-07-17 17:27:49 +04:00
|
|
|
<field name="_contentWindow">null</field>
|
|
|
|
|
|
|
|
<property name="contentWindow"
|
2014-08-20 23:49:11 +04:00
|
|
|
onget="return null"
|
|
|
|
readonly="true"/>
|
|
|
|
|
|
|
|
<property name="contentWindowAsCPOW"
|
2013-07-17 17:27:49 +04:00
|
|
|
onget="return this._contentWindow"
|
|
|
|
readonly="true"/>
|
|
|
|
|
|
|
|
<property name="contentDocument"
|
2014-08-20 23:49:11 +04:00
|
|
|
onget="return null"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-09-19 03:26:50 +04:00
|
|
|
<field name="_contentPrincipal">null</field>
|
|
|
|
|
|
|
|
<property name="contentPrincipal"
|
|
|
|
onget="return this._contentPrincipal"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-08-20 23:49:11 +04:00
|
|
|
<property name="contentDocumentAsCPOW"
|
|
|
|
onget="return this.contentWindowAsCPOW ? this.contentWindowAsCPOW.document : null"
|
2013-07-17 17:27:49 +04:00
|
|
|
readonly="true"/>
|
|
|
|
|
2013-07-29 19:03:41 +04:00
|
|
|
<field name="_imageDocument">null</field>
|
|
|
|
|
|
|
|
<property name="imageDocument"
|
|
|
|
onget="return this._imageDocument"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-01-13 21:36:26 +04:00
|
|
|
<field name="_fullZoom">1</field>
|
|
|
|
<property name="fullZoom">
|
|
|
|
<getter><![CDATA[
|
|
|
|
return this._fullZoom;
|
|
|
|
]]></getter>
|
|
|
|
<setter><![CDATA[
|
2014-03-19 13:25:13 +04:00
|
|
|
this._fullZoom = val;
|
2014-01-13 21:36:26 +04:00
|
|
|
this.messageManager.sendAsyncMessage("FullZoom", {value: val});
|
|
|
|
]]></setter>
|
|
|
|
</property>
|
|
|
|
|
|
|
|
<field name="_textZoom">1</field>
|
|
|
|
<property name="textZoom">
|
|
|
|
<getter><![CDATA[
|
|
|
|
return this._textZoom;
|
|
|
|
]]></getter>
|
|
|
|
<setter><![CDATA[
|
2014-03-19 13:25:13 +04:00
|
|
|
this._textZoom = val;
|
2014-01-13 21:36:26 +04:00
|
|
|
this.messageManager.sendAsyncMessage("TextZoom", {value: val});
|
|
|
|
]]></setter>
|
|
|
|
</property>
|
|
|
|
|
|
|
|
<field name="_isSyntheticDocument">false</field>
|
|
|
|
<property name="isSyntheticDocument">
|
|
|
|
<getter><![CDATA[
|
|
|
|
return this._isSyntheticDocument;
|
|
|
|
]]></getter>
|
|
|
|
</property>
|
|
|
|
|
2015-05-13 23:42:20 +03:00
|
|
|
<property name="hasContentOpener">
|
|
|
|
<getter><![CDATA[
|
|
|
|
let {frameLoader} = this.QueryInterface(Ci.nsIFrameLoaderOwner);
|
|
|
|
return frameLoader.tabParent.hasContentOpener;
|
|
|
|
]]></getter>
|
|
|
|
</property>
|
|
|
|
|
2015-01-28 02:32:40 +03:00
|
|
|
<field name="_outerWindowID">null</field>
|
|
|
|
<property name="outerWindowID"
|
|
|
|
onget="return this._outerWindowID"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2013-12-07 04:02:05 +04:00
|
|
|
<property name="autoCompletePopup"
|
|
|
|
onget="return document.getElementById(this.getAttribute('autocompletepopup'))"
|
|
|
|
readonly="true"/>
|
|
|
|
|
2014-02-20 15:26:13 +04:00
|
|
|
<property name="docShellIsActive">
|
|
|
|
<getter>
|
|
|
|
<![CDATA[
|
|
|
|
throw new Error("not supported");
|
|
|
|
]]>
|
|
|
|
</getter>
|
|
|
|
<setter>
|
|
|
|
<![CDATA[
|
|
|
|
let {frameLoader} = this.QueryInterface(Ci.nsIFrameLoaderOwner);
|
|
|
|
frameLoader.tabParent.setIsDocShellActive(val);
|
|
|
|
return val;
|
|
|
|
]]>
|
|
|
|
</setter>
|
|
|
|
</property>
|
|
|
|
|
2014-12-30 04:09:52 +03:00
|
|
|
<field name="mDestroyed">false</field>
|
|
|
|
|
2013-04-25 09:29:31 +04:00
|
|
|
<constructor>
|
|
|
|
<![CDATA[
|
2014-03-12 07:13:52 +04:00
|
|
|
/*
|
|
|
|
* Don't try to send messages from this function. The message manager for
|
|
|
|
* the <browser> element may not be initialized yet.
|
|
|
|
*/
|
|
|
|
|
2013-10-28 23:24:51 +04:00
|
|
|
let jsm = "resource://gre/modules/RemoteWebNavigation.jsm";
|
|
|
|
let RemoteWebNavigation = Cu.import(jsm, {}).RemoteWebNavigation;
|
|
|
|
this._remoteWebNavigation = new RemoteWebNavigation(this);
|
|
|
|
|
2014-03-12 07:13:52 +04:00
|
|
|
this.messageManager.addMessageListener("Browser:Init", this);
|
2013-04-25 09:29:39 +04:00
|
|
|
this.messageManager.addMessageListener("DOMTitleChanged", this);
|
2013-07-29 19:03:41 +04:00
|
|
|
this.messageManager.addMessageListener("ImageDocumentLoaded", this);
|
2014-01-13 21:36:26 +04:00
|
|
|
this.messageManager.addMessageListener("DocumentInserted", this);
|
|
|
|
this.messageManager.addMessageListener("FullZoomChange", this);
|
|
|
|
this.messageManager.addMessageListener("TextZoomChange", this);
|
2014-08-20 19:13:35 +04:00
|
|
|
this.messageManager.addMessageListener("ZoomChangeUsingMouseWheel", this);
|
2014-08-20 00:58:00 +04:00
|
|
|
this.messageManager.addMessageListener("DOMFullscreen:RequestExit", this);
|
|
|
|
this.messageManager.addMessageListener("DOMFullscreen:RequestRollback", this);
|
2013-04-25 09:29:31 +04:00
|
|
|
this.messageManager.loadFrameScript("chrome://global/content/browser-child.js", true);
|
2013-08-26 05:34:23 +04:00
|
|
|
|
2015-01-06 00:38:48 +03:00
|
|
|
if (this.hasAttribute("selectmenulist")) {
|
2013-08-26 05:34:23 +04:00
|
|
|
this.messageManager.addMessageListener("Forms:ShowDropDown", this);
|
|
|
|
this.messageManager.addMessageListener("Forms:HideDropDown", this);
|
|
|
|
this.messageManager.loadFrameScript("chrome://global/content/select-child.js", true);
|
|
|
|
}
|
|
|
|
|
2015-08-10 22:15:11 +03:00
|
|
|
if (!this.hasAttribute("disablehistory")) {
|
|
|
|
Services.obs.addObserver(this, "browser:purge-session-history", false)
|
|
|
|
}
|
|
|
|
|
2013-10-28 23:24:51 +04:00
|
|
|
jsm = "resource://gre/modules/RemoteController.jsm";
|
2013-08-21 21:24:53 +04:00
|
|
|
let RemoteController = Components.utils.import(jsm, {}).RemoteController;
|
|
|
|
this._controller = new RemoteController(this);
|
|
|
|
this.controllers.appendController(this._controller);
|
2013-04-25 09:29:31 +04:00
|
|
|
]]>
|
|
|
|
</constructor>
|
|
|
|
|
2014-08-20 00:58:00 +04:00
|
|
|
<destructor>
|
|
|
|
<![CDATA[
|
2014-12-30 04:09:52 +03:00
|
|
|
this.destroy();
|
2014-08-20 00:58:00 +04:00
|
|
|
]]>
|
|
|
|
</destructor>
|
|
|
|
|
2014-12-30 04:09:52 +03:00
|
|
|
<!-- This is necessary because the destructor doesn't always get called when
|
2015-08-10 22:15:11 +03:00
|
|
|
we are removed from a tabbrowser. This will be explicitly called by tabbrowser.
|
|
|
|
|
|
|
|
Note: This overrides the destroy() method from browser.xml. -->
|
2014-12-30 04:09:52 +03:00
|
|
|
<method name="destroy">
|
|
|
|
<body><![CDATA[
|
|
|
|
if (this.mDestroyed)
|
|
|
|
return;
|
|
|
|
this.mDestroyed = true;
|
|
|
|
|
|
|
|
this.controllers.removeController(this._controller);
|
2015-08-10 22:15:11 +03:00
|
|
|
|
|
|
|
if (!this.hasAttribute("disablehistory")) {
|
|
|
|
try {
|
|
|
|
Services.obs.removeObserver(this, "browser:purge-session-history");
|
|
|
|
} catch (ex) {
|
|
|
|
// It's not clear why this sometimes throws an exception.
|
|
|
|
}
|
|
|
|
}
|
2014-12-30 04:09:52 +03:00
|
|
|
]]></body>
|
|
|
|
</method>
|
|
|
|
|
2013-04-25 09:29:39 +04:00
|
|
|
<method name="receiveMessage">
|
|
|
|
<parameter name="aMessage"/>
|
|
|
|
<body><![CDATA[
|
2013-08-26 05:34:23 +04:00
|
|
|
let data = aMessage.data;
|
2013-04-25 09:29:39 +04:00
|
|
|
switch (aMessage.name) {
|
2014-03-12 07:13:52 +04:00
|
|
|
case "Browser:Init":
|
2015-01-28 02:32:40 +03:00
|
|
|
this._outerWindowID = data.outerWindowID;
|
2014-03-12 07:13:52 +04:00
|
|
|
let result = {};
|
|
|
|
result.useGlobalHistory = !this.hasAttribute("disableglobalhistory");
|
2014-06-17 22:21:12 +04:00
|
|
|
result.initPopup = this.autoCompletePopup != null;
|
2014-03-12 07:13:52 +04:00
|
|
|
return result;
|
|
|
|
break;
|
2013-04-25 09:29:39 +04:00
|
|
|
case "DOMTitleChanged":
|
2013-08-26 05:34:23 +04:00
|
|
|
this._contentTitle = data.title;
|
2013-04-25 09:29:39 +04:00
|
|
|
break;
|
2013-07-29 19:03:41 +04:00
|
|
|
case "ImageDocumentLoaded":
|
|
|
|
this._imageDocument = {
|
2013-08-26 05:34:23 +04:00
|
|
|
width: data.width,
|
|
|
|
height: data.height
|
2013-07-29 19:03:41 +04:00
|
|
|
};
|
|
|
|
break;
|
2013-08-26 05:34:23 +04:00
|
|
|
|
|
|
|
case "Forms:ShowDropDown": {
|
2015-06-05 15:33:29 +03:00
|
|
|
if (!this._selectParentHelper) {
|
|
|
|
this._selectParentHelper =
|
|
|
|
Cu.import("resource://gre/modules/SelectParentHelper.jsm", {}).SelectParentHelper;
|
|
|
|
}
|
|
|
|
|
2015-01-06 00:38:48 +03:00
|
|
|
let menulist = document.getElementById(this.getAttribute("selectmenulist"));
|
2015-07-14 05:03:51 +03:00
|
|
|
menulist.menupopup.style.direction = data.direction;
|
2015-06-08 21:41:17 +03:00
|
|
|
this._selectParentHelper.populate(menulist, data.options, data.selectedIndex, this._fullZoom);
|
2015-06-05 15:33:29 +03:00
|
|
|
this._selectParentHelper.open(this, menulist, data.rect);
|
2013-08-26 05:34:23 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2014-08-21 19:42:41 +04:00
|
|
|
case "FullZoomChange": {
|
2014-01-13 21:36:26 +04:00
|
|
|
this._fullZoom = data.value;
|
2014-08-21 19:42:41 +04:00
|
|
|
let event = document.createEvent("Events");
|
|
|
|
event.initEvent("FullZoomChange", true, false);
|
|
|
|
this.dispatchEvent(event);
|
2014-01-13 21:36:26 +04:00
|
|
|
break;
|
2014-08-21 19:42:41 +04:00
|
|
|
}
|
2014-01-13 21:36:26 +04:00
|
|
|
|
2014-08-21 19:42:41 +04:00
|
|
|
case "TextZoomChange": {
|
2014-01-13 21:36:26 +04:00
|
|
|
this._textZoom = data.value;
|
2014-08-21 19:42:41 +04:00
|
|
|
let event = document.createEvent("Events");
|
|
|
|
event.initEvent("TextZoomChange", true, false);
|
|
|
|
this.dispatchEvent(event);
|
2014-01-13 21:36:26 +04:00
|
|
|
break;
|
2014-08-21 19:42:41 +04:00
|
|
|
}
|
2014-01-13 21:36:26 +04:00
|
|
|
|
2014-08-21 19:42:41 +04:00
|
|
|
case "ZoomChangeUsingMouseWheel": {
|
2014-08-20 19:13:35 +04:00
|
|
|
let event = document.createEvent("Events");
|
|
|
|
event.initEvent("ZoomChangeUsingMouseWheel", true, false);
|
|
|
|
this.dispatchEvent(event);
|
|
|
|
break;
|
2014-08-21 19:42:41 +04:00
|
|
|
}
|
2014-08-20 19:13:35 +04:00
|
|
|
|
2013-08-26 05:34:23 +04:00
|
|
|
case "Forms:HideDropDown": {
|
2015-06-05 15:33:29 +03:00
|
|
|
if (this._selectParentHelper) {
|
|
|
|
let menulist = document.getElementById(this.getAttribute("selectmenulist"));
|
|
|
|
this._selectParentHelper.hide(menulist);
|
|
|
|
}
|
2014-03-14 22:45:53 +04:00
|
|
|
break;
|
2013-08-26 05:34:23 +04:00
|
|
|
}
|
2014-03-14 22:45:53 +04:00
|
|
|
|
2014-08-20 00:58:00 +04:00
|
|
|
case "DOMFullscreen:RequestExit": {
|
|
|
|
let windowUtils = window.QueryInterface(Ci.nsIInterfaceRequestor)
|
|
|
|
.getInterface(Ci.nsIDOMWindowUtils);
|
|
|
|
windowUtils.exitFullscreen();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "DOMFullscreen:RequestRollback": {
|
|
|
|
let windowUtils = window.QueryInterface(Ci.nsIInterfaceRequestor)
|
|
|
|
.getInterface(Ci.nsIDOMWindowUtils);
|
|
|
|
windowUtils.remoteFrameFullscreenReverted();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2014-03-14 22:45:53 +04:00
|
|
|
default:
|
|
|
|
// Delegate to browser.xml.
|
|
|
|
return this._receiveMessage(aMessage);
|
|
|
|
break;
|
2013-04-25 09:29:39 +04:00
|
|
|
}
|
|
|
|
]]></body>
|
|
|
|
</method>
|
|
|
|
|
2014-12-09 18:48:27 +03:00
|
|
|
<method name="enableDisableCommands">
|
|
|
|
<parameter name="aAction"/>
|
|
|
|
<parameter name="aEnabledLength"/>
|
|
|
|
<parameter name="aEnabledCommands"/>
|
|
|
|
<parameter name="aDisabledLength"/>
|
|
|
|
<parameter name="aDisabledCommands"/>
|
|
|
|
<body>
|
|
|
|
if (this._controller) {
|
|
|
|
this._controller.enableDisableCommands(aAction,
|
|
|
|
aEnabledLength, aEnabledCommands,
|
|
|
|
aDisabledLength, aDisabledCommands);
|
|
|
|
}
|
|
|
|
</body>
|
|
|
|
</method>
|
|
|
|
|
2015-08-10 22:15:11 +03:00
|
|
|
<method name="purgeSessionHistory">
|
|
|
|
<body>
|
|
|
|
<![CDATA[
|
|
|
|
this.messageManager.sendAsyncMessage("Browser:PurgeSessionHistory");
|
|
|
|
this.webNavigation.canGoBack = false;
|
|
|
|
this.webNavigation.canGoForward = false;
|
|
|
|
]]>
|
|
|
|
</body>
|
|
|
|
</method>
|
2013-04-25 09:29:31 +04:00
|
|
|
</implementation>
|
|
|
|
|
|
|
|
</binding>
|
|
|
|
|
|
|
|
</bindings>
|