-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default length to createGridTrackBreadth() when length is undef…
…ined https://bugs.webkit.org/show_bug.cgi?id=269856 rdar://119619013 Reviewed by Sammy Gill. `convertToLength` returned length undefined to `createGridTrackBreadth` which causes an issue when creating GridLength. Added check to see if length is undefined and if so returned a default length = 0 instead * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::createGridTrackBreadth): Originally-landed-as: 272448.626@safari-7618-branch (0b6e286). rdar://128091169 Canonical link: https://commits.webkit.org/278871@main
- Loading branch information
1 parent
332ec81
commit a5ef58e
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/css-grid-layout/css-grid-template-rows-invalid-length-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
This test should not crash |
22 changes: 22 additions & 0 deletions
22
LayoutTests/fast/css-grid-layout/css-grid-template-rows-invalid-length.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<iframe width="0" srcdoc=' | ||
<style> | ||
* { grid-template-rows: 2vh 61px; -webkit-user-modify: read-write-plaintext-only; } | ||
</style> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
function jsfuzzer() { | ||
try { htmlvar00029.replaceWith("htmlvar00009"); var00145 = htmlvar00028.innerHTML; } catch(e) { } | ||
try { /* */ var00144 = document.execCommand("insertHTML", false, var00145); } catch(e) { } | ||
} | ||
function eventhandler3() { | ||
try { htmlvar00029.selectionDirection = String.fromCharCode(67, 93); } catch(e) { } | ||
} | ||
</script> | ||
<body onload=jsfuzzer()> | ||
<svg onload="eventhandler3()"></svg> | ||
</svg> | ||
<fieldset id="htmlvar00028"> | ||
<textarea id="htmlvar00029" value=".(e;">b26</textarea> | ||
'></iframe> | ||
<div>This test should not crash</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters