Closed
Bug 1065647
Opened 11 years ago
Closed 10 years ago
Stop including browser.css inside each devtool panel
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1226570
People
(Reporter: ntim, Unassigned)
Details
Attachments
(1 file)
|
11.47 KB,
patch
|
Details | Diff | Splinter Review |
In every developer tool panel, we include the chrome://browser/skin/ stylesheet. To my knowledge, that stylesheet is nothing related to the devtools themselves, and isn't a reset stylesheet or a XUL stylesheet. That stylesheet is used to style the browser chrome.
| Reporter | ||
Comment 1•11 years ago
|
||
Just a test patch. I'll ask for review if there are no regressions.
Try push : https://tbpl.mozilla.org/?tree=Try&rev=ae72aca1ba54
| Reporter | ||
Comment 2•11 years ago
|
||
Looks like there are some small margin and font issues, but other than that, everything is fine.
For the font issue, we can include chrome://global/skin/ for affected panels.
For margin issue, I guess we could add extra rules in our devtools CSS.
It's still better than having all the browser CSS loaded inside the devtools.
What do you think ?
Flags: needinfo?(bgrinstead)
Comment 3•11 years ago
|
||
Looks like the margin issues may have to do with toolbarbuttons / toolbarbutton-icons or something? Looks like it should be resolvable if we were to move forward with it.
I'm not actually sure about loading chrome://global/skin vs chrome://browser/skin/. I do wonder for styling of things like buttons, tabs, panels and other controls (but to be fair everything looks generally OK with the patch applied). I'll defer to Paul about this since he will probably have a better idea. Paul, does it make sense to you to do this?
Flags: needinfo?(bgrinstead) → needinfo?(paul)
Comment 4•11 years ago
|
||
I totally support the idea of killing references to browser.css.
I can't remember why we originally wanted to include browser.css. A vague memory tells me it has to do with the resizers.
What rules in browser.css change the margins?
Flags: needinfo?(paul)
Comment 5•11 years ago
|
||
(In reply to Paul Rouget [:paul] (slow to respond. Ping me on IRC) from comment #4)
> I can't remember why we originally wanted to include browser.css. A vague
> memory tells me it has to do with the resizers.
>
We had to include it in the style inspector to use the native search box. Probably a similar story in other tools but now we are no longer using native widgets so we don't really need browser.css.
We should check that the native widgets we do use look and act correctly across operating systems (I say act because we may be missing some bindings). From memory that would be the resizer, toolbars, radio-buttons, checkboxes, scrollbars, tabboxes, tabpanels etc.
Comment 6•11 years ago
|
||
If the concern here is about memory, then this is almost similar to what Adblock Plus is facing. It adds the same style sheet in each window/iframe and that piles up in memory. (bug 988266)
I'm doing this work in bug 1226570. Will check each OS to make sure there's no impact.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•