Changeset 107046 in webkit


Ignore:
Timestamp:
Feb 8, 2012 12:13:58 AM (12 years ago)
Author:
haraken@chromium.org
Message:

Replace [CheckNodeSecurity] with [CheckAccessToNode]
https://bugs.webkit.org/show_bug.cgi?id=77971

Reviewed by Adam Barth.

Source/WebCore:

[CheckNodeSecurity] is not implemented by code generators.
This patch replaces [CheckNodeSecurity] with [CheckAccessToNode].

Test: http/tests/security/cross-frame-access-frameelement.html

  • page/DOMWindow.idl:

LayoutTests:

The added test checks if frameElement is accessible from the same or cross origin iframe.

  • http/tests/security/cross-frame-access-frameelement-expected.txt: Added.
  • http/tests/security/cross-frame-access-frameelement.html: Added.
  • http/tests/security/resources/cross-frame-access-frameelement-from-iframe.html: Added.
  • platform/chromium/http/tests/security/cross-frame-access-put-expected.txt: Updated the test result.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r107036 r107046  
     12012-02-08  Kentaro Hara  <haraken@chromium.org>
     2
     3        Replace [CheckNodeSecurity] with [CheckAccessToNode]
     4        https://bugs.webkit.org/show_bug.cgi?id=77971
     5
     6        Reviewed by Adam Barth.
     7
     8        The added test checks if frameElement is accessible from the same or cross origin iframe.
     9
     10        * http/tests/security/cross-frame-access-frameelement-expected.txt: Added.
     11        * http/tests/security/cross-frame-access-frameelement.html: Added.
     12        * http/tests/security/resources/cross-frame-access-frameelement-from-iframe.html: Added.
     13        * platform/chromium/http/tests/security/cross-frame-access-put-expected.txt: Updated the test result.
     14
    1152012-02-07  Robert Kroeger  <rjkroege@chromium.org>
    216
  • trunk/LayoutTests/platform/chromium/http/tests/security/cross-frame-access-put-expected.txt

    r106728 r107046  
     1CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
     2
    13CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html. Domains, protocols and ports must match.
    24
     
    484486ALERT: PASS: window.embeds should be 'undefined' and is.
    485487ALERT: PASS: window.event should be 'undefined' and is.
    486 ALERT: PASS: window.frameElement should be '[object HTMLIFrameElement]' and is.
     488CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
     489
     490ALERT: PASS: window.frameElement should be 'undefined' and is.
    487491ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
    488492ALERT: PASS: window.history should be '[object History]' and is.
  • trunk/Source/WebCore/ChangeLog

    r107045 r107046  
     12012-02-08  Kentaro Hara  <haraken@chromium.org>
     2
     3        Replace [CheckNodeSecurity] with [CheckAccessToNode]
     4        https://bugs.webkit.org/show_bug.cgi?id=77971
     5
     6        Reviewed by Adam Barth.
     7
     8        [CheckNodeSecurity] is not implemented by code generators.
     9        This patch replaces [CheckNodeSecurity] with [CheckAccessToNode].
     10
     11        Test: http/tests/security/cross-frame-access-frameelement.html
     12
     13        * page/DOMWindow.idl:
     14
    1152012-02-08  Kentaro Hara  <haraken@chromium.org>
    216
  • trunk/Source/WebCore/page/DOMWindow.idl

    r107041 r107046  
    6161        DOMSelection getSelection();
    6262
    63         readonly attribute [CheckNodeSecurity] Element frameElement;
     63        readonly attribute [CheckAccessToNode] Element frameElement;
    6464
    6565        [DoNotCheckDomainSecurity] void focus();
Note: See TracChangeset for help on using the changeset viewer.