Changeset 104775 in webkit


Ignore:
Timestamp:
Jan 11, 2012 5:24:23 PM (12 years ago)
Author:
abarth@webkit.org
Message:

iframe sandbox doesn't block autofocus (IETC automatic-feature-block-autofocus-form-control)
https://bugs.webkit.org/show_bug.cgi?id=76120

Reviewed by Eric Seidel.

Source/WebCore:

Test: fast/forms/no-autofocus-in-sandbox.html

  • html/HTMLFormControlElement.cpp:

(WebCore::shouldAutofocus):

  • The HTML5 spec says that we shouldn't autofocus elements when the automatic features are sandboxed.

LayoutTests:

  • fast/forms/no-autofocus-in-sandbox-expected.txt: Added.
  • fast/forms/no-autofocus-in-sandbox.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r104771 r104775  
     12012-01-11  Adam Barth  <abarth@webkit.org>
     2
     3        iframe sandbox doesn't block autofocus (IETC automatic-feature-block-autofocus-form-control)
     4        https://bugs.webkit.org/show_bug.cgi?id=76120
     5
     6        Reviewed by Eric Seidel.
     7
     8        * fast/forms/no-autofocus-in-sandbox-expected.txt: Added.
     9        * fast/forms/no-autofocus-in-sandbox.html: Added.
     10
    1112012-01-11  Joshua Bell  <jsbell@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r104773 r104775  
     12012-01-11  Adam Barth  <abarth@webkit.org>
     2
     3        iframe sandbox doesn't block autofocus (IETC automatic-feature-block-autofocus-form-control)
     4        https://bugs.webkit.org/show_bug.cgi?id=76120
     5
     6        Reviewed by Eric Seidel.
     7
     8        Test: fast/forms/no-autofocus-in-sandbox.html
     9
     10        * html/HTMLFormControlElement.cpp:
     11        (WebCore::shouldAutofocus):
     12            - The HTML5 spec says that we shouldn't autofocus elements when the
     13              automatic features are sandboxed.
     14
    1152012-01-11  Beth Dakin  <bdakin@apple.com>
    216
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r104668 r104775  
    140140    if (element->document()->ignoreAutofocus())
    141141        return false;
     142    if (element->document()->isSandboxed(SandboxAutomaticFeatures))
     143        return false;
    142144    if (element->hasAutofocused())
    143145        return false;
Note: See TracChangeset for help on using the changeset viewer.