| Summary: | Web Inspector: Blank inspector in a page with container queries | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | jec <jec> | ||||||
| Component: | Web Inspector | Assignee: | Patrick Angle <pangle> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ews-watchlist, hi, inspector-bugzilla-changes, joepeck, pangle, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 238346 | ||||||||
| Attachments: |
|
||||||||
|
Description
jec
2022-03-24 11:07:43 PDT
Thank you for reporting this issue - the team in investigating! Created attachment 455677 [details]
Patch v1.0
Comment on attachment 455677 [details] Patch v1.0 Just want to note that even once this patch lands, Web Inspector will not actually show container query rules. That work is being tracked in bug 238346. Comment on attachment 455677 [details]
Patch v1.0
r=me, unfortunate that we have so many unchecked dereferences :(
I did do a bit of digging, and I wonder if something like `window.getMatchedCSSRules(element)` will cause a crash if `element` has matching container queries, since `StyleRuleType::Container` is not handled inside `StyleRuleBase::createCSSOMWrapper`. Might be worthing filing a separate bug and replacing that FIXME with it (and maybe including similar FIXME in relevant inspector code too).
(In reply to Devin Rousso from comment #5) > Comment on attachment 455677 [details] > Patch v1.0 > > r=me, unfortunate that we have so many unchecked dereferences :( > > I did do a bit of digging, and I wonder if something like > `window.getMatchedCSSRules(element)` will cause a crash if `element` has > matching container queries, since `StyleRuleType::Container` is not handled > inside `StyleRuleBase::createCSSOMWrapper`. Might be worthing filing a > separate bug and replacing that FIXME with it (and maybe including similar > FIXME in relevant inspector code too). I've just verified and there is no crash in that case, and the correct immediate rule is returned, but it's `parentRule` is null instead of being the actual container query rule. Committed r291824 (248848@main): <https://commits.webkit.org/248848@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455677 [details]. |