-
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.
Cherry-pick 267815.637@safari-7617-branch (87a8ec6). https://bugs.web…
…kit.org/show_bug.cgi?id=266273 ASAN_ILL | LayoutIntegration::BoxTree::rendererForLayoutBox; WebCore::TextBoxPainter::TextBoxPainter; WebCore::ModernTextBoxPainter::ModernTextBoxPainter https://bugs.webkit.org/show_bug.cgi?id=266273 rdar://119187070 Reviewed by Alan Baradlay. similar to rdar://104598552, add positioned child in RenderMathMLScripts also. * LayoutTests/mathml/mathml-posistioned-mtext-layout-crash-expected.txt: Added. * LayoutTests/mathml/mathml-posistioned-mtext-layout-crash.html: Added. * LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/html5-tree/dynamic-childlist-002-expected.txt: re-baseline based on this fix. * Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp: (WebCore::RenderMathMLScripts::layoutBlock): Canonical link: https://commits.webkit.org/267815.637@safari-7617-branch
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
LayoutTests/mathml/mathml-posistioned-mtext-layout-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,6 @@ | ||
Test passes if no crash. | ||
|
||
7 | ||
k | ||
< | ||
|
28 changes: 28 additions & 0 deletions
28
LayoutTests/mathml/mathml-posistioned-mtext-layout-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,28 @@ | ||
</style> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
function GetVariable(fuzzervars, var_type) { { return fuzzervars[var_type]; } { } } | ||
function SetVariable(fuzzervars, var_name, var_type) { fuzzervars[var_type] = var_name; } | ||
function jsfuzzer() { | ||
var fuzzervars = {}; | ||
SetVariable(fuzzervars, document, 'Document'); | ||
try { mathmlvar00003.prepend("1"); } catch (e) { } | ||
try { /* */ var var00231 = svgvar00032.ownerDocument; } catch (e) { } | ||
try { if (!var00231) { var00231 = GetVariable(fuzzervars, 'Document'); } { SetVariable(fuzzervars, 'DocumentOrShadowRoot'); } } catch (e) { } | ||
try { var00231.execCommand("selectAll", false); } catch (e) { } | ||
try { /* */ var00297 = mathmlvar00003.replaceChild(mathmlvar00016, mathmlvar00003.childNodes[0 % mathmlvar00003.childNodes.length]); } catch (e) { } | ||
} | ||
</script> | ||
<p>Test passes if no crash.</p> | ||
|
||
<body onload=jsfuzzer()> | ||
<math display="inline"> | ||
<msup mathbackground="red"> | ||
<mtext id="mathmlvar00003" style="-webkit-column-width: initial; position: absolute; class=" class1">k | ||
</mtext> | ||
<ms displaystyle="true"><</ms> | ||
</msup> | ||
<mn id="mathmlvar00016" displaystyle="true">7</mn> | ||
</math> | ||
</body> |
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