Flaky crash with JavaScript URLs
authorAdam Barth <abarth@webkit.org>
Tue, 30 Aug 2011 21:31:57 +0000 (21:31 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 5 Sep 2011 17:50:00 +0000 (14:50 -0300)
commitc0f2dce7f6f43ac03415101582b9f96d86b54721
treef3cbec86a73b5b08775d3bba32d4f8642289da33
parentb5c4e8f3e70e4de6cbbb7c5c93685cf63c44c16d
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.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/loader/javascript-url-iframe-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/javascript-url-iframe-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/DocumentWriter.cpp