mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Otherwise, what happens in documents like the webconsole is the theme file gets loaded before global.css, which isn't the intended behavior and makes overriding the styles from global.css more difficult. As an example, some buttons in the webconsole became stretched after Bug 1581914 changed some default styling in global.css. This patch restores the correct behavior by loading the theme afer global.css. global.css is currently loaded in devtools in docs that explicitly use XUL elements (such as storage inspector and style editor), and in docs that need to be supported as top level windows (webconsole, toolbox, and browser toolbox). Unless if we change how things like panels and context menus are styled, the latter group will continue to need to load global.css even as XUL/XBL usage goes away (since they are styled with global.css). Differential Revision: https://phabricator.services.mozilla.com/D46530
26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
<!-- 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/. -->
|
|
<!DOCTYPE html>
|
|
<html id="devtools-toolbox-window"
|
|
windowtype="devtools:toolbox"
|
|
width="900" height="350"
|
|
persist="screenX screenY width height sizemode">
|
|
<head>
|
|
<link rel="stylesheet" href="chrome://global/skin/global.css"/>
|
|
<link rel="stylesheet" href="resource://devtools/client/themes/common.css"/>
|
|
<link rel="stylesheet" href="chrome://devtools/content/framework/toolbox-process-window.css"/>
|
|
<script src="chrome://global/content/globalOverlay.js"></script>
|
|
<script src="toolbox-process-window.js"></script>
|
|
<script src="chrome://global/content/viewSourceUtils.js"></script>
|
|
<script src="chrome://browser/content/utilityOverlay.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="status-message-container" hidden="true">
|
|
<div id="status-message-title"></div>
|
|
<pre id="status-message"></pre>
|
|
</div>
|
|
<iframe id="toolbox-iframe"></iframe>
|
|
</body>
|
|
</html>
|