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

Changeset 252720 in webkit


Ignore:
Timestamp:
Nov 20, 2019, 5:09:23 PM (7 years ago)
Author:
Kate Cheney
Message:

[ Jazz ] http/tests/resourceLoadStatistics/cookie-deletion.html is timing out
https://bugs.webkit.org/show_bug.cgi?id=203813
<rdar://problem/54316765>

Reviewed by John Wilander.

Added random dummy value to the end of the cookie-redirect query to ensure
the third party url isn't failing to set the cookie and redirect back
to the correct file because the url is already in the cache from previous runs.

  • http/tests/resourceLoadStatistics/cookie-deletion-expected.txt:
  • http/tests/resourceLoadStatistics/cookie-deletion.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r252716 r252720  
     12019-11-20  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        [ Jazz ] http/tests/resourceLoadStatistics/cookie-deletion.html is timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=203813
     5        <rdar://problem/54316765>
     6
     7        Reviewed by John Wilander.
     8
     9        Added random dummy value to the end of the cookie-redirect query to ensure
     10        the third party url isn't failing to set the cookie and redirect back
     11        to the correct file because the url is already in the cache from previous runs.
     12
     13        * http/tests/resourceLoadStatistics/cookie-deletion-expected.txt:
     14        * http/tests/resourceLoadStatistics/cookie-deletion.html:
     15
    1162019-11-20  Zalan Bujtas  <zalan@apple.com>
    217
  • trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion-expected.txt

    r252630 r252720  
    1 CONSOLE MESSAGE: line 116: Test is beginning. document.location.hash is empty.
    2 CONSOLE MESSAGE: line 122: About to call runTest() for the first time.
    3 CONSOLE MESSAGE: line 61: step1. About to set a cookie
    4 CONSOLE MESSAGE: line 126: About to call runTest() after cookie was set. document hash is #step2
    5 CONSOLE MESSAGE: line 66: step2. About to open an iFrame to test for third party cookie access (should be successful)
    6 CONSOLE MESSAGE: line 72: step3. About to classify localhost as prevalent
    7 CONSOLE MESSAGE: line 76: step3. In the callback for testRunner.setStatisticsPrevalentResource
    8 CONSOLE MESSAGE: line 83: step4. About to open an iFrame to test for third party cookie access (should not be successful)
    9 CONSOLE MESSAGE: line 89: step5. About to open an iFrame to try to set a cookie as a third party (should fail)
    10 CONSOLE MESSAGE: line 95: step6. About to open an iFrame and fireDataModificationHandlerAndContinue
    11 CONSOLE MESSAGE: line 39: In fireDataModificationHandlerAndContinue
    12 CONSOLE MESSAGE: line 44: Calling statisticsProcessStatisticsAndDataRecords
    13 CONSOLE MESSAGE: line 41: In callback function for installStatisticsDidScanDataRecordsCallback
    14 CONSOLE MESSAGE: line 101: step7. About to open an iFrame and setAsNonPrevalentAndContinue
    15 CONSOLE MESSAGE: line 49: In setAsNonPrevalentAndContinue
    16 CONSOLE MESSAGE: line 51: In callback function for setStatisticsPrevalentResource
    17 CONSOLE MESSAGE: line 107: step8. About to open an iFrame and confirm third party has no cookie access
    18 CONSOLE MESSAGE: line 24: in finishTest
     1CONSOLE MESSAGE: line 117: Test is beginning. document.location.hash is empty.
     2CONSOLE MESSAGE: line 123: About to call runTest() for the first time.
     3CONSOLE MESSAGE: line 62: step1. About to set a cookie
     4CONSOLE MESSAGE: line 127: About to call runTest() after cookie was set. document hash is #step2
     5CONSOLE MESSAGE: line 67: step2. About to open an iFrame to test for third party cookie access (should be successful)
     6CONSOLE MESSAGE: line 73: step3. About to classify localhost as prevalent
     7CONSOLE MESSAGE: line 77: step3. In the callback for testRunner.setStatisticsPrevalentResource
     8CONSOLE MESSAGE: line 84: step4. About to open an iFrame to test for third party cookie access (should not be successful)
     9CONSOLE MESSAGE: line 90: step5. About to open an iFrame to try to set a cookie as a third party (should fail)
     10CONSOLE MESSAGE: line 96: step6. About to open an iFrame and fireDataModificationHandlerAndContinue
     11CONSOLE MESSAGE: line 40: In fireDataModificationHandlerAndContinue
     12CONSOLE MESSAGE: line 45: Calling statisticsProcessStatisticsAndDataRecords
     13CONSOLE MESSAGE: line 42: In callback function for installStatisticsDidScanDataRecordsCallback
     14CONSOLE MESSAGE: line 102: step7. About to open an iFrame and setAsNonPrevalentAndContinue
     15CONSOLE MESSAGE: line 50: In setAsNonPrevalentAndContinue
     16CONSOLE MESSAGE: line 52: In callback function for setStatisticsPrevalentResource
     17CONSOLE MESSAGE: line 108: step8. About to open an iFrame and confirm third party has no cookie access
     18CONSOLE MESSAGE: line 25: in finishTest
    1919Test for partitioned and unpartitioned cookie deletion.
    2020
  • trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion.html

    r252630 r252720  
    1616    const firstPartyCookieName = "firstPartyCookie";
    1717    const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
     18    const subPathToSetFirstPartyCookieRandom = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value&dummyParam=" + Math.random();
    1819    const thirdPartyCookieName = "thirdPartyCookie";
    1920    const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value";
     
    6162                console.log("step1. About to set a cookie")
    6263                // Set first-party cookie for localhost.
    63                 document.location.href = thirdPartyBaseUrl + subPathToSetFirstPartyCookie + "#" + fragmentWithReturnUrl + "#step2";
     64                document.location.href = thirdPartyBaseUrl + subPathToSetFirstPartyCookieRandom + "#" + fragmentWithReturnUrl + "#step2";
    6465                break;
    6566            case "#step2":
Note: See TracChangeset for help on using the changeset viewer.