WebCore:
Reviewed by Darin. Patch by Mitz.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9674
REGRESSION (r15075): Blank or incomplete pages on digg.com
Replaced the requestingScript state bit added in the fix for bug 9317
with a m_requestingScript bool that is set before and restored
after calling ref() on a CachedScript.
Test: fast/tokenizer/nested-cached-scripts.html
* html/HTMLTokenizer.cpp:
(WebCore::HTMLTokenizer::HTMLTokenizer):
(WebCore::HTMLTokenizer::begin):
(WebCore::HTMLTokenizer::scriptHandler):
(WebCore::HTMLTokenizer::notifyFinished):
* html/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::State::):
LayoutTests:
Reviewed by Darin. Patch by Mitz.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9674
REGRESSION (r15075): Blank or incomplete pages on digg.com
* fast/tokenizer/nested-cached-scripts-expected.txt: Added.
* fast/tokenizer/nested-cached-scripts.html: Added.
* fast/tokenizer/resources/nested-1.js: Added.
* fast/tokenizer/resources/nested-2.js: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15134
268f45cc-cd09-0410-ab3c-
d52691b4dbfc