Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r175809 - Crash in WebCore::Node::getFlag
https://bugs.webkit.org/show_bug.cgi?id=137961 Reviewed by Antti Koivisto. Source/WebCore: * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyBlockStyle): Null pointer check added. LayoutTests: * editing/execCommand/crash-137961-expected.txt: Added. * editing/execCommand/crash-137961.html: Added.
- Loading branch information
1 parent
e6017b7
commit d7fa522
Showing
5 changed files
with
50 additions
and
0 deletions.
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
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,3 @@ | ||
Test for bug Crash in WebCore::Node::getFlag | ||
|
||
This test passes if it doesn't crash. |
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,24 @@ | ||
<!DOCTYPE html> | ||
<html contenteditable> | ||
<head> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
function test() { | ||
document.execCommand("selectAll", false, null); | ||
document.execCommand("createlink", true, "http://www.example.com"); | ||
document.execCommand("removeFormat", false, null); | ||
document.write("<p>Test for bug <a href=\"https://bugs.webkit.org/show_bug.cgi?id=137961\">Crash in WebCore::Node::getFlag</a></p>"); | ||
document.write("<p>This test passes if it doesn't crash.</p>"); | ||
} | ||
</script> | ||
<style> | ||
* { | ||
display:table-row-group; | ||
} | ||
</style> | ||
</head> | ||
<body onload='test();' hidden> | ||
</body> | ||
</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
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