Commit Graph
506 Commits
Author SHA1 Message Date
Nicolas Chevobbe 468323a509 Bug 1888645 - [devtools] Fix SmartTrace crash with wasm frames. r=devtools-reviewers,bomsy.
In some cases, we were getting null sourceId, which was causing an exception
to be thrown in `getFormattedSourceId` since it expects a string.
We add a simple guard in this function so we don't throw anymore.

But we shouldn't get null sourceId in the first place. It looks like for
some Wasm sources, the SavedFrame sourceId can be 0, which wasn't playing
well with some loose check we were doing in the sources manager.

Finally, the "Copy metadata" button we display when a console message crash
wasn't working. The message now includes the targetFront, which can be serialized
in JSON, so we simply ignore it.

Differential Revision: https://phabricator.services.mozilla.com/D206105
2024-05-13 10:17:15 +00:00
Nicolas Chevobbe 1ba466a342 Bug 1892459 - [devtools] Add textInput in event listener breakpoints panel. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D208857
2024-05-02 04:58:51 +00:00
Nicolas Chevobbe 9b1522fec0 Bug 1868732 - [devtools] Add tests for ::target-text pseudo elements. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D206507
2024-04-24 12:28:42 +00:00
Nicolas Chevobbe e98d57ec87 Bug 1890759 - [devtools] Fix event-breakpoint.js errors in worker toolbox. r=devtools-reviewers,jdescottes.
- Guard Services.prefs as this isn't available in workers
- Pass worker's global to getAvailableEventBreakpoints when in worker toolbox
- Check that global exists before checking property on it

Differential Revision: https://phabricator.services.mozilla.com/D207257
2024-04-11 14:34:53 +00:00
Nicolas Chevobbe 3f151d357e Bug 1882964 - [devtools] Turn getRuleBodyTextOffsets into getRuleBodyText for easier unicode chars handling. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
`InspectorUtils.getRuleBodyTextOffset` was returning bytes position, and we
were using them directly in Javascript `substring`, which causes problem
with non-ascii chars.
Instead of returning offsets to compute the rule string, we directly return
the string from InspectorUtils which is easier to work with.

Differential Revision: https://phabricator.services.mozilla.com/D204523
2024-04-08 08:37:14 +00:00
Nicolas Chevobbe e78c7f3d05 Bug 1888079 - [devtools] Don't call getStyleSheetRuleCountAndAtRules in setStyleSheetText when it's not needed. r=devtools-reviewers,ochameau.
When we modify a rule from the inspector, the number of rules and the at-rules
data can't be impacted, so avoid computing this costly information.

Differential Revision: https://phabricator.services.mozilla.com/D205798
2024-04-03 07:53:52 +00:00
Nicolas Chevobbe b9b393ff8a Bug 1886392 - [devtools] Show @property rules in StyleEditor at-rules sidebar. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D205195
2024-03-21 06:14:51 +00:00
Nicolas Chevobbe 94fc97f9cc Bug 1882741 - [devtools] Do not show inactive CSS warning for align-content on (inline-)block elements. r=devtools-reviewers,fluent-reviewers,bolsson,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D203408
2024-03-20 16:41:18 +00:00
Nicolas Chevobbe e4137ed7a1 Bug 1884230 - [devtools] Revert Bug 1882964 to fix regression. r=devtools-reviewers,bomsy.
Since we're at the end of the cycle, let's fix the regression
by reverting getRuleText to use the JS lexer again.
A test case is added to prevent future regression when we'll
try to move this to an InspectorUtils method again.

Differential Revision: https://phabricator.services.mozilla.com/D204621
2024-03-14 15:26:31 +00:00
Nicolas Chevobbe 65e6901eaa Bug 1884072 - [devtools] Make getStyleSheetRuleCountAndAtRules faster. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
We were returning the whole list of rules for a given stylesheet, and then
picking the at-rules we wanted in JS.
This patch make it so that the InspectorUtils method will only return the
at-rules we want directly, so we're building a smaller array of rule in the end.
Since `getStyleSheetRuleCountAndAtRules` also need to return the total number
of rules, this adds a simple `InspectorUtils.getStyleSheetRulesCount` method that
does that.

