2007-07-06 Mitz Pettel <mitz@webkit.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2007 10:06:46 +0000 (10:06 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2007 10:06:46 +0000 (10:06 +0000)
commit4cd252587c6ea73df5f6b1e7615bf2c355911274
treee87e4101e8a36515713600fca58b7335dd77139c
parentbeb6ec9264d12f7d1ccfed0a767049b60cff7822
2007-07-06  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Maciej.

        - fix http://bugs.webkit.org/show_bug.cgi?id=14400
          Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube

        Test: fast/forms/button-state-restore.html

        * dom/Document.h:
        (WebCore::Document::isFormElementRegistered): Added.
        * html/HTMLGenericFormElement.cpp:
        (WebCore::HTMLGenericFormElement::closeRenderer): Restore saved form
        element state only if the element is registered with the document to
        have its state saved.

2007-07-06  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Maciej.

        - test for http://bugs.webkit.org/show_bug.cgi?id=14400
          Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube

        * fast/forms/button-state-restore-expected.txt: Added.
        * fast/forms/button-state-restore.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/button-state-restore-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/button-state-restore.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.h
WebCore/html/HTMLGenericFormElement.cpp