Changeset 95845 in webkit


Ignore:
Timestamp:
Sep 23, 2011 12:19:03 PM (13 years ago)
Author:
jochen@chromium.org
Message:

Clarify wording in cross origin XSL tests and enable on all platforms
https://bugs.webkit.org/show_bug.cgi?id=68683

The condition for passing the test should be more clear now. Also, since the redirect case works on all platforms, the regular case should also work on all platforms.

Reviewed by Alexey Proskuryakov.

  • http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • http/tests/security/cross-origin-xsl-BLOCKED.html:
  • http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • http/tests/security/cross-origin-xsl-redirect-BLOCKED.html:
  • platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/chromium-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/chromium-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/chromium-win/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/chromium-win/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/gtk/Skipped:
  • platform/gtk/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/gtk/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/mac-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/mac-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/qt-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/qt-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/win-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
  • platform/win-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
  • platform/wk2/Skipped:
Location:
trunk/LayoutTests
Files:
17 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95843 r95845  
     12011-09-23  Jochen Eisinger  <jochen@chromium.org>
     2
     3        Clarify wording in cross origin XSL tests and enable on all platforms
     4        https://bugs.webkit.org/show_bug.cgi?id=68683
     5
     6        The condition for passing the test should be more clear now. Also, since the redirect case works on all platforms, the regular case should also work on all platforms.
     7
     8        Reviewed by Alexey Proskuryakov.
     9
     10        * http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     11        * http/tests/security/cross-origin-xsl-BLOCKED.html:
     12        * http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     13        * http/tests/security/cross-origin-xsl-redirect-BLOCKED.html:
     14        * platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     15        * platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     16        * platform/chromium-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     17        * platform/chromium-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     18        * platform/chromium-win/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     19        * platform/chromium-win/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     20        * platform/gtk/Skipped:
     21        * platform/gtk/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     22        * platform/gtk/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     23        * platform/mac-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     24        * platform/mac-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     25        * platform/qt-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     26        * platform/qt-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     27        * platform/win-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt:
     28        * platform/win-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt:
     29        * platform/wk2/Skipped:
     30
    1312011-09-23  Mihai Parparita  <mihaip@chromium.org>
    232
  • trunk/LayoutTests/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r80061 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
  • trunk/LayoutTests/http/tests/security/cross-origin-xsl-BLOCKED.html

    r34719 r95845  
    1616<body>
    1717<div>This test loads the XML document in an iframe so that it can call
    18 dumpAsText().  This test passes if the iframe below is blank.</div>
    19 <iframe name="uses-xsl" onload="done()"
    20         src="resources/cross-origin-xsl.xml"></iframe>
     18dumpAsText().  This test passes if the iframe below does not contain a message
     19starting with "FAIL".</div>
     20<iframe onload="done()" src="resources/cross-origin-xsl.xml"></iframe>
    2121</body>
    2222</html>
  • trunk/LayoutTests/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
  • trunk/LayoutTests/http/tests/security/cross-origin-xsl-redirect-BLOCKED.html

    r95580 r95845  
    1616<body>
    1717<div>This test loads the XML document in an iframe so that it can call
    18 dumpAsText().  This test passes if the iframe below is blank.</div>
    19 <iframe name="uses-xsl" onload="done()"
    20         src="resources/cross-origin-xsl-redirect.xml"></iframe>
     18dumpAsText().  This test passes if the iframe below does not contain a message
     19starting with "FAIL".</div>
     20<iframe onload="done()" src="resources/cross-origin-xsl-redirect.xml"></iframe>
    2121</body>
    2222</html>
  • trunk/LayoutTests/platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r92561 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/chromium-cg-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/chromium-mac/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r94341 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/chromium-mac/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/chromium-win/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r92561 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/chromium-win/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
  • trunk/LayoutTests/platform/gtk/Skipped

    r95809 r95845  
    165165fast/dynamic/layer-hit-test-crash.html
    166166
    167 # Two anonymous crashers with no bug.
    168 http/tests/security/cross-origin-xsl-BLOCKED.html
     167# One anonymous crashers with no bug.
    169168http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html
    170169
  • trunk/LayoutTests/platform/gtk/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r95844 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
     6--------
     7Frame: '<!--framePath //<!--frame0-->-->'
     8--------
  • trunk/LayoutTests/platform/gtk/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95633 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
    66--------
    7 Frame: 'uses-xsl'
     7Frame: '<!--framePath //<!--frame0-->-->'
    88--------
    9 
  • trunk/LayoutTests/platform/mac-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r95844 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
     6--------
     7Frame: '<!--framePath //<!--frame0-->-->'
     8--------
  • trunk/LayoutTests/platform/mac-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
    66--------
    7 Frame: 'uses-xsl'
     7Frame: '<!--framePath //<!--frame0-->-->'
    88--------
  • trunk/LayoutTests/platform/qt-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r95844 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
     6--------
     7Frame: '<!--framePath //<!--frame0-->-->'
     8--------
  • trunk/LayoutTests/platform/qt-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
    66--------
    7 Frame: 'uses-xsl'
     7Frame: '<!--framePath //<!--frame0-->-->'
    88--------
  • trunk/LayoutTests/platform/win-wk2/http/tests/security/cross-origin-xsl-BLOCKED-expected.txt

    r95844 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
     6--------
     7Frame: '<!--framePath //<!--frame0-->-->'
     8--------
  • trunk/LayoutTests/platform/win-wk2/http/tests/security/cross-origin-xsl-redirect-BLOCKED-expected.txt

    r95622 r95845  
    11CONSOLE MESSAGE: line 1: Unsafe attempt to load URL http://localhost:8000/security/resources/forbidden-stylesheet.xsl from frame with URL http://127.0.0.1:8000/security/resources/cross-origin-xsl-redirect.xml. Domains, protocols and ports must match.
    22
    3 This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below is blank.
     3This test loads the XML document in an iframe so that it can call dumpAsText(). This test passes if the iframe below does not contain a message starting with "FAIL".
    44
    55
    66--------
    7 Frame: 'uses-xsl'
     7Frame: '<!--framePath //<!--frame0-->-->'
    88--------
  • trunk/LayoutTests/platform/wk2/Skipped

    r95660 r95845  
    11401140# Unexplained failures that were formerly in the dumpChildFramesAsText list.
    11411141http/tests/security/cross-frame-access-private-browsing.html
    1142 http/tests/security/cross-origin-xsl-BLOCKED.html
    11431142http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame.html
    11441143http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url.html
Note: See TracChangeset for help on using the changeset viewer.