Bug 1470244 - Rename all panel documents to index.{xul|html}. r=jdescottes

MozReview-Commit-ID: 5C3ehYKBt3m

--HG--
rename : devtools/client/accessibility/accessibility.html => devtools/client/accessibility/index.html
rename : devtools/client/canvasdebugger/canvasdebugger.xul => devtools/client/canvasdebugger/index.xul
rename : devtools/client/debugger/debugger.xul => devtools/client/debugger/index.xul
rename : devtools/client/dom/dom.html => devtools/client/dom/index.html
rename : devtools/client/inspector/inspector.xhtml => devtools/client/inspector/index.xhtml
rename : devtools/client/memory/memory.xhtml => devtools/client/memory/index.xhtml
rename : devtools/client/performance-new/perf.xhtml => devtools/client/performance-new/index.xhtml
rename : devtools/client/performance/performance.xul => devtools/client/performance/index.xul
rename : devtools/client/scratchpad/scratchpad.xul => devtools/client/scratchpad/index.xul
rename : devtools/client/storage/storage.xul => devtools/client/storage/index.xul
rename : devtools/client/styleeditor/styleeditor.xul => devtools/client/styleeditor/index.xul
rename : devtools/client/webaudioeditor/webaudioeditor.xul => devtools/client/webaudioeditor/index.xul
rename : devtools/client/webconsole/webconsole.html => devtools/client/webconsole/index.html
extra : rebase_source : 30d4a2b96c7caf9c2543866e11519559d73f75dc
This commit is contained in:
Alexandre Poirot 2018-06-21 11:08:25 -07:00
parent 8bd7e4fabf
commit f7e331b36e
26 changed files with 47 additions and 47 deletions

View File

@ -24,19 +24,19 @@ browser/chrome/browser/skin/classic/browser/connection-secure.svg
browser/chrome/browser/skin/classic/browser/controlcenter/warning-gray.svg
# devtools reduction is bug 1311178
browser/chrome/devtools/content/dom/content/dom-view.css
browser/chrome/devtools/content/dom/dom.html
browser/chrome/devtools/content/dom/index.html
browser/chrome/devtools/content/dom/main.js
browser/chrome/devtools/content/framework/toolbox-options.js
browser/chrome/devtools/content/inspector/fonts/fonts.js
browser/chrome/devtools/content/inspector/inspector.xhtml
browser/chrome/devtools/content/inspector/index.xhtml
browser/chrome/devtools/content/projecteditor/lib/helpers/readdir.js
browser/chrome/devtools/content/shared/theme-switching.js
browser/chrome/devtools/modules/devtools/client/dom/content/dom-view.css
browser/chrome/devtools/modules/devtools/client/dom/dom.html
browser/chrome/devtools/modules/devtools/client/dom/index.html
browser/chrome/devtools/modules/devtools/client/dom/main.js
browser/chrome/devtools/modules/devtools/client/framework/toolbox-options.js
browser/chrome/devtools/modules/devtools/client/inspector/fonts/fonts.js
browser/chrome/devtools/modules/devtools/client/inspector/inspector.xhtml
browser/chrome/devtools/modules/devtools/client/inspector/index.xhtml
browser/chrome/devtools/modules/devtools/client/jsonview/css/controls.png
browser/chrome/devtools/modules/devtools/client/jsonview/css/controls@2x.png
browser/chrome/devtools/modules/devtools/client/projecteditor/lib/helpers/readdir.js

View File

