Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Flaky crash with JavaScript URLs
https://bugs.webkit.org/show_bug.cgi?id=66360 Reviewed by Nate Chapin. Source/WebCore: This patch teaches DocumentWriter::begin to make a copy of the URL before beginning a new document to avoid a crash. Test: fast/loader/javascript-url-iframe-crash.html * loader/DocumentWriter.cpp: (WebCore::DocumentWriter::begin): LayoutTests: * fast/loader/javascript-url-iframe-crash-expected.txt: Added. * fast/loader/javascript-url-iframe-crash.html: Added. Canonical link: https://commits.webkit.org/83040@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
47 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
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
@@ -0,0 +1,7 @@ | ||
|
||
|
||
|
||
|
||
|
||
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
@@ -0,0 +1,9 @@ | ||
<iframe src="javascript:''"></iframe> | ||
<a><summary><pre><pre><pre><pre><pre><iframe src="javascript:''"></iframe> | ||
|
||
<a> | ||
<script> | ||
if (window.layoutTestController) | ||
layoutTestController.dumpAsText(); | ||
</script> | ||
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
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