Differential Revision: https://phabricator.services.mozilla.com/D203878
2024-03-14 10:57:05 +00:00
Cristian Tuns 8505013d68 Backed out changeset ae42893523cc (bug 1884072) for causing dt failures in browser_resources_stylesheets.js CLOSED TREE 2024-03-13 08:55:09 -04:00
Nicolas Chevobbe 0a015b760b Bug 1884072 - [devtools] Make getStyleSheetRuleCountAndAtRules faster. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
We were returning the whole list of rules for a given stylesheet, and then
picking the at-rules we wanted in JS.
This patch make it so that the InspectorUtils method will only return the
at-rules we want directly, so we're building a smaller array of rule in the end.
Since `getStyleSheetRuleCountAndAtRules` also need to return the total number
of rules, this adds a simple `InspectorUtils.getStyleSheetRulesCount` method that
does that.

Differential Revision: https://phabricator.services.mozilla.com/D203878
2024-03-13 11:02:37 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 11dca72b03 Bug 1882964 - [devtools] Use InspectorUtils.getRuleBodyTextOffsets in getRuleText. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D203234
2024-03-05 08:36:23 +00:00
Alexandre Poirot a107ce3125 Bug 1880809 - [devtools] Use binary search when adding sources in the source tree. r=devtools-reviewers,nchevobbe
This helps address a performance issue when a bulk or sources are registered.
We could have use findIndexLast, given that the sources are often coming sorted,
but this is not always the case. For example when a new arbitrary source is created by the page.

Also, while the sources look sorted, there is no actual sort being done from the Source Map Worker,
nor by the SOURCE server resource watcher. We would need to add sorting there to be reliable.

In this patch, I'm also avoiding unecessary array in the actor codebase, and, simplifying the load source map actions.

Differential Revision: https://phabricator.services.mozilla.com/D202149
2024-03-01 00:01:45 +00:00
Alexandre Poirot f616bb4bf5 Bug 1865439 - [devtools] Rename ThreadActor's _parent to targetActor. r=devtools-reviewers,nchevobbe
By protocol.js conventions, most target scopes actors have a `targetActor` attribute set to their parent,
i.e. the related target actor. Thread Actor was old enough to not follow this pattern.

Also remove the second constructor argument and `global` attribute as it was unused.

Differential Revision: https://phabricator.services.mozilla.com/D201696
2024-02-21 22:04:16 +00:00
Nicolas Chevobbe 3a738b16cb Bug 1877759 - [devtools] Control StyleSheetsManager MediaQueryList change events with an AbortController. r=devtools-reviewers,ochameau.
We set up a Map keyed by resourceId, whose value is an AbortController that
controls the MediaQueryList change event listeners that we set on a given stylesheet.

We also take care of aborting the existing abort controller before setting new
event listeners on a stylesheet, to avoid leaks.

Differential Revision: https://phabricator.services.mozilla.com/D200180
2024-02-06 06:02:32 +00:00
Nicolas Chevobbe b8f588d568 Bug 1876479 - [devtools] Add StyleSheetsManager watch mechanism. r=devtools-reviewers,ochameau.
With this it's easier to handle existing stylesheets (or to ignore them).
As the stylesheets resource now calls `watch`, we can remove StyleSheetsManager
events that were only used there.

Differential Revision: https://phabricator.services.mozilla.com/D199612
2024-01-29 17:38:04 +00:00
Nicolas Chevobbe 998db8cfa1 Bug 1876479 - [devtools] Only register event listeners once in StyleSheetsManager. r=devtools-reviewers,ochameau.
Don't register StyleSheetApplicableStateChanged/StyleSheetRemoved/window-ready events
if they were already registered before.
We take this as an opportunity to control those event listeners
with an AbortController to make it cleaner in destroy.

