2011-05-05 Tony Gentilcore <tonyg@chromium.org>
authorTony Gentilcore <tonyg@chromium.org>
Thu, 5 May 2011 22:38:09 +0000 (22:38 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 9 May 2011 20:43:38 +0000 (17:43 -0300)
commitc88e89dfa6e73127f3b357fc353ec1f0c6fecc6b
tree7d6ce7fd3019c7cea953b3fad046a6d883c0cef8
parent393a82ea2fb151c5c47a7c86a48a41617f608dc1
2011-05-05  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        ASSERT(m_state == ParsingState) fires @ www.canalplus.fr
        https://bugs.webkit.org/show_bug.cgi?id=60101

        * fast/parser/close-while-stopping-expected.txt: Added.
        * fast/parser/close-while-stopping.html: Added.
2011-05-05  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Adam Barth.

        ASSERT(m_state == ParsingState) fires @ www.canalplus.fr
        https://bugs.webkit.org/show_bug.cgi?id=60101

        Test: fast/parser/close-while-stopping.html

        * dom/Document.cpp:
        (WebCore::Document::close): According to http://www.whatwg.org/specs/web-apps/current-work/#dom-document-close,
        the close() steps should be aborted if there is no script-created parser
        associated with the document. Our parser lives throughout
        http://www.whatwg.org/specs/web-apps/current-work/#the-end, but it seems
        the spec doesn't consider the parser active any more. So to properly
        respect this, we need to check that the parser is still parsing.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/parser/close-while-stopping-expected.txt [new file with mode: 0644]
LayoutTests/fast/parser/close-while-stopping.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp