Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r173965 - ASSERTION FAILED: columnCount in WebCore::CSSParser::…
…parseGridTemplateAreasRow https://bugs.webkit.org/show_bug.cgi?id=136945 Reviewed by Sergio Villar Senin. Source/WebCore: Checking out whether the grid-template-areas value contains a white-space only string, which is not valid as it does not produce a cell token. Test: fast/css-grid-layout/grid-template-areas-empty-string-crash.html * css/CSSParser.cpp: (WebCore::CSSParser::parseGridTemplateAreasRow): LayoutTests: Testing the different types of white-space only strings for the grid-template-areas property, which is not valid as it does not produce a cell token. * fast/css-grid-layout/grid-template-areas-empty-string-crash-expected.txt: Added. * fast/css-grid-layout/grid-template-areas-empty-string-crash.html: Added. Canonical link: https://commits.webkit.org/154760.51@webkitgtk/2.6 git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@174438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
1ef4f6d
commit f300ba6
Showing
5 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
LayoutTests/fast/css-grid-layout/grid-template-areas-empty-string-crash-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,5 @@ | ||
webkit.org/b/136945 - ASSERTION FAILED: columnCount in WebCore::CSSParser::parseGridTemplateAreasRow | ||
|
||
This test has PASSED if it doesn't CRASH. | ||
|
||
|
37 changes: 37 additions & 0 deletions
37
LayoutTests/fast/css-grid-layout/grid-template-areas-empty-string-crash.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,37 @@ | ||
<!DOCTYPE html> | ||
<html | ||
<head> | ||
<link href="resources/grid.css" rel="stylesheet"> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<style> | ||
.space { | ||
-webkit-grid-template-areas: "\0020"; | ||
} | ||
.tab { | ||
-webkit-grid-template-areas: "\0009"; | ||
} | ||
.lineFeed { | ||
-webkit-grid-template-areas: "\000A"; | ||
} | ||
.carriageReturn { | ||
-webkit-grid-template-areas: "\000D"; | ||
} | ||
.formFeed { | ||
-webkit-grid-template-areas: "\000C"; | ||
} | ||
.multipleSpace { | ||
-webkit-grid-template-areas: " "; | ||
} | ||
</style> | ||
</head> | ||
<p>webkit.org/b/136945 - ASSERTION FAILED: columnCount in WebCore::CSSParser::parseGridTemplateAreasRow</p> | ||
<p>This test has PASSED if it doesn't CRASH.</p> | ||
<div class="grid space"></div> | ||
<div class="grid tab"></div> | ||
<div class="grid lineFeed"></div> | ||
<div class="grid carriageReturn"></div> | ||
<div class="grid formFeed"></div> | ||
<div class="grid multipleSpace"></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
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