зеркало из https://github.com/mozilla/pjs.git
Bug 719850 - Web Console should be checked according to the selected tab. r=dao
This commit is contained in:
Родитель
894f5e0fe4
Коммит
8c5b233a77
|
@ -176,7 +176,8 @@
|
||||||
<menuseparator class="appmenu-menuseparator"/>
|
<menuseparator class="appmenu-menuseparator"/>
|
||||||
<menu id="appmenu_webDeveloper"
|
<menu id="appmenu_webDeveloper"
|
||||||
label="&appMenuWebDeveloper.label;">
|
label="&appMenuWebDeveloper.label;">
|
||||||
<menupopup id="appmenu_webDeveloper_popup">
|
<menupopup id="appmenu_webDeveloper_popup"
|
||||||
|
onpopupshowing="onWebDeveloperMenuShowing();">
|
||||||
<menuitem id="appmenu_webConsole"
|
<menuitem id="appmenu_webConsole"
|
||||||
label="&webConsoleCmd.label;"
|
label="&webConsoleCmd.label;"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|
|
@ -531,7 +531,8 @@
|
||||||
<menu id="webDeveloperMenu"
|
<menu id="webDeveloperMenu"
|
||||||
label="&webDeveloperMenu.label;"
|
label="&webDeveloperMenu.label;"
|
||||||
accesskey="&webDeveloperMenu.accesskey;">
|
accesskey="&webDeveloperMenu.accesskey;">
|
||||||
<menupopup id="menuWebDeveloperPopup">
|
<menupopup id="menuWebDeveloperPopup"
|
||||||
|
onpopupshowing="onWebDeveloperMenuShowing();">
|
||||||
<menuitem id="webConsole"
|
<menuitem id="webConsole"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
label="&webConsoleCmd.label;"
|
label="&webConsoleCmd.label;"
|
||||||
|
|
|
@ -9060,6 +9060,11 @@ var StyleEditor = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function onWebDeveloperMenuShowing() {
|
||||||
|
document.getElementById("Tools:WebConsole").setAttribute("checked", HUDConsoleUI.getOpenHUD() != null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(window, "gShowPageResizers", function () {
|
XPCOMUtils.defineLazyGetter(window, "gShowPageResizers", function () {
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
// Only show resizers on Windows 2000 and XP
|
// Only show resizers on Windows 2000 and XP
|
||||||
|
@ -9134,6 +9139,7 @@ var MousePosTracker = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function focusNextFrame(event) {
|
function focusNextFrame(event) {
|
||||||
let fm = Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager);
|
let fm = Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager);
|
||||||
let dir = event.shiftKey ? fm.MOVEFOCUS_BACKWARDDOC : fm.MOVEFOCUS_FORWARDDOC;
|
let dir = event.shiftKey ? fm.MOVEFOCUS_BACKWARDDOC : fm.MOVEFOCUS_FORWARDDOC;
|
||||||
|
|
|
@ -1552,8 +1552,6 @@ HUD_SERVICE.prototype =
|
||||||
this.disableAnimation(hudId);
|
this.disableAnimation(hudId);
|
||||||
}
|
}
|
||||||
|
|
||||||
chromeDocument.getElementById("Tools:WebConsole").setAttribute("checked", "true");
|
|
||||||
|
|
||||||
// Create a processing instruction for GCLIs CSS stylesheet, but only if
|
// Create a processing instruction for GCLIs CSS stylesheet, but only if
|
||||||
// we don't have one for this document. Also record the context we're
|
// we don't have one for this document. Also record the context we're
|
||||||
// adding this for so we know when to remove it.
|
// adding this for so we know when to remove it.
|
||||||
|
@ -1603,8 +1601,6 @@ HUD_SERVICE.prototype =
|
||||||
window.focus();
|
window.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
chromeDocument.getElementById("Tools:WebConsole").setAttribute("checked", "false");
|
|
||||||
|
|
||||||
// Remove this context from the list of contexts that need the GCLI CSS
|
// Remove this context from the list of contexts that need the GCLI CSS
|
||||||
// processing instruction and then remove the processing instruction if it
|
// processing instruction and then remove the processing instruction if it
|
||||||
// isn't needed any more.
|
// isn't needed any more.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче