Changeset 56979 in webkit


Ignore:
Timestamp:
Apr 2, 2010 12:30:18 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-02 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

REGRESSION(56295): http/tests/security/xssAuditor/xss-protection-parsing-01.html times out on Tiger Bot
https://bugs.webkit.org/show_bug.cgi?id=36933

Change the test design in an attempt to get this passing on Tiger. In
this variation, we use a POST request to work around possible caching
issues in Tiger's CFNetwork.

  • http/tests/security/xssAuditor/xss-protection-parsing-01-expected.txt:
  • http/tests/security/xssAuditor/xss-protection-parsing-01.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56974 r56979  
     12010-04-02  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        REGRESSION(56295): http/tests/security/xssAuditor/xss-protection-parsing-01.html times out on Tiger Bot
     6        https://bugs.webkit.org/show_bug.cgi?id=36933
     7
     8        Change the test design in an attempt to get this passing on Tiger.  In
     9        this variation, we use a POST request to work around possible caching
     10        issues in Tiger's CFNetwork.
     11
     12        * http/tests/security/xssAuditor/xss-protection-parsing-01-expected.txt:
     13        * http/tests/security/xssAuditor/xss-protection-parsing-01.html:
     14
    1152010-04-01  MORITA Hajime  <morrita@google.com>
    216
  • trunk/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-01-expected.txt

    r56295 r56979  
    11CONSOLE MESSAGE: line 1: Refused to execute a JavaScript script. Source code of script found within request.
    2 
    3 This tests our parsing of the X-XSS-Protection header.
    42
    53
  • trunk/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-01.html

    r56295 r56979  
    1010    layoutTestController.setXSSAuditorEnabled(true);
    1111}
     12function done()
     13{
     14    if (window.layoutTestController)
     15        layoutTestController.notifyDone();
     16}
     17window.onload = function()
     18{
     19    sendRequestFromIFrame("http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl","crazy-header=1&q=<script>alert(/XSS/)<\/script>","POST", done);
     20};
    1221</script>
    1322</head>
    1423<body>
    15 <p>This tests our parsing of the X-XSS-Protection header.</p>
    16 <iframe id="frame" onload="checkIfFrameLocationMatchesURLAndCallDone('frame', 'about:blank')" src="http://127.0.0.1:8000/security/xssAuditor/resources/echo-intertag.pl?crazy-header=1&q=<script>alert(/XSS/)</script><p>If you see this message then the test FAILED.</p>">
    17 </iframe>
    1824</body>
    1925</html>
Note: See TracChangeset for help on using the changeset viewer.