mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 654687 - Combine Stop and Reload in the page context menu. r=felipe
This commit is contained in:
parent
630f786a41
commit
121d46ca3b
@ -148,8 +148,9 @@ nsContextMenu.prototype = {
|
||||
this.onTextInput);
|
||||
this.showItem("context-back", shouldShow);
|
||||
this.showItem("context-forward", shouldShow);
|
||||
this.showItem("context-reload", shouldShow);
|
||||
this.showItem("context-stop", shouldShow);
|
||||
var shouldShowReload = XULBrowserWindow.stopCommand.getAttribute("disabled") == "true";
|
||||
this.showItem("context-reload", shouldShow && shouldShowReload);
|
||||
this.showItem("context-stop", shouldShow && !shouldShowReload);
|
||||
this.showItem("context-sep-stop", shouldShow);
|
||||
|
||||
// XXX: Stop is determined in browser.js; the canStop broadcaster is broken
|
||||
|
@ -272,7 +272,6 @@ function runTest(testNum) {
|
||||
plainTextItems = ["context-back", false,
|
||||
"context-forward", false,
|
||||
"context-reload", true,
|
||||
"context-stop", false,
|
||||
"---", null,
|
||||
"context-bookmarkpage", true,
|
||||
"context-savepage", true,
|
||||
@ -428,7 +427,6 @@ function runTest(testNum) {
|
||||
checkContextMenu(["context-back", false,
|
||||
"context-forward", false,
|
||||
"context-reload", true,
|
||||
"context-stop", false,
|
||||
"---", null,
|
||||
"context-bookmarkpage", true,
|
||||
"context-savepage", true,
|
||||
@ -653,7 +651,6 @@ function runTest(testNum) {
|
||||
"context-back", false,
|
||||
"context-forward", false,
|
||||
"context-reload", true,
|
||||
"context-stop", false,
|
||||
"---", null,
|
||||
"context-bookmarkpage", true,
|
||||
"context-savepage", true,
|
||||
@ -687,7 +684,6 @@ function runTest(testNum) {
|
||||
"context-back", false,
|
||||
"context-forward", false,
|
||||
"context-reload", true,
|
||||
"context-stop", false,
|
||||
"---", null,
|
||||
"context-bookmarkpage", true,
|
||||
"context-savepage", true,
|
||||
@ -716,7 +712,6 @@ function runTest(testNum) {
|
||||
checkContextMenu(["context-back", false,
|
||||
"context-forward", false,
|
||||
"context-reload", true,
|
||||
"context-stop", false,
|
||||
"---", null,
|
||||
"context-bookmarkpage", true,
|
||||
"context-savepage", true,
|
||||
|
Loading…
Reference in New Issue
Block a user