Bug 654687 - Combine Stop and Reload in the page context menu. r=felipe

This commit is contained in:
Jared Wein 2012-07-03 23:21:53 -07:00
Родитель a010d3eb72
Коммит f07fa6d8f3
2 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -148,8 +148,9 @@ nsContextMenu.prototype = {
this.onTextInput); this.onTextInput);
this.showItem("context-back", shouldShow); this.showItem("context-back", shouldShow);
this.showItem("context-forward", shouldShow); this.showItem("context-forward", shouldShow);
this.showItem("context-reload", shouldShow); var shouldShowReload = XULBrowserWindow.stopCommand.getAttribute("disabled") == "true";
this.showItem("context-stop", shouldShow); this.showItem("context-reload", shouldShow && shouldShowReload);
this.showItem("context-stop", shouldShow && !shouldShowReload);
this.showItem("context-sep-stop", shouldShow); this.showItem("context-sep-stop", shouldShow);
// XXX: Stop is determined in browser.js; the canStop broadcaster is broken // XXX: Stop is determined in browser.js; the canStop broadcaster is broken

Просмотреть файл

@ -272,7 +272,6 @@ function runTest(testNum) {
plainTextItems = ["context-back", false, plainTextItems = ["context-back", false,
"context-forward", false, "context-forward", false,
"context-reload", true, "context-reload", true,
"context-stop", false,
"---", null, "---", null,
"context-bookmarkpage", true, "context-bookmarkpage", true,
"context-savepage", true, "context-savepage", true,
@ -428,7 +427,6 @@ function runTest(testNum) {
checkContextMenu(["context-back", false, checkContextMenu(["context-back", false,
"context-forward", false, "context-forward", false,
"context-reload", true, "context-reload", true,
"context-stop", false,
"---", null, "---", null,
"context-bookmarkpage", true, "context-bookmarkpage", true,
"context-savepage", true, "context-savepage", true,
@ -653,7 +651,6 @@ function runTest(testNum) {
"context-back", false, "context-back", false,
"context-forward", false, "context-forward", false,
"context-reload", true, "context-reload", true,
"context-stop", false,
"---", null, "---", null,
"context-bookmarkpage", true, "context-bookmarkpage", true,
"context-savepage", true, "context-savepage", true,
@ -687,7 +684,6 @@ function runTest(testNum) {
"context-back", false, "context-back", false,
"context-forward", false, "context-forward", false,
"context-reload", true, "context-reload", true,
"context-stop", false,
"---", null, "---", null,
"context-bookmarkpage", true, "context-bookmarkpage", true,
"context-savepage", true, "context-savepage", true,
@ -716,7 +712,6 @@ function runTest(testNum) {
checkContextMenu(["context-back", false, checkContextMenu(["context-back", false,
"context-forward", false, "context-forward", false,
"context-reload", true, "context-reload", true,
"context-stop", false,
"---", null, "---", null,
"context-bookmarkpage", true, "context-bookmarkpage", true,
"context-savepage", true, "context-savepage", true,