Changeset 225640 in webkit
- Timestamp:
- Dec 7, 2017 12:09:27 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 20 added
- 22 deleted
- 5 edited
- 30 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r225639 r225640 1 2017-12-07 John Wilander <wilander@apple.com> 2 3 Move all tests under http/tests/loading/resourceLoadStatistics/ to http/tests/resourceLoadStatistics/ and remove expected failures 4 https://bugs.webkit.org/show_bug.cgi?id=180502 5 <rdar://problem/35891216> 6 7 Reviewed by Brent Fulgham. 8 9 This change moves all tests under http/tests/loading/resourceLoadStatistics/ to http/tests/resourceLoadStatistics/ 10 and removes expected failures. 11 The one exception is the full removal of 12 http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-network-process-crash.html 13 which never seems to have worked properly. Follow-up work for this is tracked in <rdar://problem/35887722>. 14 15 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics-expected.txt: Removed. 16 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics.html: Removed. 17 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt: Removed. 18 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins.html: Removed. 19 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins-expected.txt: Removed. 20 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins.html: Removed. 21 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to-expected.txt: Removed. 22 * http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to.html: Removed. 23 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics-expected.txt: Removed. 24 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics.html: Removed. 25 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt: Removed. 26 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins.html: Removed. 27 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins-expected.txt: Removed. 28 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins.html: Removed. 29 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to-expected.txt: Removed. 30 * http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to.html: Removed. 31 * http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt: Removed. 32 * http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt: Removed. 33 * http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html: Removed. 34 * http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store.html: Removed. 35 * http/tests/loading/resourceLoadStatistics/grandfathering-expected.txt: Removed. 36 * http/tests/loading/resourceLoadStatistics/grandfathering.html: Removed. 37 * http/tests/loading/resourceLoadStatistics/non-prevalent-resource-with-user-interaction-expected.txt: Removed. 38 * http/tests/loading/resourceLoadStatistics/non-prevalent-resource-with-user-interaction.html: Removed. 39 * http/tests/loading/resourceLoadStatistics/non-prevalent-resource-without-user-interaction-expected.txt: Removed. 40 * http/tests/loading/resourceLoadStatistics/non-prevalent-resource-without-user-interaction.html: Removed. 41 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: Removed. 42 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html: Removed. 43 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-network-process-crash-expected.txt: Removed. 44 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-network-process-crash.html: Removed. 45 This test is not being added back under http/tests/resourceLoadStatistics/ since it doesn't seem to work. 46 Follow-up work for this is tracked in <rdar://problem/35887722>. 47 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: Removed. 48 * http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html: Removed. 49 * http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: Removed. 50 * http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html: Removed. 51 * http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-expected.txt: Removed. 52 * http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout-expected.txt: Removed. 53 * http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout.html: Removed. 54 * http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction.html: Removed. 55 * http/tests/loading/resourceLoadStatistics/prevalent-resource-without-user-interaction-expected.txt: Removed. 56 * http/tests/loading/resourceLoadStatistics/prevalent-resource-without-user-interaction.html: Removed. 57 * http/tests/loading/resourceLoadStatistics/prune-statistics-expected.txt: Removed. 58 * http/tests/loading/resourceLoadStatistics/prune-statistics.html: Removed. 59 * http/tests/loading/resourceLoadStatistics/telemetry-generation-expected.txt: Removed. 60 * http/tests/loading/resourceLoadStatistics/telemetry-generation.html: Removed. 61 * http/tests/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: Removed. 62 * http/tests/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html: Removed. 63 * http/tests/loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame-expected.txt: Removed. 64 * http/tests/loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html: Removed. 65 * http/tests/loading/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time-expected.txt: Removed. 66 * http/tests/loading/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html: Removed. 67 * http/tests/loading/resourceLoadStatistics/user-interaction-reported-after-website-data-removal-expected.txt: Removed. 68 * http/tests/loading/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html: Removed. 69 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics-expected.txt. 70 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics.html. 71 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt. 72 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins.html. 73 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins-expected.txt. 74 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins.html. 75 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to-expected.txt. 76 * http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to.html. 77 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics-expected.txt. 78 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics.html. 79 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins-expected.txt. 80 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins.html. 81 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins-expected.txt. 82 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins.html. 83 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to-expected.txt. 84 * http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to.html. 85 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-expected.txt. 86 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour-expected.txt. 87 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html. 88 * http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store.html. 89 * http/tests/resourceLoadStatistics/grandfathering-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/grandfathering-expected.txt. 90 * http/tests/resourceLoadStatistics/grandfathering.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/grandfathering.html. 91 * http/tests/resourceLoadStatistics/non-prevalent-resource-with-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/non-prevalent-resource-with-user-interaction-expected.txt. 92 * http/tests/resourceLoadStatistics/non-prevalent-resource-with-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/non-prevalent-resource-with-user-interaction.html. 93 * http/tests/resourceLoadStatistics/non-prevalent-resource-without-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/non-prevalent-resource-without-user-interaction-expected.txt. 94 * http/tests/resourceLoadStatistics/non-prevalent-resource-without-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/non-prevalent-resource-without-user-interaction.html. 95 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion-expected.txt. 96 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html. 97 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout-expected.txt. 98 * http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html. 99 * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt. 100 * http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html. 101 * http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-expected.txt. 102 * http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout-expected.txt. 103 * http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout.html. 104 * http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction.html. 105 * http/tests/resourceLoadStatistics/prevalent-resource-without-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-without-user-interaction-expected.txt. 106 * http/tests/resourceLoadStatistics/prevalent-resource-without-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prevalent-resource-without-user-interaction.html. 107 * http/tests/resourceLoadStatistics/prune-statistics-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prune-statistics-expected.txt. 108 * http/tests/resourceLoadStatistics/prune-statistics.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/prune-statistics.html. 109 * http/tests/resourceLoadStatistics/resources/get-cookies.php: 110 * http/tests/resourceLoadStatistics/telemetry-generation-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/telemetry-generation-expected.txt. 111 * http/tests/resourceLoadStatistics/telemetry-generation.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/telemetry-generation.html. 112 * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction-expected.txt. 113 * http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html. 114 * http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame-expected.txt. 115 * http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html. 116 * http/tests/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time-expected.txt. 117 * http/tests/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html. 118 * http/tests/resourceLoadStatistics/user-interaction-reported-after-website-data-removal-expected.txt: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-reported-after-website-data-removal-expected.txt. 119 * http/tests/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html: Copied from LayoutTests/http/tests/loading/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html. 120 * platform/ios/TestExpectations: 121 Removed 'loading' directory from path and made sure no tests are expected to fail. 122 Skipped tests that rely on UIHelper.activateAt() since it doesn't produce a user 123 gesture that ITP captures on iOS. 124 * platform/mac-wk2/TestExpectations: 125 Removed 'loading' directory from path and made sure no tests are expected to fail. 126 * platform/wk2/TestExpectations: 127 Removed 'loading' directory from path and made sure no tests are expected to fail. 128 1 129 2017-12-07 David Quesada <david_quesada@apple.com> 2 130 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/grandfathering.html
r225639 r225640 9 9 <script> 10 10 const firstPartyOrigin = "http://localhost:8000"; 11 const firstPartyBaseUrl = firstPartyOrigin + "/ loading/resourceLoadStatistics/resources";11 const firstPartyBaseUrl = firstPartyOrigin + "/resourceLoadStatistics/resources"; 12 12 const firstPartyCookieName = "firstPartyCookie"; 13 13 const thirdPartyCookieName = "thirdPartyCookie"; 14 14 const cookieValue = "value"; 15 15 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=" + cookieValue; 16 const returnUrl = firstPartyOrigin + "/ loading/resourceLoadStatistics/grandfathering.html";16 const returnUrl = firstPartyOrigin + "/resourceLoadStatistics/grandfathering.html"; 17 17 const thirdPartyOrigin = "http://127.0.0.1:8000"; 18 const thirdPartyBaseUrl = thirdPartyOrigin + "/ loading/resourceLoadStatistics/resources";18 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; 19 19 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=" + cookieValue; 20 20 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html
r225639 r225640 10 10 const partitionHost = "127.0.0.1:8000"; 11 11 const thirdPartyOrigin = "http://localhost:8000"; 12 const thirdPartyBaseUrl = thirdPartyOrigin + "/ loading/resourceLoadStatistics/resources";12 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; 13 13 const firstPartyCookieName = "firstPartyCookie"; 14 14 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 15 15 const thirdPartyCookieName = "thirdPartyCookie"; 16 16 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value"; 17 const fragmentWithReturnUrl = "http://" + partitionHost + "/ loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html";17 const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html"; 18 18 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName; 19 19 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html
r225639 r225640 10 10 const partitionHost = "127.0.0.1:8000"; 11 11 const thirdPartyOrigin = "http://localhost:8000"; 12 const thirdPartyBaseUrl = thirdPartyOrigin + "/ loading/resourceLoadStatistics/resources";12 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; 13 13 const firstPartyCookieName = "firstPartyCookie"; 14 14 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 15 15 const thirdPartyCookieName = "thirdPartyCookie"; 16 16 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value"; 17 const fragmentWithReturnUrl = "http://" + partitionHost + "/ loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html";17 const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html"; 18 18 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName; 19 19 … … 61 61 switch (document.location.hash) { 62 62 case "#step1": 63 console.log("Step 1");64 63 // Set first-party cookie for http://localhost:8000 65 64 document.location.href = thirdPartyBaseUrl + subPathToSetFirstPartyCookie + "#" + fragmentWithReturnUrl + "#step2"; 66 65 break; 67 66 case "#step2": 68 console.log("Step 2");69 67 // Check that the first-party cookie is not sent in partition 127.0.0.1:8000 70 68 document.location.hash = "step3"; … … 73 71 break; 74 72 case "#step3": 75 console.log("Step 3");76 73 // Set third-party cookie for http://localhost:8000 in partition 127.0.0.1:8000 77 74 document.location.hash = "step4"; … … 80 77 break; 81 78 case "#step4": 82 console.log("Step 4");83 79 // Check that only partitioned cookie get sent in partition 127.0.0.1:8000 84 80 document.location.hash = "step5"; … … 87 83 break; 88 84 case "#step5": 89 console.log("Step 5");90 85 // http://localhost:8000 now has user interaction, check that un-partitioned cookie is sent for third-party 91 86 document.location.hash = "step6"; … … 94 89 break; 95 90 case "#step6": 96 console.log("Step 6");97 91 // Cookie partitioning should be applied again 98 92 document.location.hash = "step7"; … … 101 95 break; 102 96 case "#step7": 103 console.log("Step 7");104 97 // http://localhost:8000 now has fresh user interaction, check that un-partitioned cookie is sent for third-party 105 98 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After second user interaction, should only receive un-partitioned cookie.", -
trunk/LayoutTests/http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html
r225639 r225640 10 10 const partitionHost = "127.0.0.1:8000"; 11 11 const thirdPartyOrigin = "http://localhost:8000"; 12 const thirdPartyBaseUrl = thirdPartyOrigin + "/ loading/resourceLoadStatistics/resources";12 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; 13 13 const firstPartyCookieName = "firstPartyCookie"; 14 14 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 15 15 const thirdPartyCookieName = "thirdPartyCookie"; 16 16 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value"; 17 const fragmentWithReturnUrl = "http://127.0.0.1:8000/ loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html";17 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html"; 18 18 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName; 19 19 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/prevalent-resource-without-user-interaction.html
r225639 r225640 10 10 const hostUnderTest = "127.0.0.1:8000"; 11 11 const statisticsUrl = "http://" + hostUnderTest + "/temp"; 12 13 function finishTest () { 14 if (document.cookie !== "") 15 testFailed("Cookie not deleted: " + document.cookie); 16 else 17 testPassed("Cookie deleted."); 18 testRunner.statisticsResetToConsistentState(); 19 internals.setResourceLoadStatisticsEnabled(false); 20 testRunner.notifyDone(); 21 } 22 12 23 function runTestRunnerTest() { 13 24 if (document.cookie !== "") … … 27 38 28 39 testRunner.installStatisticsDidModifyDataRecordsCallback(function() { 29 if (document.cookie !== "") 30 testFailed("Cookie not deleted: " + document.cookie); 31 else 32 testPassed("Cookie deleted."); 33 testRunner.statisticsResetToConsistentState(); 34 internals.setResourceLoadStatisticsEnabled(false); 35 testRunner.notifyDone(); 40 setTimeout("finishTest()", 1000); 36 41 }); 37 42 testRunner.setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval(false); -
trunk/LayoutTests/http/tests/resourceLoadStatistics/prune-statistics-expected.txt
r225639 r225640 1 main frame - didStartProvisionalLoadForFrame2 main frame - didCommitLoadForFrame3 main frame - didReceiveTitle: Test for Resource Load Statistics Pruning4 main frame - didFinishDocumentLoadForFrame5 main frame - didHandleOnloadEventsForFrame6 main frame - didFinishLoadForFrame7 1 Tests that statistics are pruned in the right order. 8 2 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/resources/get-cookies.php
r223565 r225640 21 21 <p id="output"></p> 22 22 <script> 23 document.getElementById("output").textContent = "Client-side document.cookie: " + document.cookie ;23 document.getElementById("output").textContent = "Client-side document.cookie: " + document.cookie.replace(/ /g,'').split(';').sort(); 24 24 </script> -
trunk/LayoutTests/http/tests/resourceLoadStatistics/telemetry-generation-expected.txt
r225639 r225640 1 main frame - didStartProvisionalLoadForFrame2 main frame - didCommitLoadForFrame3 main frame - didReceiveTitle: Test for Telemetry Generation4 main frame - didFinishDocumentLoadForFrame5 main frame - didHandleOnloadEventsForFrame6 main frame - didFinishLoadForFrame7 1 Tests that telemetry for prevalent resources is calculated correctly. 8 2 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html
r225639 r225640 11 11 const thirdPartyHostname = "localhost"; 12 12 const thirdPartyOrigin = "http://" + thirdPartyHostname + ":8000"; 13 const thirdPartyBaseUrl = thirdPartyOrigin + "/ loading/resourceLoadStatistics/resources";13 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; 14 14 const firstPartyCookieName = "firstPartyCookie"; 15 15 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 16 16 const thirdPartyCookieName = "thirdPartyCookie"; 17 17 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value"; 18 const fragmentWithReturnUrl = "http://127.0.0.1:8000/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html"; 19 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName; 18 const partitionedThirdPartyCookieName = "partitionedThirdPartyCookie"; 19 const subPathToSetPartitionedThirdPartyCookie = "/set-cookie.php?name=" + partitionedThirdPartyCookieName + "&value=value"; 20 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html"; 21 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName + "&name3=" + partitionedThirdPartyCookieName; 20 22 21 23 function setEnableFeature(enable) { … … 52 54 switch (document.location.hash) { 53 55 case "#step1": 56 // Set first-party cookie for localhost, effectively granting it access to cookies in a third-party context. 54 57 document.location.href = thirdPartyBaseUrl + subPathToSetFirstPartyCookie + "#" + fragmentWithReturnUrl + "#step2"; 55 58 break; 56 59 case "#step2": 60 // Set first-party cookie for localhost in a third-party context. 57 61 document.location.hash = "step3"; 58 openIframe(thirdPartyBaseUrl + subPathToSetThirdPartyCookie + "&message=Setting third party cookie.", runTest);62 openIframe(thirdPartyBaseUrl + subPathToSetThirdPartyCookie + "&message=Setting cookie as third party.", runTest); 59 63 break; 60 64 case "#step3": 65 // Check that both cookies as sent. 61 66 document.location.hash = "step4"; 62 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=Should receive no cookies.", runTest);67 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=Should receive both the cookie set in a first-party context and in a third-party context.", runTest); 63 68 break; 64 69 case "#step4": 70 // Flag localhost for partitioning and set a partitioned cookie. 65 71 document.location.hash = "step5"; 66 72 testRunner.statisticsSetShouldPartitionCookiesForHost(thirdPartyHostname, true); 67 openIframe(thirdPartyBaseUrl + subPathToSet ThirdPartyCookie + "&message=Setting partitioned, third party cookie.", runTest);73 openIframe(thirdPartyBaseUrl + subPathToSetPartitionedThirdPartyCookie + "&message=Setting partitioned, third party cookie.", runTest); 68 74 break; 69 75 case "#step5": 70 76 document.location.hash = "step6"; 71 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=Should receive partitioned, third party cookie.", setUserInteractionAndContinue);77 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=Should only receive partitioned, third party cookie.", setUserInteractionAndContinue); 72 78 break; 73 79 case "#step6": 74 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should receive non-partitioned , first party cookie.", finishTest);80 openIframe(thirdPartyBaseUrl + subPathToGetCookies + "&message=After user interaction, should receive non-partitioned cookies set in a first-party context and in a third-party context.", finishTest); 75 81 break; 76 82 } -
trunk/LayoutTests/http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame-expected.txt
r225639 r225640 1 main frame - didStartProvisionalLoadForFrame2 main frame - didCommitLoadForFrame3 frame "testFrame" - didStartProvisionalLoadForFrame4 main frame - didFinishDocumentLoadForFrame5 frame "testFrame" - didCommitLoadForFrame6 frame "testFrame" - didFinishDocumentLoadForFrame7 frame "testFrame" - didHandleOnloadEventsForFrame8 main frame - didHandleOnloadEventsForFrame9 frame "testFrame" - didFinishLoadForFrame10 main frame - didFinishLoadForFrame11 1 Tests that user interaction is always logged for the top document/frame. 12 2 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html
r225639 r225640 44 44 }; 45 45 </script> 46 <iframe id="testFrame" src="http://localhost:8000/ loading/resourceLoadStatistics/resources/dummy.html"></iframe>46 <iframe id="testFrame" src="http://localhost:8000/resourceLoadStatistics/resources/dummy.html"></iframe> 47 47 </body> 48 48 </html> -
trunk/LayoutTests/http/tests/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time-expected.txt
r225639 r225640 1 main frame - didStartProvisionalLoadForFrame2 main frame - didCommitLoadForFrame3 main frame - didFinishDocumentLoadForFrame4 main frame - didHandleOnloadEventsForFrame5 main frame - didFinishLoadForFrame6 1 Tests that user interaction is not reported repeatedly within a short period of time. 7 2 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/user-interaction-reported-after-website-data-removal-expected.txt
r225639 r225640 1 main frame - didStartProvisionalLoadForFrame2 main frame - didCommitLoadForFrame3 main frame - didFinishDocumentLoadForFrame4 main frame - didHandleOnloadEventsForFrame5 main frame - didFinishLoadForFrame6 1 Tests that user interaction is reported after history removal since that means all statistics have been reset. 7 2 -
trunk/LayoutTests/platform/ios/TestExpectations
r225601 r225640 2974 2974 fast/canvas/webgl/texImage2D-video-flipY-true.html [ Skip ] 2975 2975 2976 webkit.org/b/174120 http/tests/loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html [ Skip ] 2976 # Skipped on iOS since UIHelper.activateAt() doesn't produce a user gesture that ITP captures on iOS 2977 webkit.org/b/174120 http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html [ Skip ] 2978 http/tests/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html [ Skip ] 2979 http/tests/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html [ Skip ] 2977 2980 # Skipped in WK2 expectations because cookie partitioning is only available in macOS High Sierra and iOS 11. 2978 2981 http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html [ Pass ] 2979 2982 http/tests/resourceLoadStatistics/remove-partitioning-from-redirect.html [ Pass ] 2983 http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html [ Pass ] 2984 http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html [ Pass ] 2985 http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html [ Pass ] 2986 http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html [ Pass ] 2980 2987 2981 2988 webkit.org/b/175273 imported/w3c/web-platform-tests/html/browsers/windows/noreferrer-window-name.html [ Failure ] -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r225583 r225640 743 743 744 744 # Touch events are not available on open source bots, thus only tested on Mac. 745 http/tests/ loading/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html [ Pass ]746 http/tests/ loading/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html [ Pass ]747 http/tests/ loading/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html [ Pass ]745 http/tests/resourceLoadStatistics/user-interaction-in-cross-origin-sub-frame.html [ Pass ] 746 http/tests/resourceLoadStatistics/user-interaction-only-reported-once-within-short-period-of-time.html [ Pass ] 747 http/tests/resourceLoadStatistics/user-interaction-reported-after-website-data-removal.html [ Pass ] 748 748 http/tests/storageAccess/request-and-deny-storage-access-cross-origin-iframe.html [ Pass ] 749 749 http/tests/storageAccess/request-and-deny-storage-access-cross-origin-sandboxed-iframe.html [ Pass ] … … 797 797 [ HighSierra+ ] http/tests/ssl/applepay/ApplePaySessionV3.html [ Pass ] 798 798 # <rdar://problem/31634451> 799 [ HighSierra+ ] http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html [ Pass ] 800 [ HighSierra+ ] http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html [ Pass Failure ] 801 [ HighSierra+ ] http/tests/loading/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html [ Pass Failure ] 799 [ HighSierra+ ] http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html [ Pass ] 800 [ HighSierra+ ] http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html [ Pass ] 801 [ HighSierra+ ] http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html [ Pass ] 802 [ HighSierra+ ] http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html [ Pass Timeout ] 802 803 [ HighSierra+ ] http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html [ Pass ] 803 804 [ HighSierra+ ] http/tests/resourceLoadStatistics/remove-partitioning-from-redirect.html [ Pass ] … … 817 818 webkit.org/b/177687 http/tests/inspector/network/resource-sizes-memory-cache.html [ Pass Failure ] 818 819 819 webkit.org/b/178472 http/tests/resourceLoadStatistics/prevalent-resource-handled-keydown.html [ Pass Timeout]820 821 webkit.org/b/178536 [ HighSierra ] http/tests/ loading/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html [ Pass Timeout ]820 webkit.org/b/178472 http/tests/resourceLoadStatistics/prevalent-resource-handled-keydown.html [ Pass ] 821 822 webkit.org/b/178536 [ HighSierra ] http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store-one-hour.html [ Pass Timeout ] 822 823 823 824 webkit.org/b/176881 plugins/js-from-destroy.html [ Pass Failure ] … … 838 839 webkit.org/b/176078 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-onnegotiationneeded.html [ Pass Failure ] 839 840 840 webkit.org/b/179644 [ HighSierra Release ] http/tests/loading/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html [ Pass Failure ]841 842 841 webkit.org/b/179351 imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https.html [ Pass Failure ] 843 842 -
trunk/LayoutTests/platform/wk2/TestExpectations
r224718 r225640 672 672 673 673 # Resource Load Statistics are only supported in WebKit2. 674 http/tests/ loading/resourceLoadStatistics/non-prevalent-resource-with-user-interaction.html [ Pass Timeout]675 http/tests/ loading/resourceLoadStatistics/prevalent-resource-with-user-interaction.html [ Pass ]676 http/tests/ loading/resourceLoadStatistics/non-prevalent-resource-without-user-interaction.html [ Pass ]677 webkit.org/b/171785 http/tests/loading/resourceLoadStatistics/prevalent-resource-without-user-interaction.html [ Pass Failure]678 webkit.org/b/171756 http/tests/loading/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout.html [ Pass Failure]679 http/tests/ loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics.html [ Pass ]680 http/tests/ loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins.html [ Pass ]681 http/tests/ loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins.html [ Pass ]682 http/tests/ loading/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to.html [ Pass ]683 http/tests/ loading/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics.html [ Pass ]684 http/tests/ loading/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins.html [ Pass ]685 http/tests/ loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins.html [ Pass ]686 http/tests/ loading/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to.html [ Pass ]687 webkit.org/b/175263 http/tests/loading/resourceLoadStatistics/clear-in-memory-and-persistent-store.html [ Pass Timeout]688 webkit.org/b/172452 http/tests/loading/resourceLoadStatistics/grandfathering.html [ Pass Failure Timeout]689 webkit.org/b/173499 http/tests/loading/resourceLoadStatistics/telemetry-generation.html [ Pass Failure]690 http/tests/ loading/resourceLoadStatistics/prune-statistics.html [ Pass ]674 http/tests/resourceLoadStatistics/non-prevalent-resource-with-user-interaction.html [ Pass ] 675 http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction.html [ Pass ] 676 http/tests/resourceLoadStatistics/non-prevalent-resource-without-user-interaction.html [ Pass ] 677 http/tests/resourceLoadStatistics/prevalent-resource-without-user-interaction.html [ Pass ] 678 http/tests/resourceLoadStatistics/prevalent-resource-with-user-interaction-timeout.html [ Pass ] 679 http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-mixed-statistics.html [ Pass ] 680 http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-sub-frame-under-top-frame-origins.html [ Pass ] 681 http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-under-top-frame-origins.html [ Pass ] 682 http/tests/resourceLoadStatistics/classify-as-non-prevalent-based-on-subresource-unique-redirects-to.html [ Pass ] 683 http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-mixed-statistics.html [ Pass ] 684 http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-sub-frame-under-top-frame-origins.html [ Pass ] 685 http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-under-top-frame-origins.html [ Pass ] 686 http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-subresource-unique-redirects-to.html [ Pass ] 687 http/tests/resourceLoadStatistics/clear-in-memory-and-persistent-store.html [ Pass ] 688 http/tests/resourceLoadStatistics/grandfathering.html [ Pass ] 689 http/tests/resourceLoadStatistics/telemetry-generation.html [ Pass ] 690 http/tests/resourceLoadStatistics/prune-statistics.html [ Pass ] 691 691 http/tests/storageAccess/request-storage-access-top-frame.html [ Pass ] 692 692 http/tests/resourceLoadStatistics [ Pass ] … … 694 694 http/tests/resourceLoadStatistics/add-partitioning-to-redirect.html [ Skip ] 695 695 http/tests/resourceLoadStatistics/remove-partitioning-from-redirect.html [ Skip ] 696 696 http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-deletion.html [ Skip ] 697 http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html [ Skip ] 698 http/tests/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction.html [ Skip ] 699 http/tests/resourceLoadStatistics/third-party-cookie-with-and-without-user-interaction.html [ Skip ] 697 700 698 701 ### END OF (5) Progressions, expected successes that are expected failures in WebKit1.
Note: See TracChangeset
for help on using the changeset viewer.