Reviewed by Maciej.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2006 06:12:58 +0000 (06:12 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2006 06:12:58 +0000 (06:12 +0000)
commit0fd967ed1861d2520553ff46058c91453be811cc
tree6bafca08373ecd0d906fb060de866503e4d91101
parentc8ca598ffd322b90d86954a42ea200a6c72c30ad
    Reviewed by Maciej.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4395
         REGRESSION: document.open doesn't clear the document

        Test: fast/dom/Document/document-reopen.html
        Test: fast/dom/Document/doc-open-while-parsing.html

        * dom/DocumentImpl.cpp:
        (WebCore::DocumentImpl::open): Only ignore open() while the frame is still loading the main resource.
        * page/Frame.cpp:
        (WebCore::Frame::isComplete): Added const specifier.
        (WebCore::Frame::isLoadingMainResource): New function.
        * page/Frame.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Document/doc-open-while-parsing-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/doc-open-while-parsing.html [new file with mode: 0644]
LayoutTests/fast/dom/Document/document-reopen-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/document-reopen.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/DocumentImpl.cpp
WebCore/page/Frame.cpp
WebCore/page/Frame.h