2010-07-12 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jul 2010 01:28:13 +0000 (01:28 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jul 2010 01:28:13 +0000 (01:28 +0000)
commit0b6dcb977772ab0b2da956bfb4dff60486e27d85
tree3233993b85632655eb2323cebfc5b179f3db66cb
parenta5f049951f427be2237bf0e55ddf26221a57f899
2010-07-12  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        REGRESSION (HTML5 parser?): Impossible to get past the CAPTCHA on postcode.royalmail.com
        https://bugs.webkit.org/show_bug.cgi?id=41797

        This test is a bit subtle, but it captures a reduction of what I think
        is going on with the site.

        Essentially, the real parser doesn't see the <img> tag, but the preload
        scanner does.  Prior to this patch, we were preload scanning this
        region of the document even though we weren't supposed to.

        * http/tests/loading/preload-slow-loading-expected.txt: Added.
        * http/tests/loading/preload-slow-loading.php: Added.
2010-07-12  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        REGRESSION (HTML5 parser?): Impossible to get past the CAPTCHA on postcode.royalmail.com
        https://bugs.webkit.org/show_bug.cgi?id=41797

        Once we resume parsing after script execution, we want to clear the
        preload scanner so we don't scan any bytes it might have accumulated.

        Test: http/tests/loading/preload-slow-loading.php

        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/loading/preload-slow-loading-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/preload-slow-loading.php [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLDocumentParser.cpp