Differential Revision: https://phabricator.services.mozilla.com/D199611
2024-01-29 17:38:03 +00:00
Alexandre Poirot 75fcbff4a7 Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-29 13:59:51 +00:00
Iulian Moraru f78b22948f Backed out 2 changesets (bug 1875045) for causing dt failures on browser_webconsole_console_logging_workers_api.js. CLOSED TREE
Backed out changeset 533ecc686bac (bug 1875045)
Backed out changeset f4ac089ead5a (bug 1875045)
2024-01-26 16:09:31 +02:00
Alexandre Poirot 3574d88b24 Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-26 10:41:43 +00:00
Nicolas Chevobbe 6c2d013e74 Bug 1876477 - [devtools] Use proper private fields and methods in StyleSheetsManager. r=devtools-reviewers,ochameau.
This revealed that some of the pseudo methods were used outside of the StyleSheetsManager,
so we're making them public instead.

Differential Revision: https://phabricator.services.mozilla.com/D199610
2024-01-25 16:38:32 +00:00
Dan Robertson 3a2f988702 Bug 1872772 - Remove apz.scrollend-event.content.enabled preference. r=nchevobbe,botond,devtools-reviewers,webidl,smaug
The scrollend event has been content enabled by default for about a
year. Remove the preference that allows the feature to be chrome-only.

Differential Revision: https://phabricator.services.mozilla.com/D197699
2024-01-08 13:36:42 +00:00
Emilio Cobos Álvarez 10ad24f7ba Bug 1867816 - Try harder and better to get the right stylesheet text. r=nchevobbe,devtools-reviewers
Not sure what the right place to add a test for this would be, seems
hard to reproduce the exact set-up here...

Differential Revision: https://phabricator.services.mozilla.com/D195413
2023-12-05 08:55:52 +00:00
Nazım Can Altınova 300057fced Bug 1867599 - Add profiler logging method to JS tracer r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D190576
2023-12-04 13:57:23 +00:00
Alexandre Poirot ed2309ecf6 Bug 1616524 - [devtools] Revise eager evaluation implementation. r=devtools-reviewers,nchevobbe
There is no need to add all global to the side effect free Debugger.
We should only add the evaluation context globals.
In the typical case it will be the target global.
But for content process targets, it may be multiple globals, which we all need to register.

Also ensure clearing onNativeCall callback to be really sure this is disabled,
even if the Debugger is leaked for some unexpected reason.
Having this listener set may drastically slow down executions by disabling the JIT.
There was no known scenarios where it happened, but it is to be extra safe.

Also simplified a few things in evalWithDebugger as eslint started complaining about its complexity.

Differential Revision: https://phabricator.services.mozilla.com/D195021
2023-12-02 08:07:14 +00:00
Nicolas Chevobbe 564b61151b Bug 1867326 - [devtools] Add beforetoggle and toggle events in event listeners breakpoint panel. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D195007
2023-12-01 12:55:25 +00:00
Tooru Fujisawa 61764d0533 Bug 1862693 - Use 1-origin column number in debugger API. r=iain,ochameau,devtools-reviewers
This includes the following API:
  * Debugger.Object.prototype.createSource
     * startColumn field of the parameter object
  * Debugger.Script.prototype.startColumn
     * return value
  * Debugger.Script.prototype.getPossibleBreakpoints
     * minColumn and maxColumn property of the query
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetMetadata
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetLocation
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getAllColumnOffsets
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetsCoverage
     * columnNumber property of the returned array elements
  * Debugger.Source.prototype.startColumn
     * return value

This patch modifies DevTools code to convert the column number from/to 1-origin,
while keep using 0-origin on their side.

One exception is the WASM's column number, which had been using 1-origin 1.
Each consumer in DevTools handles the WASM case, and the code can be removed
once DevTools internal also switches to 1-origin column number.

The other exception is to use 1-based column number in logCustomFormatterError,
which is folded from bug 1864783 patch.

