⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136132 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 7:34:39 AM (14 years ago)
Author:
mkwst@chromium.org
Message:

Typo in 'autofocus' sandboxing error message.
​https://bugs.webkit.org/show_bug.cgi?id=103616

Reviewed by Jochen Eisinger.

Source/WebCore:

The sandbox attribute name is 'allow-scripts', not 'allow-script'. :(

  • html/HTMLFormControlElement.cpp:

(WebCore::shouldAutofocus):

LayoutTests:

  • fast/frames/sandboxed-iframe-autofocus-denied-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r136131 r136132  
     12012-11-29  Mike West  <mkwst@chromium.org>
     2
     3        Typo in 'autofocus' sandboxing error message.
     4        https://bugs.webkit.org/show_bug.cgi?id=103616
     5
     6        Reviewed by Jochen Eisinger.
     7
     8        * fast/frames/sandboxed-iframe-autofocus-denied-expected.txt:
     9
    1102012-11-29  Hajime Morrita  <morrita@google.com>
    211
  • trunk/LayoutTests/fast/frames/sandboxed-iframe-autofocus-denied-expected.txt

    r135903 r136132  
    1 CONSOLE MESSAGE: Blocked autofocusing on a form control because the form's frame is sandboxed and the 'allow-script' permission is not set.
     1CONSOLE MESSAGE: Blocked autofocusing on a form control because the form's frame is sandboxed and the 'allow-scripts' permission is not set.
    22CONSOLE MESSAGE: line 13: PASS: The input element is not focused.
    33This test passes if the input element in the sandboxed frame is not automatically focused upon, as it should be blocked by the sandboxed scripts flag. A console warning to that effect should also be present.
  • trunk/Source/WebCore/ChangeLog

    r136131 r136132  
     12012-11-29  Mike West  <mkwst@chromium.org>
     2
     3        Typo in 'autofocus' sandboxing error message.
     4        https://bugs.webkit.org/show_bug.cgi?id=103616
     5
     6        Reviewed by Jochen Eisinger.
     7
     8        The sandbox attribute name is 'allow-scripts', not 'allow-script'. :(
     9
     10        * html/HTMLFormControlElement.cpp:
     11        (WebCore::shouldAutofocus):
     12
    1132012-11-29  Hajime Morrita  <morrita@google.com>
    214
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r135903 r136132  
    175175    if (element->document()->isSandboxed(SandboxAutomaticFeatures)) {
    176176        // FIXME: This message should be moved off the console once a solution to https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
    177         element->document()->addConsoleMessage(HTMLMessageSource, LogMessageType, ErrorMessageLevel, "Blocked autofocusing on a form control because the form's frame is sandboxed and the 'allow-script' permission is not set.");
     177        element->document()->addConsoleMessage(HTMLMessageSource, LogMessageType, ErrorMessageLevel, "Blocked autofocusing on a form control because the form's frame is sandboxed and the 'allow-scripts' permission is not set.");
    178178        return false;
    179179    }
Note: See TracChangeset for help on using the changeset viewer.