mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge fx-team to m-c. a=merge
This commit is contained in:
commit
f2bade55ae
@ -198,12 +198,10 @@
|
|||||||
</groupbox>
|
</groupbox>
|
||||||
#ifdef HAVE_SHELL_SERVICE
|
#ifdef HAVE_SHELL_SERVICE
|
||||||
<!-- System Defaults -->
|
<!-- System Defaults -->
|
||||||
<groupbox id="systemDefaultsGroup" orient="vertical">
|
<groupbox id="systemDefaultsGroup" orient="vertical" align="start">
|
||||||
<caption><label>&systemDefaults.label;</label></caption>
|
<caption><label>&systemDefaults.label;</label></caption>
|
||||||
|
|
||||||
<checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
|
<checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
|
||||||
label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"
|
label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"/>
|
||||||
flex="1"/>
|
|
||||||
<hbox class="indent">
|
<hbox class="indent">
|
||||||
<deck id="setDefaultPane">
|
<deck id="setDefaultPane">
|
||||||
<button id="setDefaultButton"
|
<button id="setDefaultButton"
|
||||||
@ -293,11 +291,13 @@
|
|||||||
label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"
|
label="&clearCacheNow.label;" accesskey="&clearCacheNow.accesskey;"
|
||||||
oncommand="gAdvancedPane.clearCache();"/>
|
oncommand="gAdvancedPane.clearCache();"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
<hbox>
|
||||||
<checkbox preference="browser.cache.disk.smart_size.enabled"
|
<checkbox preference="browser.cache.disk.smart_size.enabled"
|
||||||
id="allowSmartSize" flex="1"
|
id="allowSmartSize"
|
||||||
onsyncfrompreference="return gAdvancedPane.readSmartSizeEnabled();"
|
onsyncfrompreference="return gAdvancedPane.readSmartSizeEnabled();"
|
||||||
label="&overrideSmartCacheSize.label;"
|
label="&overrideSmartCacheSize.label;"
|
||||||
accesskey="&overrideSmartCacheSize.accesskey;"/>
|
accesskey="&overrideSmartCacheSize.accesskey;"/>
|
||||||
|
</hbox>
|
||||||
<hbox align="center" class="indent">
|
<hbox align="center" class="indent">
|
||||||
<label id="useCacheBefore" control="cacheSize"
|
<label id="useCacheBefore" control="cacheSize"
|
||||||
accesskey="&limitCacheSizeBefore.accesskey;">
|
accesskey="&limitCacheSizeBefore.accesskey;">
|
||||||
@ -323,10 +323,11 @@
|
|||||||
oncommand="gAdvancedPane.clearOfflineAppCache();"/>
|
oncommand="gAdvancedPane.clearOfflineAppCache();"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox align="center">
|
<hbox align="center">
|
||||||
<checkbox id="offlineNotify" flex="1"
|
<checkbox id="offlineNotify"
|
||||||
label="&offlineNotify.label;" accesskey="&offlineNotify.accesskey;"
|
label="&offlineNotify.label;" accesskey="&offlineNotify.accesskey;"
|
||||||
preference="browser.offline-apps.notify"
|
preference="browser.offline-apps.notify"
|
||||||
onsyncfrompreference="return gAdvancedPane.readOfflineNotify();"/>
|
onsyncfrompreference="return gAdvancedPane.readOfflineNotify();"/>
|
||||||
|
<spacer flex="1"/>
|
||||||
<button id="offlineNotifyExceptions"
|
<button id="offlineNotifyExceptions"
|
||||||
label="&offlineNotifyExceptions.label;"
|
label="&offlineNotifyExceptions.label;"
|
||||||
accesskey="&offlineNotifyExceptions.accesskey;"
|
accesskey="&offlineNotifyExceptions.accesskey;"
|
||||||
@ -356,7 +357,7 @@
|
|||||||
<!-- Update -->
|
<!-- Update -->
|
||||||
<tabpanel id="updatePanel" orient="vertical">
|
<tabpanel id="updatePanel" orient="vertical">
|
||||||
#ifdef MOZ_UPDATER
|
#ifdef MOZ_UPDATER
|
||||||
<groupbox id="updateApp">
|
<groupbox id="updateApp" align="start">
|
||||||
<caption><label>&updateApp.label;</label></caption>
|
<caption><label>&updateApp.label;</label></caption>
|
||||||
<radiogroup id="updateRadioGroup"
|
<radiogroup id="updateRadioGroup"
|
||||||
oncommand="gAdvancedPane.updateWritePrefs();">
|
oncommand="gAdvancedPane.updateWritePrefs();">
|
||||||
@ -408,7 +409,7 @@
|
|||||||
#endif
|
#endif
|
||||||
</groupbox>
|
</groupbox>
|
||||||
#endif
|
#endif
|
||||||
<groupbox id="updateOthers">
|
<groupbox id="updateOthers" align="start">
|
||||||
<caption><label>&updateOthers.label;</label></caption>
|
<caption><label>&updateOthers.label;</label></caption>
|
||||||
<checkbox id="enableSearchUpdate"
|
<checkbox id="enableSearchUpdate"
|
||||||
label="&enableSearchUpdate.label;"
|
label="&enableSearchUpdate.label;"
|
||||||
|
@ -188,16 +188,18 @@
|
|||||||
preference="browser.download.folderList"
|
preference="browser.download.folderList"
|
||||||
onsynctopreference="return gMainPane.getFolderListPref();"/>
|
onsynctopreference="return gMainPane.getFolderListPref();"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
<hbox>
|
||||||
<radio id="alwaysAsk"
|
<radio id="alwaysAsk"
|
||||||
value="false"
|
value="false"
|
||||||
label="&alwaysAsk.label;"
|
label="&alwaysAsk.label;"
|
||||||
accesskey="&alwaysAsk.accesskey;"/>
|
accesskey="&alwaysAsk.accesskey;"/>
|
||||||
|
</hbox>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
<!-- Tab preferences -->
|
<!-- Tab preferences -->
|
||||||
<groupbox data-category="paneGeneral"
|
<groupbox data-category="paneGeneral"
|
||||||
hidden="true">
|
hidden="true" align="start">
|
||||||
<caption><label>&tabsGroup.label;</label></caption>
|
<caption><label>&tabsGroup.label;</label></caption>
|
||||||
<checkbox id="linkTargeting" label="&newWindowsAsTabs.label;"
|
<checkbox id="linkTargeting" label="&newWindowsAsTabs.label;"
|
||||||
accesskey="&newWindowsAsTabs.accesskey;"
|
accesskey="&newWindowsAsTabs.accesskey;"
|
||||||
|
@ -45,11 +45,12 @@
|
|||||||
<caption><label>&general.label;</label></caption>
|
<caption><label>&general.label;</label></caption>
|
||||||
|
|
||||||
<hbox id="addonInstallBox">
|
<hbox id="addonInstallBox">
|
||||||
<checkbox id="warnAddonInstall" flex="1"
|
<checkbox id="warnAddonInstall"
|
||||||
label="&warnAddonInstall.label;"
|
label="&warnAddonInstall.label;"
|
||||||
accesskey="&warnAddonInstall.accesskey;"
|
accesskey="&warnAddonInstall.accesskey;"
|
||||||
preference="xpinstall.whitelist.required"
|
preference="xpinstall.whitelist.required"
|
||||||
onsyncfrompreference="return gSecurityPane.readWarnAddonInstall();"/>
|
onsyncfrompreference="return gSecurityPane.readWarnAddonInstall();"/>
|
||||||
|
<spacer flex="1"/>
|
||||||
<button id="addonExceptions"
|
<button id="addonExceptions"
|
||||||
label="&addonExceptions.label;"
|
label="&addonExceptions.label;"
|
||||||
accesskey="&addonExceptions.accesskey;"
|
accesskey="&addonExceptions.accesskey;"
|
||||||
@ -57,6 +58,7 @@
|
|||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<separator class="thin"/>
|
<separator class="thin"/>
|
||||||
|
<vbox align="start">
|
||||||
<checkbox id="blockAttackSites"
|
<checkbox id="blockAttackSites"
|
||||||
label="&blockAttackSites.label;"
|
label="&blockAttackSites.label;"
|
||||||
accesskey="&blockAttackSites.accesskey;"
|
accesskey="&blockAttackSites.accesskey;"
|
||||||
@ -65,6 +67,7 @@
|
|||||||
label="&blockWebForgeries.label;"
|
label="&blockWebForgeries.label;"
|
||||||
accesskey="&blockWebForgeries.accesskey;"
|
accesskey="&blockWebForgeries.accesskey;"
|
||||||
preference="browser.safebrowsing.enabled" />
|
preference="browser.safebrowsing.enabled" />
|
||||||
|
</vbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
<!-- Passwords -->
|
<!-- Passwords -->
|
||||||
@ -72,10 +75,11 @@
|
|||||||
<caption><label>&passwords.label;</label></caption>
|
<caption><label>&passwords.label;</label></caption>
|
||||||
|
|
||||||
<hbox id="savePasswordsBox">
|
<hbox id="savePasswordsBox">
|
||||||
<checkbox id="savePasswords" flex="1"
|
<checkbox id="savePasswords"
|
||||||
label="&rememberPasswords.label;" accesskey="&rememberPasswords.accesskey;"
|
label="&rememberPasswords.label;" accesskey="&rememberPasswords.accesskey;"
|
||||||
preference="signon.rememberSignons"
|
preference="signon.rememberSignons"
|
||||||
onsyncfrompreference="return gSecurityPane.readSavePasswords();"/>
|
onsyncfrompreference="return gSecurityPane.readSavePasswords();"/>
|
||||||
|
<spacer flex="1"/>
|
||||||
<button id="passwordExceptions"
|
<button id="passwordExceptions"
|
||||||
label="&passwordExceptions.label;"
|
label="&passwordExceptions.label;"
|
||||||
accesskey="&passwordExceptions.accesskey;"
|
accesskey="&passwordExceptions.accesskey;"
|
||||||
@ -83,10 +87,11 @@
|
|||||||
preference="pref.privacy.disable_button.view_passwords_exceptions"/>
|
preference="pref.privacy.disable_button.view_passwords_exceptions"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox id="masterPasswordBox">
|
<hbox id="masterPasswordBox">
|
||||||
<checkbox id="useMasterPassword" flex="1"
|
<checkbox id="useMasterPassword"
|
||||||
oncommand="gSecurityPane.updateMasterPasswordButton();"
|
oncommand="gSecurityPane.updateMasterPasswordButton();"
|
||||||
label="&useMasterPassword.label;"
|
label="&useMasterPassword.label;"
|
||||||
accesskey="&useMasterPassword.accesskey;"/>
|
accesskey="&useMasterPassword.accesskey;"/>
|
||||||
|
<spacer flex="1"/>
|
||||||
<button id="changeMasterPassword"
|
<button id="changeMasterPassword"
|
||||||
label="&changeMasterPassword.label;"
|
label="&changeMasterPassword.label;"
|
||||||
accesskey="&changeMasterPassword.accesskey;"
|
accesskey="&changeMasterPassword.accesskey;"
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
<spacer flex="1"/>
|
<spacer flex="1"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<vbox id="noFxaAccount">
|
<vbox id="noFxaAccount" align="start">
|
||||||
<label>&welcome.description;</label>
|
<label>&welcome.description;</label>
|
||||||
<label class="text-link"
|
<label class="text-link"
|
||||||
onclick="gSyncPane.signUp(); return false;">
|
onclick="gSyncPane.signUp(); return false;">
|
||||||
|
@ -27,6 +27,7 @@ support-files =
|
|||||||
[browser_toolbox_sidebar.js]
|
[browser_toolbox_sidebar.js]
|
||||||
[browser_toolbox_tabsswitch_shortcuts.js]
|
[browser_toolbox_tabsswitch_shortcuts.js]
|
||||||
[browser_toolbox_tool_ready.js]
|
[browser_toolbox_tool_ready.js]
|
||||||
|
[browser_toolbox_window_reload_target.js]
|
||||||
[browser_toolbox_window_shortcuts.js]
|
[browser_toolbox_window_shortcuts.js]
|
||||||
[browser_toolbox_window_title_changes.js]
|
[browser_toolbox_window_title_changes.js]
|
||||||
[browser_toolbox_zoom.js]
|
[browser_toolbox_zoom.js]
|
||||||
|
@ -0,0 +1,101 @@
|
|||||||
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
|
let Toolbox = devtools.Toolbox;
|
||||||
|
|
||||||
|
let target, toolbox, description, reloadsSent, toolIDs;
|
||||||
|
|
||||||
|
function test() {
|
||||||
|
waitForExplicitFinish();
|
||||||
|
|
||||||
|
addTab("data:text/html;charset=utf-8,"+
|
||||||
|
"<html><head><title>Test reload</title></head>"+
|
||||||
|
"<body><h1>Testing reload from devtools</h1></body></html>",
|
||||||
|
() => {
|
||||||
|
target = TargetFactory.forTab(gBrowser.selectedTab);
|
||||||
|
|
||||||
|
target.makeRemote().then(() => {
|
||||||
|
toolIDs = gDevTools.getToolDefinitionArray()
|
||||||
|
.filter(def => def.isTargetSupported(target))
|
||||||
|
.map(def => def.id);
|
||||||
|
gDevTools.showToolbox(target, toolIDs[0], Toolbox.HostType.BOTTOM)
|
||||||
|
.then(startReloadTest);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startReloadTest(aToolbox) {
|
||||||
|
toolbox = aToolbox;
|
||||||
|
|
||||||
|
reloadsSent = 0;
|
||||||
|
let reloads = 0;
|
||||||
|
let reloadCounter = (event) => {
|
||||||
|
reloads++;
|
||||||
|
info("Detected reload #"+reloads);
|
||||||
|
is(reloads, reloadsSent, "Reloaded from devtools window once and only for "+description+"");
|
||||||
|
};
|
||||||
|
gBrowser.selectedBrowser.addEventListener('load', reloadCounter, true);
|
||||||
|
|
||||||
|
testAllTheTools("docked", () => {
|
||||||
|
let origHostType = toolbox.hostType;
|
||||||
|
toolbox.switchHost(Toolbox.HostType.WINDOW).then(() => {
|
||||||
|
toolbox.doc.defaultView.focus();
|
||||||
|
testAllTheTools("undocked", () => {
|
||||||
|
toolbox.switchHost(origHostType).then(() => {
|
||||||
|
gBrowser.selectedBrowser.removeEventListener('load', reloadCounter, true);
|
||||||
|
// If we finish too early, the inspector breaks promises:
|
||||||
|
toolbox.getPanel("inspector").once("new-root", finishUp);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, toolIDs.length-1 /* only test 1 tool in docked mode, to cut down test time */);
|
||||||
|
}
|
||||||
|
|
||||||
|
function testAllTheTools(docked, callback, toolNum=0) {
|
||||||
|
if (toolNum >= toolIDs.length) {
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
toolbox.selectTool(toolIDs[toolNum]).then(() => {
|
||||||
|
testReload("toolbox-reload-key", docked, toolIDs[toolNum], () => {
|
||||||
|
testReload("toolbox-reload-key2", docked, toolIDs[toolNum], () => {
|
||||||
|
testReload("toolbox-force-reload-key", docked, toolIDs[toolNum], () => {
|
||||||
|
testReload("toolbox-force-reload-key2", docked, toolIDs[toolNum], () => {
|
||||||
|
testAllTheTools(docked, callback, toolNum+1);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function synthesizeKeyForToolbox(keyId) {
|
||||||
|
let el = toolbox.doc.getElementById(keyId);
|
||||||
|
let key = el.getAttribute("key") || el.getAttribute("keycode");
|
||||||
|
let mod = {};
|
||||||
|
el.getAttribute("modifiers").split(" ").forEach((m) => mod[m+"Key"] = true);
|
||||||
|
info("Synthesizing: key="+key+", mod="+JSON.stringify(mod));
|
||||||
|
EventUtils.synthesizeKey(key, mod, toolbox.doc.defaultView);
|
||||||
|
}
|
||||||
|
|
||||||
|
function testReload(key, docked, toolID, callback) {
|
||||||
|
let complete = () => {
|
||||||
|
gBrowser.selectedBrowser.removeEventListener('load', complete, true);
|
||||||
|
return callback();
|
||||||
|
};
|
||||||
|
gBrowser.selectedBrowser.addEventListener('load', complete, true);
|
||||||
|
|
||||||
|
description = docked+" devtools with tool "+toolID+", key #" + key;
|
||||||
|
info("Testing reload in "+description);
|
||||||
|
synthesizeKeyForToolbox(key);
|
||||||
|
reloadsSent++;
|
||||||
|
}
|
||||||
|
|
||||||
|
function finishUp() {
|
||||||
|
toolbox.destroy().then(() => {
|
||||||
|
gBrowser.removeCurrentTab();
|
||||||
|
|
||||||
|
target = toolbox = description = reloadsSent = toolIDs = null;
|
||||||
|
|
||||||
|
finish();
|
||||||
|
});
|
||||||
|
}
|
@ -247,6 +247,7 @@ Toolbox.prototype = {
|
|||||||
this._buildTabs();
|
this._buildTabs();
|
||||||
this._buildButtons();
|
this._buildButtons();
|
||||||
this._addKeysToWindow();
|
this._addKeysToWindow();
|
||||||
|
this._addReloadKeys();
|
||||||
this._addToolSwitchingKeys();
|
this._addToolSwitchingKeys();
|
||||||
this._addZoomKeys();
|
this._addZoomKeys();
|
||||||
this._loadInitialZoom();
|
this._loadInitialZoom();
|
||||||
@ -295,6 +296,19 @@ Toolbox.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_addReloadKeys: function() {
|
||||||
|
[
|
||||||
|
["toolbox-reload-key", false],
|
||||||
|
["toolbox-reload-key2", false],
|
||||||
|
["toolbox-force-reload-key", true],
|
||||||
|
["toolbox-force-reload-key2", true]
|
||||||
|
].forEach(([id, force]) => {
|
||||||
|
this.doc.getElementById(id).addEventListener("command", (event) => {
|
||||||
|
this.reloadTarget(force);
|
||||||
|
}, true);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
_addToolSwitchingKeys: function() {
|
_addToolSwitchingKeys: function() {
|
||||||
let nextKey = this.doc.getElementById("toolbox-next-tool-key");
|
let nextKey = this.doc.getElementById("toolbox-next-tool-key");
|
||||||
nextKey.addEventListener("command", this.selectNextTool.bind(this), true);
|
nextKey.addEventListener("command", this.selectNextTool.bind(this), true);
|
||||||
@ -914,6 +928,13 @@ Toolbox.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tells the target tab to reload.
|
||||||
|
*/
|
||||||
|
reloadTarget: function(force) {
|
||||||
|
this.target.activeTab.reload({ force: force });
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the tool next to the currently selected tool.
|
* Loads the tool next to the currently selected tool.
|
||||||
*/
|
*/
|
||||||
|
@ -47,6 +47,22 @@
|
|||||||
key="&toolboxZoomReset.key;"
|
key="&toolboxZoomReset.key;"
|
||||||
oncommand="void(0);"
|
oncommand="void(0);"
|
||||||
modifiers="accel"/>
|
modifiers="accel"/>
|
||||||
|
<key id="toolbox-reload-key"
|
||||||
|
key="&toolboxReload.key;"
|
||||||
|
oncommand="void(0);"
|
||||||
|
modifiers="accel"/>
|
||||||
|
<key id="toolbox-force-reload-key"
|
||||||
|
key="&toolboxReload.key;"
|
||||||
|
oncommand="void(0);"
|
||||||
|
modifiers="accel shift"/>
|
||||||
|
<key id="toolbox-reload-key2"
|
||||||
|
keycode="VK_F5"
|
||||||
|
oncommand="void(0);"
|
||||||
|
modifiers=""/>
|
||||||
|
<key id="toolbox-force-reload-key2"
|
||||||
|
keycode="VK_F5"
|
||||||
|
oncommand="void(0);"
|
||||||
|
modifiers="accel"/>
|
||||||
</keyset>
|
</keyset>
|
||||||
|
|
||||||
<notificationbox id="toolbox-notificationbox" flex="1">
|
<notificationbox id="toolbox-notificationbox" flex="1">
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
<!ENTITY toolboxZoomOut.key "-">
|
<!ENTITY toolboxZoomOut.key "-">
|
||||||
<!ENTITY toolboxZoomReset.key "0">
|
<!ENTITY toolboxZoomReset.key "0">
|
||||||
|
|
||||||
|
<!ENTITY toolboxReload.key "r">
|
||||||
|
|
||||||
<!-- LOCALIZATION NOTE (options.context.advancedSettings): This is the label for
|
<!-- LOCALIZATION NOTE (options.context.advancedSettings): This is the label for
|
||||||
- the heading of the advanced settings group in the options panel. -->
|
- the heading of the advanced settings group in the options panel. -->
|
||||||
<!ENTITY options.context.advancedSettings "Advanced settings">
|
<!ENTITY options.context.advancedSettings "Advanced settings">
|
||||||
|
@ -149,6 +149,7 @@ public class ButtonToast {
|
|||||||
// If we are showing a toast and go in the background
|
// If we are showing a toast and go in the background
|
||||||
// onAnimationEnd will be called when the app is restored
|
// onAnimationEnd will be called when the app is restored
|
||||||
public void onPropertyAnimationEnd() {
|
public void onPropertyAnimationEnd() {
|
||||||
|
mView.clearAnimation();
|
||||||
mView.setVisibility(View.GONE);
|
mView.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
public void onPropertyAnimationStart() { }
|
public void onPropertyAnimationStart() { }
|
||||||
|
@ -1261,9 +1261,17 @@ TabClient.prototype = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reload the page in this tab.
|
* Reload the page in this tab.
|
||||||
|
*
|
||||||
|
* @param [optional] object options
|
||||||
|
* An object with a `force` property indicating whether or not
|
||||||
|
* this reload should skip the cache
|
||||||
*/
|
*/
|
||||||
reload: DebuggerClient.requester({
|
reload: function(options = { force: false }) {
|
||||||
type: "reload"
|
return this._reload(options);
|
||||||
|
},
|
||||||
|
_reload: DebuggerClient.requester({
|
||||||
|
type: "reload",
|
||||||
|
options: args(0)
|
||||||
}, {
|
}, {
|
||||||
telemetry: "RELOAD"
|
telemetry: "RELOAD"
|
||||||
}),
|
}),
|
||||||
|
@ -828,10 +828,12 @@ TabActor.prototype = {
|
|||||||
* Reload the page in this tab.
|
* Reload the page in this tab.
|
||||||
*/
|
*/
|
||||||
onReload: function(aRequest) {
|
onReload: function(aRequest) {
|
||||||
|
let force = aRequest && aRequest.options && aRequest.options.force;
|
||||||
// Wait a tick so that the response packet can be dispatched before the
|
// Wait a tick so that the response packet can be dispatched before the
|
||||||
// subsequent navigation event packet.
|
// subsequent navigation event packet.
|
||||||
Services.tm.currentThread.dispatch(DevToolsUtils.makeInfallible(() => {
|
Services.tm.currentThread.dispatch(DevToolsUtils.makeInfallible(() => {
|
||||||
this.window.location.reload();
|
this.webNavigation.reload(force ? Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE
|
||||||
|
: Ci.nsIWebNavigation.LOAD_FLAGS_NONE);
|
||||||
}, "TabActor.prototype.onReload's delayed body"), 0);
|
}, "TabActor.prototype.onReload's delayed body"), 0);
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
@ -693,7 +693,7 @@ Barrier.prototype = Object.freeze({
|
|||||||
" At least one completion condition failed to complete" +
|
" At least one completion condition failed to complete" +
|
||||||
" within a reasonable amount of time. Causing a crash to" +
|
" within a reasonable amount of time. Causing a crash to" +
|
||||||
" ensure that we do not leave the user with an unresponsive" +
|
" ensure that we do not leave the user with an unresponsive" +
|
||||||
" process draining resources." +
|
" process draining resources.";
|
||||||
err(msg);
|
err(msg);
|
||||||
if (gCrashReporter && gCrashReporter.enabled) {
|
if (gCrashReporter && gCrashReporter.enabled) {
|
||||||
let data = {
|
let data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user