Differential Revision: https://phabricator.services.mozilla.com/D193270
2023-11-22 12:31:30 +00:00
Natalia Csoregi e0d56104a6 Backed out 14 changesets (bug 1865005, bug 1864168, bug 1864155, bug 1862814, bug 1862693) for causing bustage on nsRFPService.cpp. CLOSED TREE
Backed out changeset a4f3e7625abf (bug 1865005)
Backed out changeset ab38141e470b (bug 1862814)
Backed out changeset a679b50dc4a9 (bug 1862814)
Backed out changeset e340886ce62a (bug 1862814)
Backed out changeset 1378502e64b0 (bug 1862814)
Backed out changeset 8ee94e5e79c2 (bug 1862814)
Backed out changeset 6d4ef1cdfabb (bug 1864168)
Backed out changeset 2c30c4d757fc (bug 1864168)
Backed out changeset d4db9576559b (bug 1864168)
Backed out changeset 8ffec0d83028 (bug 1864168)
Backed out changeset fa77d852b494 (bug 1864168)
Backed out changeset f6646771a26a (bug 1864168)
Backed out changeset 7bd0ff6986df (bug 1864155)
Backed out changeset 39867b503289 (bug 1862693)
2023-11-22 14:01:55 +02:00
Tooru Fujisawa ce6ae2444e Bug 1862693 - Use 1-origin column number in debugger API. r=iain,ochameau,devtools-reviewers
This includes the following API:
  * Debugger.Object.prototype.createSource
     * startColumn field of the parameter object
  * Debugger.Script.prototype.startColumn
     * return value
  * Debugger.Script.prototype.getPossibleBreakpoints
     * minColumn and maxColumn property of the query
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetMetadata
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetLocation
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getAllColumnOffsets
     * columnNumber property of the returned array elements
  * Debugger.Script.prototype.getOffsetsCoverage
     * columnNumber property of the returned array elements
  * Debugger.Source.prototype.startColumn
     * return value

This patch modifies DevTools code to convert the column number from/to 1-origin,
while keep using 0-origin on their side.

One exception is the WASM's column number, which had been using 1-origin 1.
Each consumer in DevTools handles the WASM case, and the code can be removed
once DevTools internal also switches to 1-origin column number.

The other exception is to use 1-based column number in logCustomFormatterError,
which is folded from bug 1864783 patch.

Differential Revision: https://phabricator.services.mozilla.com/D193270
2023-11-22 11:13:53 +00:00
Nicolas Chevobbe 63a5c20e02 Bug 1865016 - [devtools] Avoid using deprecated CSSRule#type. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D193874
2023-11-22 09:37:37 +00:00
Nicolas Chevobbe 6e6afdd3e1 Bug 1865026 - [devtools] Don't send unused mediaText property. r=devtools-reviewers,ochameau.
This looks like a legacy property that we're not using anymore.

Differential Revision: https://phabricator.services.mozilla.com/D193872
2023-11-22 09:37:36 +00:00
Alexandre Poirot 855c3369bd Bug 1569775 - [devtools] Enable beforeunload and unload event breakpoints. r=devtools-reviewers,nchevobbe
Support for breakpoint while unloading the page has been fixed by bug 1806796.
This is only matter of enabling these event types in the UI and covering them by tests.

Differential Revision: https://phabricator.services.mozilla.com/D191979
2023-11-21 18:16:32 +00:00
Nicolas Chevobbe 32bbfef798 Bug 1864200 - [devtools] Add invoke in event breakpoint panel. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D193317
2023-11-14 11:01:55 +00:00
Alexandre Poirot d647366308 Bug 1861943 - [devtools] Introduce a server side method to set all data entry values in one call. r=devtools-reviewers,nchevobbe
This will help bug 1569775 and bug 1651522 to update the whole entries of a given data type.

As there is little difference between adding new entries and replacing all entries,
I'm tuning the existing addSessionDataEntry methods to support both behaviors.

