WebCore:
authorddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Jul 2006 11:39:43 +0000 (11:39 +0000)
committerddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Jul 2006 11:39:43 +0000 (11:39 +0000)
commit458df0ff9873eeadbe55aeef2f15d8569eecbb59
tree67e80ee22370b347aa0be401edc9a874a383ad53
parent7018780d032bf2a895d4217399cb0cb69edfe0ce
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
LayoutTests/ChangeLog
LayoutTests/fast/tokenizer/nested-cached-scripts-expected.txt [new file with mode: 0644]
LayoutTests/fast/tokenizer/nested-cached-scripts.html [new file with mode: 0644]
LayoutTests/fast/tokenizer/resources/nested-1.js [new file with mode: 0644]
LayoutTests/fast/tokenizer/resources/nested-2.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLTokenizer.cpp
WebCore/html/HTMLTokenizer.h