Changeset 252210 in webkit
- Timestamp:
- Nov 7, 2019 3:16:39 PM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r252205 r252210 1 2019-11-07 Kate Cheney <katherine_cheney@apple.com> 2 3 Many resourceLoadStatistics tests and storageAccess tests using the ITP 4 Database redirect to the corresponding memory store test after setting 5 a cookie 6 https://bugs.webkit.org/show_bug.cgi?id=203958 7 <rdar://problem/56984114> 8 9 Reviewed by John Wilander. 10 11 This patch fixes incorrect redirects in some ITP database store tests. 12 They should redirect back to themselves as opposed to corresponding 13 memory store tests to be sure they are testing the correct 14 functionality. 15 16 * http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html: 17 * http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html: 18 * http/tests/resourceLoadStatistics/cookie-deletion-database.html: 19 * http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html: 20 * http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html: 21 * http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html: 22 * http/tests/resourceLoadStatistics/grandfathering-database.html: 23 * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html: 24 * http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html: 25 * http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html: 26 * http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html: 27 * http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html: 28 * http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html: 29 * http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html: 30 * http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html: 31 * http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html: 32 * http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html: 33 1 34 2019-11-06 Ryosuke Niwa <rniwa@webkit.org> 2 35 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html
r250393 r252210 19 19 const partitionedCookieName = "partitionedCookie"; 20 20 const subPathToSetPartitionedCookie = "/set-cookie.php?name=" + partitionedCookieName + "&value=value"; 21 const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/add-blocking-to-redirect .html";21 const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/add-blocking-to-redirect-database.html"; 22 22 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + partitionedCookieName; 23 23 const redirectChainUrl = "http://" + partitionHost + resourcePath + "/redirect.php?redirectTo=" + thirdPartyBaseUrl + subPathToGetCookies; -
trunk/LayoutTests/http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html
r250393 r252210 15 15 const firstPartyCookieName = "firstPartyCookie"; 16 16 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 17 const returnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/blocking-in-web-worker-script-import .html";17 const returnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html"; 18 18 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName; 19 19 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion-database.html
r250393 r252210 18 18 const thirdPartyCookieName = "thirdPartyCookie"; 19 19 const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value"; 20 const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/cookie-deletion .html";20 const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/cookie-deletion-database.html"; 21 21 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName; 22 22 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html
r250393 r252210 14 14 const firstPartyCookieName = "firstPartyCookie"; 15 15 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 16 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/cookies-with-and-without-user-interaction .html";16 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html"; 17 17 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName; 18 18 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html
r250393 r252210 28 28 if (testRunner.isStatisticsPrevalentResource("http://localhost:8000")) 29 29 testFailed("Localhost was classified as prevalent resource before the test starts."); 30 document.location.href = "http://localhost:8000/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations .html";30 document.location.href = "http://localhost:8000/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html"; 31 31 }); 32 32 break; -
trunk/LayoutTests/http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html
r250393 r252210 25 25 26 26 function navigateSameOriginToAddQuery() { 27 document.location.href = prevalentResourceOrigin + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource .html?link=query";27 document.location.href = prevalentResourceOrigin + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html?link=query"; 28 28 } 29 29 30 30 function navigateCrossOrigin() { 31 document.location.href = destinationOrigin + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource .html";31 document.location.href = destinationOrigin + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html"; 32 32 } 33 33 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/grandfathering-database.html
r250393 r252210 15 15 const cookieValue = "value"; 16 16 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=" + cookieValue; 17 const returnUrl = firstPartyOrigin + "/resourceLoadStatistics/grandfathering .html";17 const returnUrl = firstPartyOrigin + "/resourceLoadStatistics/grandfathering-database.html"; 18 18 const thirdPartyOrigin = "http://127.0.0.1:8000"; 19 19 const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources"; -
trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html
r250393 r252210 14 14 const firstPartyCookieName = "firstPartyCookie"; 15 15 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 16 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context .html";16 const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html"; 17 17 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName; 18 18 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html
r250393 r252210 19 19 const firstPartyCookieName = "firstPartyCookie"; 20 20 const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value"; 21 const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/ping-to-prevalent-resource .html";21 const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/ping-to-prevalent-resource-database.html"; 22 22 const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName; 23 23 -
trunk/LayoutTests/http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html
r251663 r252210 55 55 if (document.location.hash !== "#cookieSet") { 56 56 setEnableFeature(true, function() { 57 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking .html#cookieSet";57 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html#cookieSet"; 58 58 }); 59 59 } else { -
trunk/LayoutTests/http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html
r251663 r252210 55 55 if (document.location.hash !== "#cookieSet") { 56 56 setEnableFeature(true, function() { 57 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking .html#cookieSet";57 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html#cookieSet"; 58 58 }); 59 59 } else { -
trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html
r251016 r252210 28 28 setEnableFeature(false, function() { 29 29 testRunner.setUseITPDatabase(true); 30 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/has-storage-access-true-if-third-party-has-cookies .html#firstPartyCookieSet";30 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html#firstPartyCookieSet"; 31 31 }); 32 32 } else { -
trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html
r251016 r252210 27 27 testRunner.setUseITPDatabase(true); 28 28 if (document.location.hash !== "#firstPartyCookieSet") { 29 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/has-storage-access-true-if-third-party-has-cookies .html#firstPartyCookieSet";29 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html#firstPartyCookieSet"; 30 30 } else { 31 31 let iframeElement = document.createElement("iframe"); -
trunk/LayoutTests/http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html
r251663 r252210 43 43 44 44 // Set a cookie for the third-party and continue. 45 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie .html#step1";45 document.location.href = thirdPartyUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html#step1"; 46 46 }); 47 47 break; -
trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html
r251016 r252210 92 92 if (document.location.hash !== "#firstPartyCookieSet" && document.location.hash !== "#elementActivated") { 93 93 setEnableFeature(true, function() { 94 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-detach-should-not-have-access .html#firstPartyCookieSet";94 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html#firstPartyCookieSet"; 95 95 }); 96 96 } else { -
trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html
r251016 r252210 65 65 if (document.location.hash !== "#firstPartyCookieSet") { 66 66 setEnableFeature(true, function() { 67 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access .html#firstPartyCookieSet";67 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html#firstPartyCookieSet"; 68 68 }); 69 69 } else { -
trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html
r251016 r252210 65 65 if (document.location.hash !== "#firstPartyCookieSet") { 66 66 setEnableFeature(true, function() { 67 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access .html#firstPartyCookieSet";67 document.location.href = statisticsUrl + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#http://127.0.0.1:8000/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html#firstPartyCookieSet"; 68 68 }); 69 69 } else {
Note: See TracChangeset
for help on using the changeset viewer.