Bug 1762550 - [devtools] Cleanup webconsole stylesheet imports. r=bomsy.

Remove httpi.css that was only used by the console, and load the individual
CSS files instead.
Remove widgets.css, which is a relic of the old console.
Remove textActions.ftl import, which doesn't seem to have any effect.

Differential Revision: https://phabricator.services.mozilla.com/D142658
This commit is contained in:
Nicolas Chevobbe 2022-04-04 06:04:17 +00:00
Родитель b9f014222a
Коммит 703b2daf31
3 изменённых файлов: 20 добавлений и 31 удалений

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

@ -419,7 +419,6 @@ devtools.jar:
content/webconsole/components/App.css (webconsole/components/App.css) content/webconsole/components/App.css (webconsole/components/App.css)
# Netmonitor # Netmonitor
content/netmonitor/src/assets/styles/httpi.css (netmonitor/src/assets/styles/httpi.css)
content/netmonitor/src/assets/styles/netmonitor.css (netmonitor/src/assets/styles/netmonitor.css) content/netmonitor/src/assets/styles/netmonitor.css (netmonitor/src/assets/styles/netmonitor.css)
content/netmonitor/src/assets/styles/NetworkActionBar.css (netmonitor/src/assets/styles/NetworkActionBar.css) content/netmonitor/src/assets/styles/NetworkActionBar.css (netmonitor/src/assets/styles/NetworkActionBar.css)
content/netmonitor/src/assets/styles/RequestBlockingPanel.css (netmonitor/src/assets/styles/RequestBlockingPanel.css) content/netmonitor/src/assets/styles/RequestBlockingPanel.css (netmonitor/src/assets/styles/RequestBlockingPanel.css)

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

@ -1,17 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@import "chrome://devtools/skin/widgets.css";
@import "chrome://devtools/content/shared/components/splitter/SplitBox.css";
@import "chrome://devtools/content/shared/components/tree/TreeView.css";
@import "chrome://devtools/content/shared/components/tabs/Tabs.css";
@import "chrome://devtools/skin/components-frame.css";
@import "chrome://devtools/content/shared/sourceeditor/codemirror/lib/codemirror.css";
@import "chrome://devtools/content/shared/sourceeditor/codemirror/addon/dialog/dialog.css";
@import "chrome://devtools/content/shared/sourceeditor/codemirror/mozilla.css";
@import "chrome://devtools/content/shared/components/MdnLink.css";
/* Network panel components & styles */
@import "chrome://devtools/content/netmonitor/src/assets/styles/variables.css";
@import "chrome://devtools/content/netmonitor/src/assets/styles/NetworkDetailsBar.css";

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

@ -7,33 +7,40 @@
windowtype="devtools:webconsole" windowtype="devtools:webconsole"
width="900" height="350" width="900" height="350"
persist="screenX screenY width height sizemode"> persist="screenX screenY width height sizemode">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="localization" href="toolkit/global/textActions.ftl"/>
<link rel="stylesheet" href="chrome://global/skin/global.css"/> <link rel="stylesheet" href="chrome://global/skin/global.css"/>
<link rel="stylesheet" href="chrome://devtools/skin/widgets.css"/>
<link rel="stylesheet" href="chrome://devtools/skin/webconsole.css"/> <link rel="stylesheet" href="chrome://devtools/skin/webconsole.css"/>
<link rel="stylesheet" href="chrome://devtools/skin/components-frame.css"/> <link rel="stylesheet" href="chrome://devtools/skin/components-frame.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/SmartTrace.css"/> <link rel="stylesheet" href="chrome://devtools/content/shared/components/SmartTrace.css"/>
<!-- Needed for the ObjectInspector -->
<link rel="stylesheet" type="text/css" href="chrome://devtools/content/shared/components/reps/reps.css"/>
<!-- Needed for the ObjectInspector -->
<link rel="stylesheet" type="text/css" href="chrome://devtools/content/shared/components/Tree.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/object-inspector/components/ObjectInspector.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/tabs/Tabs.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/NotificationBox.css"/> <link rel="stylesheet" href="chrome://devtools/content/shared/components/NotificationBox.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/splitter/GridElementResizer.css"/> <link rel="stylesheet" href="chrome://devtools/content/shared/components/splitter/GridElementResizer.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/AppErrorBoundary.css"> <link rel="stylesheet" href="chrome://devtools/content/shared/components/AppErrorBoundary.css">
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/httpi.css"/> <!-- Console components -->
<link rel="stylesheet" href="chrome://devtools/content/webconsole/components/App.css"/>
<link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/EagerEvaluation.css"/> <link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/EagerEvaluation.css"/>
<link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/EvaluationContextSelector.css"/> <link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/EvaluationContextSelector.css"/>
<link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/ReverseSearchInput.css"/> <link rel="stylesheet" href="chrome://devtools/content/webconsole/components/Input/ReverseSearchInput.css"/>
<link rel="stylesheet" href="chrome://devtools/content/webconsole/components/App.css"/> <!-- CodeMirror CSS -->
<link rel="stylesheet" href="chrome://devtools/content/shared/components/Accordion.css"/> <link rel="stylesheet" href="chrome://devtools/content/shared/sourceeditor/codemirror/lib/codemirror.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/sourceeditor/codemirror/addon/dialog/dialog.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/sourceeditor/codemirror/mozilla.css"/>
<!-- ObjectInspector/Reps styles -->
<link rel="stylesheet" href="chrome://devtools/content/shared/components/reps/reps.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/Tree.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/object-inspector/components/ObjectInspector.css"/>
<!-- Embedded Network Request detail styles -->
<link rel="stylesheet" href="chrome://devtools/content/shared/components/MdnLink.css"/>
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/variables.css"/>
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/NetworkDetailsBar.css"/>
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/StatusCode.css"/> <link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/StatusCode.css"/>
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/RequestList.css"/> <link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/RequestList.css"/>
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/UrlPreview.css" /> <link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/UrlPreview.css" />
<link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/HeadersPanel.css" /> <link rel="stylesheet" href="chrome://devtools/content/netmonitor/src/assets/styles/HeadersPanel.css" />
<link rel="stylesheet" href="chrome://devtools/content/shared/components/Accordion.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/tabs/Tabs.css"/>
<link rel="stylesheet" href="chrome://devtools/content/shared/components/tree/TreeView.css"/>
<script src="chrome://devtools/content/shared/theme-switching.js"></script> <script src="chrome://devtools/content/shared/theme-switching.js"></script>
</head> </head>