New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Inspector: Crash when inspecting CSS Grid without defined columns or rows #13260
Conversation
EWS run on previous version of this PR (hash 39e74ad) |
@@ -1441,7 +1441,7 @@ static Vector<String> authoredGridTrackSizes(Node* node, GridTrackSizingDirectio | |||
} | |||
} | |||
|
|||
auto* cssValueList = dynamicDowncast<CSSValueList>(*cssValue); | |||
auto* cssValueList = dynamicDowncast<CSSValueList>(cssValue.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to .get()
? or can we just dynamicDowncast<CSSValueList>(cssValue)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we need the .get()
here, otherwise we try to downcast the RefPtr itself to CSSValueList, which doesn't compile π
@@ -7,6 +7,14 @@ | |||
{ | |||
let suite = InspectorTest.createAsyncSuite("DOM.showGridOverlay"); | |||
|
|||
const allEnabledOverlayOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if we should do this for the flex overlay too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't hurt.
39e74ad
to
2eb0a35
Compare
EWS run on current version of this PR (hash 2eb0a35) |
β¦ or rows https://bugs.webkit.org/show_bug.cgi?id=256072 rdar://108641874 Reviewed by Devin Rousso. 262869@main fixed issues with determining the authored grid track sizes, but in the process introduced a potential null pointer deref due to us erroneously trying to get a reference to a RefPtr's value instead of getting its pointer for use in a dynamic downcast. * LayoutTests/inspector/dom/showFlexOverlay.html: - Drive-by ensure we enable all options for flex overlays too so that those paths are exercises. * LayoutTests/inspector/dom/showGridOverlay.html: * Source/WebCore/inspector/InspectorOverlay.cpp: (WebCore::authoredGridTrackSizes): Canonical link: https://commits.webkit.org/263517@main
2eb0a35
to
05e01b5
Compare
Committed 263517@main (05e01b5): https://commits.webkit.org/263517@main Reviewed commits have been landed. Closing PR #13260 and removing active labels. |
05e01b5
2eb0a35