@ -70,7 +70,7 @@ Tools.inspector = {
accesskey: l10n("inspector.accesskey"),
ordinal: 1,
icon: "chrome://devtools/skin/images/tool-inspector.svg",
url: "chrome://devtools/content/inspector/inspector.xhtml",
url: "chrome://devtools/content/inspector/index.xhtml",
label: l10n("inspector.label"),
panelLabel: l10n("inspector.panelLabel"),
get tooltip() {
@ -105,13 +105,13 @@ Tools.webConsole = {
id: "webconsole",
accesskey: l10n("webConsoleCmd.accesskey"),
ordinal: 2,
url: "chrome://devtools/content/webconsole/webconsole.html",
url: "chrome://devtools/content/webconsole/index.html",
get browserConsoleUsesHTML() {
return Services.prefs.getBoolPref("devtools.browserconsole.html");
},
get browserConsoleURL() {
return this.browserConsoleUsesHTML ?
"chrome://devtools/content/webconsole/webconsole.html" :
"chrome://devtools/content/webconsole/index.html" :
"chrome://devtools/content/webconsole/browserconsole.xul";
},
icon: "chrome://devtools/skin/images/tool-webconsole.svg",
@ -149,7 +149,7 @@ Tools.jsdebugger = {
accesskey: l10n("debuggerMenu.accesskey"),
ordinal: 3,
icon: "chrome://devtools/skin/images/tool-debugger.svg",
url: "chrome://devtools/content/debugger/debugger.xul",
url: "chrome://devtools/content/debugger/index.xul",
label: l10n("ToolboxDebugger.label"),
panelLabel: l10n("ToolboxDebugger.panelLabel"),
get tooltip() {
@ -176,7 +176,7 @@ function switchDebugger() {
return new NewDebuggerPanel(iframeWindow, toolbox);
};
} else {
Tools.jsdebugger.url = "chrome://devtools/content/debugger/debugger.xul";
Tools.jsdebugger.url = "chrome://devtools/content/debugger/index.xul";
Tools.jsdebugger.build = function(iframeWindow, toolbox) {
return new DebuggerPanel(iframeWindow, toolbox);
};
@ -195,7 +195,7 @@ Tools.styleEditor = {
visibilityswitch: "devtools.styleeditor.enabled",
accesskey: l10n("open.accesskey"),
icon: "chrome://devtools/skin/images/tool-styleeditor.svg",
url: "chrome://devtools/content/styleeditor/styleeditor.xul",
url: "chrome://devtools/content/styleeditor/index.xul",
label: l10n("ToolboxStyleEditor.label"),
panelLabel: l10n("ToolboxStyleEditor.panelLabel"),
get tooltip() {
@ -238,7 +238,7 @@ Tools.canvasDebugger = {
ordinal: 6,
visibilityswitch: "devtools.canvasdebugger.enabled",
icon: "chrome://devtools/skin/images/tool-canvas.svg",
url: "chrome://devtools/content/canvasdebugger/canvasdebugger.xul",
url: "chrome://devtools/content/canvasdebugger/index.xul",
label: l10n("ToolboxCanvasDebugger.label"),
panelLabel: l10n("ToolboxCanvasDebugger.panelLabel"),
tooltip: l10n("ToolboxCanvasDebugger.tooltip"),
@ -271,7 +271,7 @@ Tools.performance = {
function switchPerformancePanel() {
if (Services.prefs.getBoolPref("devtools.performance.new-panel-enabled", false)) {
Tools.performance.url = "chrome://devtools/content/performance-new/perf.xhtml";
Tools.performance.url = "chrome://devtools/content/performance-new/index.xhtml";
Tools.performance.build = function(frame, target) {
return new NewPerformancePanel(frame, target);
};
@ -282,7 +282,7 @@ function switchPerformancePanel() {
return true;
};
} else {
Tools.performance.url = "chrome://devtools/content/performance/performance.xul";
Tools.performance.url = "chrome://devtools/content/performance/index.xul";
Tools.performance.build = function(frame, target) {
return new PerformancePanel(frame, target);
};
@ -302,7 +302,7 @@ Tools.memory = {
id: "memory",
ordinal: 8,
icon: "chrome://devtools/skin/images/tool-memory.svg",
url: "chrome://devtools/content/memory/memory.xhtml",
url: "chrome://devtools/content/memory/index.xhtml",
visibilityswitch: "devtools.memory.enabled",
label: l10n("memory.label"),
panelLabel: l10n("memory.panelLabel"),
@ -348,7 +348,7 @@ Tools.storage = {
accesskey: l10n("storage.accesskey"),
visibilityswitch: "devtools.storage.enabled",
icon: "chrome://devtools/skin/images/tool-storage.svg",
url: "chrome://devtools/content/storage/storage.xul",
url: "chrome://devtools/content/storage/index.xul",
label: l10n("storage.label"),
menuLabel: l10n("storage.menuLabel"),
panelLabel: l10n("storage.panelLabel"),
@ -373,7 +373,7 @@ Tools.webAudioEditor = {
ordinal: 11,
visibilityswitch: "devtools.webaudioeditor.enabled",
icon: "chrome://devtools/skin/images/tool-webaudio.svg",
url: "chrome://devtools/content/webaudioeditor/webaudioeditor.xul",
url: "chrome://devtools/content/webaudioeditor/index.xul",
label: l10n("ToolboxWebAudioEditor1.label"),
panelLabel: l10n("ToolboxWebAudioEditor1.panelLabel"),
tooltip: l10n("ToolboxWebAudioEditor1.tooltip"),
@ -392,7 +392,7 @@ Tools.scratchpad = {
ordinal: 12,
visibilityswitch: "devtools.scratchpad.enabled",
icon: "chrome://devtools/skin/images/tool-scratchpad.svg",
url: "chrome://devtools/content/scratchpad/scratchpad.xul",
url: "chrome://devtools/content/scratchpad/index.xul",
label: l10n("scratchpad.label"),
panelLabel: l10n("scratchpad.panelLabel"),
tooltip: l10n("scratchpad.tooltip"),
@ -414,7 +414,7 @@ Tools.dom = {
ordinal: 13,
visibilityswitch: "devtools.dom.enabled",
icon: "chrome://devtools/skin/images/tool-dom.svg",
url: "chrome://devtools/content/dom/dom.html",
url: "chrome://devtools/content/dom/index.html",
label: l10n("dom.label"),
panelLabel: l10n("dom.panelLabel"),
get tooltip() {
@ -440,7 +440,7 @@ Tools.accessibility = {
modifiers: osString == "Darwin" ? "accel,alt" : "accel,shift",
visibilityswitch: "devtools.accessibility.enabled",
icon: "chrome://devtools/skin/images/tool-accessibility.svg",
url: "chrome://devtools/content/accessibility/accessibility.html",
url: "chrome://devtools/content/accessibility/index.html",
label: l10n("accessibility.label"),
panelLabel: l10n("accessibility.panelLabel"),
get tooltip() {

View File

@ -86,7 +86,7 @@ skip-if = os == "mac" # Full keyboard navigation on OSX only works if Full Keybo
[browser_markup_accessibility_semantics.js]
[browser_markup_anonymous_01.js]
[browser_markup_anonymous_02.js]
skip-if = e10s # scratchpad.xul is not loading in e10s window
skip-if = e10s # index.xul is not loading in e10s window
[browser_markup_anonymous_03.js]
[browser_markup_anonymous_04.js]
[browser_markup_copy_image_data.js]

View File

@ -7,7 +7,7 @@
requestLongerTimeout(2);
// Test XBL anonymous content in the markupview
const TEST_URL = "chrome://devtools/content/scratchpad/scratchpad.xul";
const TEST_URL = "chrome://devtools/content/scratchpad/index.xul";
add_task(async function() {
const {inspector} = await openInspectorForURL(TEST_URL);

View File

@ -8,14 +8,14 @@ devtools.jar:
content/shared/vendor/dagre-d3.js (shared/vendor/dagre-d3.js)
content/shared/widgets/widgets.css (shared/widgets/widgets.css)
content/shared/widgets/VariablesView.xul (shared/widgets/VariablesView.xul)
content/webconsole/webconsole.html (webconsole/webconsole.html)
content/webconsole/index.html (webconsole/index.html)
content/webconsole/browserconsole.xul (webconsole/browserconsole.xul)
* content/scratchpad/scratchpad.xul (scratchpad/scratchpad.xul)
* content/scratchpad/index.xul (scratchpad/index.xul)
content/scratchpad/scratchpad.js (scratchpad/scratchpad.js)
content/shared/splitview.css (shared/splitview.css)
content/shared/theme-switching.js (shared/theme-switching.js)
* content/styleeditor/styleeditor.xul (styleeditor/styleeditor.xul)
* content/storage/storage.xul (storage/storage.xul)
* content/styleeditor/index.xul (styleeditor/index.xul)
* content/storage/index.xul (storage/index.xul)
content/inspector/inspector.js (inspector/inspector.js)
content/inspector/markup/markup.xhtml (inspector/markup/markup.xhtml)
content/inspector/animation-old/animation-controller.js (inspector/animation-old/animation-controller.js)
@ -30,7 +30,7 @@ devtools.jar:
content/sourceeditor/codemirror/cmiframe.html (sourceeditor/codemirror/cmiframe.html)
content/sourceeditor/codemirror/old-debugger.css (sourceeditor/codemirror/old-debugger.css)
content/debugger/new/index.html (debugger/new/index.html)
* content/debugger/debugger.xul (debugger/debugger.xul)
* content/debugger/index.xul (debugger/index.xul)
content/debugger/debugger.css (debugger/debugger.css)
content/debugger/debugger-controller.js (debugger/debugger-controller.js)
content/debugger/debugger-view.js (debugger/debugger-view.js)
@ -46,11 +46,11 @@ devtools.jar:
content/debugger/utils.js (debugger/utils.js)
content/shadereditor/shadereditor.xul (shadereditor/shadereditor.xul)
content/shadereditor/shadereditor.js (shadereditor/shadereditor.js)
content/canvasdebugger/canvasdebugger.xul (canvasdebugger/canvasdebugger.xul)
content/canvasdebugger/index.xul (canvasdebugger/index.xul)
content/canvasdebugger/canvasdebugger.js (canvasdebugger/canvasdebugger.js)
content/canvasdebugger/snapshotslist.js (canvasdebugger/snapshotslist.js)
content/canvasdebugger/callslist.js (canvasdebugger/callslist.js)
content/webaudioeditor/webaudioeditor.xul (webaudioeditor/webaudioeditor.xul)
content/webaudioeditor/index.xul (webaudioeditor/index.xul)
content/webaudioeditor/includes.js (webaudioeditor/includes.js)
content/webaudioeditor/models.js (webaudioeditor/models.js)
content/webaudioeditor/controller.js (webaudioeditor/controller.js)
@ -59,10 +59,10 @@ devtools.jar:
content/webaudioeditor/views/inspector.js (webaudioeditor/views/inspector.js)
content/webaudioeditor/views/properties.js (webaudioeditor/views/properties.js)
content/webaudioeditor/views/automation.js (webaudioeditor/views/automation.js)
content/performance/performance.xul (performance/performance.xul)
content/performance/index.xul (performance/index.xul)
content/performance/performance-controller.js (performance/performance-controller.js)
content/performance/performance-view.js (performance/performance-view.js)
content/performance-new/perf.xhtml (performance-new/perf.xhtml)
content/performance-new/index.xhtml (performance-new/index.xhtml)
content/performance-new/frame-script.js (performance-new/frame-script.js)
content/performance-new/initializer.js (performance-new/initializer.js)
content/performance/views/overview.js (performance/views/overview.js)
@ -75,7 +75,7 @@ devtools.jar:
content/performance/views/details-memory-call-tree.js (performance/views/details-memory-call-tree.js)
content/performance/views/details-memory-flamegraph.js (performance/views/details-memory-flamegraph.js)
content/performance/views/recordings.js (performance/views/recordings.js)
content/memory/memory.xhtml (memory/memory.xhtml)
content/memory/index.xhtml (memory/index.xhtml)
content/framework/toolbox-window.xul (framework/toolbox-window.xul)
content/framework/toolbox-options.xhtml (framework/toolbox-options.xhtml)
* content/framework/toolbox.xul (framework/toolbox.xul)
@ -83,7 +83,7 @@ devtools.jar:
content/framework/options-panel.css (framework/options-panel.css)
content/framework/toolbox-process-window.xul (framework/toolbox-process-window.xul)
content/framework/toolbox-process-window.js (framework/toolbox-process-window.js)
content/inspector/inspector.xhtml (inspector/inspector.xhtml)
content/inspector/index.xhtml (inspector/index.xhtml)
content/framework/connect/connect.xhtml (framework/connect/connect.xhtml)
content/framework/connect/connect.css (framework/connect/connect.css)
content/framework/connect/connect.js (framework/connect/connect.js)
@ -96,9 +96,9 @@ devtools.jar:
content/aboutdebugging/initializer.js (aboutdebugging/initializer.js)
content/responsive.html/index.xhtml (responsive.html/index.xhtml)
content/responsive.html/index.js (responsive.html/index.js)
content/dom/dom.html (dom/dom.html)
content/dom/index.html (dom/index.html)
content/dom/main.js (dom/main.js)
content/accessibility/accessibility.html (accessibility/accessibility.html)
content/accessibility/index.html (accessibility/index.html)
content/accessibility/main.js (accessibility/main.js)
% skin devtools classic/1.0 %skin/
skin/devtools-browser.css (themes/devtools-browser.css)

View File

@ -7,7 +7,7 @@
this.EXPORTED_SYMBOLS = ["ScratchpadManager"];
const SCRATCHPAD_WINDOW_URL = "chrome://devtools/content/scratchpad/scratchpad.xul";
const SCRATCHPAD_WINDOW_URL = "chrome://devtools/content/scratchpad/index.xul";
const SCRATCHPAD_WINDOW_FEATURES = "chrome,titlebar,toolbar,centerscreen,resizable,dialog=no";
const {require} = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});

View File

@ -12,7 +12,7 @@
* https://bugzilla.mozilla.org/show_bug.cgi?id=653934
*/
// Via scratchpad.xul
// Via index.xul
/* import-globals-from ../../../toolkit/content/globalOverlay.js */
// Via editMenuCommands.inc.xul
/* import-globals-from ../../../toolkit/content/editMenuOverlay.js */

View File

@ -2,7 +2,7 @@
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
// Test that middle click on style sheet doesn't open styleeditor.xul in a new
// Test that middle click on style sheet doesn't open index.xul in a new
// tab (bug 851132).
const TESTCASE_URI = TEST_BASE_HTTP + "four.html";

View File

@ -440,14 +440,14 @@
*/
#waterfall-tree {
/* DE-XUL: convert this to display: flex once performance.xul is converted to HTML */
/* DE-XUL: convert this to display: flex once index.xul is converted to HTML */
display: -moz-box;
-moz-box-orient: vertical;
-moz-box-flex: 1;
}
.waterfall-markers {
/* DE-XUL: convert this to display: flex once performance.xul is converted to HTML */
/* DE-XUL: convert this to display: flex once index.xul is converted to HTML */
display: -moz-box;
-moz-box-orient: vertical;
-moz-box-flex: 1;
@ -493,7 +493,7 @@
*/
.waterfall-markers .tree {
/* DE-XUL: convert this to display: flex once performance.xul is converted to HTML */
/* DE-XUL: convert this to display: flex once index.xul is converted to HTML */
display: -moz-box;
-moz-box-orient: vertical;
-moz-box-flex: 1;

View File

@ -91,7 +91,7 @@ the browser tab (experimental). The same code base is used to run in both enviro
Files used to run the WebConsole inside of the DevTools toolbox.
* `main.js` called by devtools toolbox to launch the WebConsole panel.
* `webconsole.html` panel UI and launch scripts.
* `index.html` panel UI and launch scripts.
### Run in the browser tab (experimental)
@ -99,7 +99,7 @@ Files used to run the WebConsole in the browser tab
* `bin/` files to launch test server.
* `configs/` dev configs.
* `local-dev/index.js` the entry point, equivalent to `webconsole.html`.
* `local-dev/index.js` the entry point, equivalent to `index.html`.
* `webpack.config.js` the webpack config file, including plenty of module aliases map to shims and polyfills.
* `package.json` declare every required packages and available commands.
@ -148,4 +148,4 @@ The redux state is a plain javascript object with the following properties:
### Tests
[See test/README.md](test/README.md)
[See test/README.md](test/README.md)

View File

@ -12,5 +12,5 @@
width="900" height="350"
persist="screenX screenY width height sizemode">
<popupset></popupset>
<iframe src="webconsole.html" flex="1"></iframe>
</window>
<iframe src="index.html" flex="1"></iframe>
</window>

View File

@ -192,7 +192,7 @@ HUD_SERVICE.prototype =
win.document.title = l10n.getStr("browserConsole.title");
// With a XUL wrapper doc, we host webconsole.html in an iframe.
// With a XUL wrapper doc, we host index.html in an iframe.
// Wait for that to be ready before resolving:
if (!Tools.webConsole.browserConsoleUsesHTML) {
const iframe = win.document.querySelector("iframe");

View File

@ -4,7 +4,7 @@
<!-- LOCALIZATION NOTE : FILE This file contains the CSS Coverage Report
- strings. See the 'csscoverage' command for more information, and
- devtools/client/styleeditor/styleeditor.xul for context -->
- devtools/client/styleeditor/index.xul for context -->
<!-- LOCALIZATION NOTE : FILE The correct localization of this file might be to
- keep it in English, or another language commonly spoken among web developers.