Changeset 70027 in webkit


Ignore:
Timestamp:
Oct 18, 2010 10:33:57 PM (14 years ago)
Author:
tkent@chromium.org
Message:

2010-10-18 Kent Tamura <tkent@chromium.org>

Reviewed by Dimitri Glazkov.

Should not save state of a detached form control.
https://bugs.webkit.org/show_bug.cgi?id=47811

  • fast/forms/state-save-of-detached-control-expected.txt: Added.
  • fast/forms/state-save-of-detached-control.html: Added.

2010-10-18 Kent Tamura <tkent@chromium.org>

Reviewed by Dimitri Glazkov.

Should not save state of a detached form control.
https://bugs.webkit.org/show_bug.cgi?id=47811

Test: fast/forms/state-save-of-detached-control.html

  • html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState): If the node is detached, don't save the state.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r70018 r70027  
     12010-10-18  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Should not save state of a detached form control.
     6        https://bugs.webkit.org/show_bug.cgi?id=47811
     7
     8        * fast/forms/state-save-of-detached-control-expected.txt: Added.
     9        * fast/forms/state-save-of-detached-control.html: Added.
     10
    1112010-10-18  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r70026 r70027  
     12010-10-18  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Should not save state of a detached form control.
     6        https://bugs.webkit.org/show_bug.cgi?id=47811
     7
     8        Test: fast/forms/state-save-of-detached-control.html
     9
     10        * html/HTMLFormControlElement.cpp:
     11        (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState):
     12          If the node is detached, don't save the state.
     13
    1142010-10-18  Xan Lopez  <xlopez@igalia.com>
    215
  • trunk/WebCore/html/HTMLFormControlElement.cpp

    r69925 r70027  
    441441{
    442442    // We don't save/restore control state in a form with autocomplete=off.
    443     return autoComplete();
     443    return attached() && autoComplete();
    444444}
    445445
Note: See TracChangeset for help on using the changeset viewer.