Calling CSSStyleProperties#hasLonghandProperty crashes the tab
Categories
(DevTools :: Inspector, defect)
Tracking
(firefox151 fixed)
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
hasLonghandProperty can be called on CSSStyleProperties object given https://searchfox.org/firefox-main/rev/23974e2d947e31e4ae42ae2758a4416c9a6d8671/dom/webidl/CSSStyleDeclaration.webidl#32-33
[ChromeOnly]
boolean hasLonghandProperty(UTF8String property);
but when doing so, it actually crashes with Mozilla crash reason: MOZ_CRASH(called nsComputedDOMStyle::GetCSSDeclaration), which I think is because of this https://searchfox.org/firefox-main/rev/23974e2d947e31e4ae42ae2758a4416c9a6d8671/layout/style/nsDOMCSSDeclaration.cpp#162
if (auto* decl = GetOrCreateCSSDeclaration(Operation::Read, nullptr)) {
| Assignee | ||
Comment 1•1 month ago
|
||
This will be used by DevTools, in particular to know when a custom properties
is set (they can be empty, so getPropertyValue() isn't helpful here).
Updated•1 month ago
|
Updated•1 month ago
|
Comment 3•1 month ago
|
||
Backed out as requested: https://hg.mozilla.org/integration/autoland/rev/5ed9efad9a0a
| Assignee | ||
Comment 5•1 month ago
|
||
I had the test manifest change in the wrong patch, I'll move it here
Updated•1 month ago
|
Description
•