Differential Revision: https://phabricator.services.mozilla.com/D192243
2023-11-06 12:37:24 +00:00
Nicolas Chevobbe a670cbbb32 Bug 1861031 - [devtools] Handle InspectorUtils.getBlockLineCounts returning null. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D191862
2023-10-26 16:01:58 +00:00
Sebastian Zartner 798f509d51 Bug 1851756 - [devtools] Handle 'text-wrap: balance;' in inactive CSS. r=devtools-reviewers,nchevobbe,flod.
Differential Revision: https://phabricator.services.mozilla.com/D190505
2023-10-12 10:48:43 +00:00
Emilio Cobos Álvarez 5139b5a4a2 Bug 1857915 - Remove about:PreferenceStyleSheet. r=morgan,devtools-reviewers,nchevobbe
These days, after bug 1853323, about:PreferenceStyleSheet is basically
just an empty sheet for most users. For the ones that isn't, it's either
slightly or completely broken (see below).

If we were to implement this today, we'd do it with privileged env()
variables or media queries, and add a bunch of tests for different
combinations, but I don't think it's worth the effort:

 * There's no UI for any of these prefs.

 * There are no tests for any of these prefs.

 * browser.display.focus_ring_or_anything is not great, it's better
   replaced by browser.display.show_focus_rings, which actually makes
   the :focus-visible pseudo-class work. Otherwise the native controls
   may show no rings even though this pref is set.

 * for browser.display.focus_ring_style = 0, the color used
   (-moz-mac-focusring) is not implemented in any non-macOS platform.

 * The ::-moz-focus-inner rules are completely useless nowadays, because
   ::-moz-focus-inner only works on the windows native theme (which
   isn't used on content).

 * The focus colors are not color-scheme aware.

So given those, and that if you want the specific current behavior,
these are trivially implementable as a web extension (by using a user
stylesheet), I think we should just remove this code altogether.

Differential Revision: https://phabricator.services.mozilla.com/D190464
2023-10-11 17:47:50 +00:00
Sebastian Zartner ede6514ba4 Bug 1849235 - [devtools] Handle ::cue pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186509
2023-09-09 21:16:57 +00:00
Sebastian Zartner fc04233d84 Bug 1842175 - [devtools] Handle ::first-letter pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186493
2023-09-08 19:32:26 +00:00
Sebastian Zartner 5c735718b3 Bug 1849255 - [devtools] Handle ::placeholder pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186742
2023-09-07 20:14:31 +00:00
Sebastian Zartner 5eb95bb51e Bug 1842174 - [devtools] Handle ::first-line pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D186188
2023-08-16 20:34:57 +00:00
Sebastian Zartner 611e035114 Bug 1583912 - [devtools] Handle ignored properties in non-multi-column containers in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D186096
2023-08-14 20:41:29 +00:00
Sebastian Zartner a0a8952db4 Bug 1583906 - [devtools] Handle 'empty-cells' property in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D186082
2023-08-14 20:14:34 +00:00
Nicolas Chevobbe dc3b269023 Bug 1771113 - [devtools] Notify about removed stylesheet resources. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D185790
2023-08-10 14:36:04 +00:00
Nicolas Chevobbe fff3e70f4c Bug 1847565 - [devtools] Speedup StyleSheetsManager#getStyleSheetRuleCountAndAtRules . r=devtools-reviewers,jdescottes.
Don't check if rules are instances of `CSSGroupingRule` (as `CSSStyleRule` would
match now, so it's not providing the guard we want anymore).
Avoid retrieving stylesheet window and document until it's needed, and only
compute rule line and column for the at-rules we'll return.

Differential Revision: https://phabricator.services.mozilla.com/D185636
2023-08-09 05:25:57 +00:00
Nicolas Chevobbe aec33ed4bc Bug 1847747 - [devtools] Ignore devtools-highlighter-styles/highlighters.css in regular toolbox. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D185661
2023-08-09 04:57:15 +00:00
Nicolas Chevobbe 42c7ce803d Bug 1842157 - [devtools] Handle highlight pseudo-elements ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D182986
2023-07-13 16:48:56 +00:00
Emilio Cobos Álvarez c8d2c23403 Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-09 11:34:05 +00:00