Earlier patches in this series add SVG icons for unstyled checkboxes and radio buttons.
This causes us to queue extra loads to documents that have those elements, even when
we're natively styling those input elements by default.
browser_toolbox_options works by loading up the DevTools options iframe, and then
clicking on things to make sure that the right prefs are set. There are checkboxes
in the iframe document, which means the extra loads I referred to happen. When
our presentation subsystems notice that there are extra loads occurring, we do
"paint suppression" to avoid flashes of unstyled content. During paint suppression,
nothing is displayed (painting is suppressed), and so nothing is clickable.
browser_toolbox_options was not waiting for the "load" event before clicking on
items. It got lucky up until the SVGs were added, but this was a race waiting
to happen. I've added a wait for the "load" event, and this test now passes.
MozReview-Commit-ID: EjzvhxhKlDs
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.
To generate this patch, I ran:
./mach eslint devtools --no-ignore --fix
After this, I reverted any changes to third party files that we really do want
to ignore.
MozReview-Commit-ID: 6Q8BApkAW20
Change the XUL label + vbox to fieldset + legend as it's the most relevant
element for describing form sections.
Moreover, we don't have to look for a previous label when we hide a fieldset.
Edit scripts and tests files to adapt them to the HTML file structure.
MozReview-Commit-ID: LBfXfLRX6aj
Move major DevTools files to new directories using the following steps:
hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared
No other changes are made.