Closed Bug 1919853 Opened 2 months ago Closed 2 months ago

Make DevTools work with CSSNestedDeclarations objects.

Categories

(DevTools :: Inspector: Rules, defect)

defect

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

After bug 1918408, some styles start coming from CSSNestedDeclarations objects. However those aren't returned by InspectorUtils.getCSSStyleRules for example.

Rename getCSSStyleRules now that it can return something else, and
change getCSSStyleRules_starting_style.html to cover this again.

Unfortunately the asserts in ServoStyleRuleMap.cpp no longer hold,
because the style attribute and other declarations are expected not to
show up there.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Now that we get CSSNestedDeclarations objects from getMatchedCSSRules(),
undo the workarounds added in bug 1918408, and deal with them in
DevTools somewhat reasonably, and remove the behavior-preserving
workarounds introduced in bug 1918408.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8635b3512ad8 Make InspectorUtils able to return CSSNestedDeclarations too. r=devtools-reviewers,nchevobbe,dshin https://hg.mozilla.org/integration/autoland/rev/e9455a58a096 Fix how DevTools deals with bare declarations. r=devtools-reviewers,nchevobbe
Summary: Make DevTools work CSSNestedDeclarations objects. → Make DevTools work with CSSNestedDeclarations objects.
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Duplicate of this bug: 1821222
Duplicate of this bug: 1835169
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: