Diff
Modified: trunk/LayoutTests/ChangeLog (252209 => 252210)
--- trunk/LayoutTests/ChangeLog 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/ChangeLog 2019-11-07 23:16:39 UTC (rev 252210)
@@ -1,3 +1,36 @@
+2019-11-07 Kate Cheney <[email protected]>
+
+ Many resourceLoadStatistics tests and storageAccess tests using the ITP
+ Database redirect to the corresponding memory store test after setting
+ a cookie
+ https://bugs.webkit.org/show_bug.cgi?id=203958
+ <rdar://problem/56984114>
+
+ Reviewed by John Wilander.
+
+ This patch fixes incorrect redirects in some ITP database store tests.
+ They should redirect back to themselves as opposed to corresponding
+ memory store tests to be sure they are testing the correct
+ functionality.
+
+ * http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html:
+ * http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html:
+ * http/tests/resourceLoadStatistics/cookie-deletion-database.html:
+ * http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html:
+ * http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html:
+ * http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html:
+ * http/tests/resourceLoadStatistics/grandfathering-database.html:
+ * http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html:
+ * http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html:
+ * http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html:
+ * http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html:
+ * http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html:
+ * http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html:
+ * http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html:
+ * http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html:
+ * http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html:
+ * http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html:
+
2019-11-06 Ryosuke Niwa <[email protected]>
Integrate scroll event into HTML5 event loop
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/add-blocking-to-redirect-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -18,7 +18,7 @@
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
const partitionedCookieName = "partitionedCookie";
const subPathToSetPartitionedCookie = "/set-cookie.php?name=" + partitionedCookieName + "&value=value";
- const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/add-blocking-to-redirect.html";
+ const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/add-blocking-to-redirect-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + partitionedCookieName;
const redirectChainUrl = "http://" + partitionHost + resourcePath + "/redirect.php?redirectTo=" + thirdPartyBaseUrl + subPathToGetCookies;
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -14,7 +14,7 @@
const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources";
const firstPartyCookieName = "firstPartyCookie";
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
- const returnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/blocking-in-web-worker-script-import.html";
+ const returnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/blocking-in-web-worker-script-import-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName;
function openIframe(url, onLoadHandler) {
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/cookie-deletion-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -17,7 +17,7 @@
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
const thirdPartyCookieName = "thirdPartyCookie";
const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=value";
- const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/cookie-deletion.html";
+ const fragmentWithReturnUrl = "http://" + partitionHost + "/resourceLoadStatistics/cookie-deletion-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName + "&name2=" + thirdPartyCookieName;
function finishTest() {
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -13,7 +13,7 @@
const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources";
const firstPartyCookieName = "firstPartyCookie";
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
- const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/cookies-with-and-without-user-interaction.html";
+ const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/cookies-with-and-without-user-interaction-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName;
function finishTest() {
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -27,7 +27,7 @@
setEnableFeature(true, function() {
if (testRunner.isStatisticsPrevalentResource("http://localhost:8000"))
testFailed("Localhost was classified as prevalent resource before the test starts.");
- document.location.href = ""
+ document.location.href = ""
});
break;
case "localhost:8000":
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -24,11 +24,11 @@
}
function navigateSameOriginToAddQuery() {
- document.location.href = "" + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource.html?link=query";
+ document.location.href = "" + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html?link=query";
}
function navigateCrossOrigin() {
- document.location.href = "" + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource.html";
+ document.location.href = "" + "/resourceLoadStatistics/downgraded-referrer-for-navigation-with-link-query-from-prevalent-resource-database.html";
}
const destinationOrigin = "http://localhost:8000";
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/grandfathering-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/grandfathering-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/grandfathering-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -14,7 +14,7 @@
const thirdPartyCookieName = "thirdPartyCookie";
const cookieValue = "value";
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=" + cookieValue;
- const returnUrl = firstPartyOrigin + "/resourceLoadStatistics/grandfathering.html";
+ const returnUrl = firstPartyOrigin + "/resourceLoadStatistics/grandfathering-database.html";
const thirdPartyOrigin = "http://127.0.0.1:8000";
const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources";
const subPathToSetThirdPartyCookie = "/set-cookie.php?name=" + thirdPartyCookieName + "&value=" + cookieValue;
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -13,7 +13,7 @@
const thirdPartyBaseUrl = thirdPartyOrigin + "/resourceLoadStatistics/resources";
const firstPartyCookieName = "firstPartyCookie";
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
- const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context.html";
+ const fragmentWithReturnUrl = "http://127.0.0.1:8000/resourceLoadStatistics/non-prevalent-resources-can-access-cookies-in-a-third-party-context-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName;
function finishTest() {
Modified: trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/resourceLoadStatistics/ping-to-prevalent-resource-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -18,7 +18,7 @@
const thirdPartyBaseUrl = thirdPartyOrigin + resourcePath;
const firstPartyCookieName = "firstPartyCookie";
const subPathToSetFirstPartyCookie = "/set-cookie.php?name=" + firstPartyCookieName + "&value=value";
- const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/ping-to-prevalent-resource.html";
+ const returnUrl = "http://" + partitionHost + "/resourceLoadStatistics/ping-to-prevalent-resource-database.html";
const subPathToGetCookies = "/get-cookies.php?name1=" + firstPartyCookieName;
function activateElement(elementID, callback) {
Modified: trunk/LayoutTests/http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -54,7 +54,7 @@
function runTest() {
if (document.location.hash !== "#cookieSet") {
setEnableFeature(true, function() {
- document.location.href = "" + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/deny-due-to-no-interaction-under-general-third-party-cookie-blocking.html#cookieSet";
+ document.location.href = "" + "/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";
});
} else {
testRunner.setStatisticsShouldBlockThirdPartyCookies(true, function() {
Modified: trunk/LayoutTests/http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -54,7 +54,7 @@
function runTest() {
if (document.location.hash !== "#cookieSet") {
setEnableFeature(true, function() {
- document.location.href = "" + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking.html#cookieSet";
+ document.location.href = "" + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/grant-with-prompt-under-general-third-party-cookie-blocking-database.html#cookieSet";
});
} else {
testRunner.setStatisticsShouldBlockThirdPartyCookies(true, function() {
Modified: trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -27,7 +27,7 @@
if (document.location.hash !== "#firstPartyCookieSet") {
setEnableFeature(false, function() {
testRunner.setUseITPDatabase(true);
- document.location.href = "" + "/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";
+ document.location.href = "" + "/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";
});
} else {
let iframeElement = document.createElement("iframe");
Modified: trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -26,7 +26,7 @@
function runTest() {
testRunner.setUseITPDatabase(true);
if (document.location.hash !== "#firstPartyCookieSet") {
- document.location.href = "" + "/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";
+ document.location.href = "" + "/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";
} else {
let iframeElement = document.createElement("iframe");
iframeElement.id = "TheIframeThatRequestsStorageAccess";
Modified: trunk/LayoutTests/http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -42,7 +42,7 @@
document.location.hash = "step1";
// Set a cookie for the third-party and continue.
- document.location.href = "" + "/storageAccess/resources/set-cookie.php?name=firstPartyCookie&value=value#" + firstPartyUrl + "/storageAccess/has-storage-access-under-general-third-party-cookie-blocking-with-cookie.html#step1";
+ document.location.href = "" + "/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";
});
break;
Modified: trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -91,7 +91,7 @@
testRunner.setUseITPDatabase(true);
if (document.location.hash !== "#firstPartyCookieSet" && document.location.hash !== "#elementActivated") {
setEnableFeature(true, function() {
- document.location.href = "" + "/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";
+ document.location.href = "" + "/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";
});
} else {
testRunner.setStatisticsPrevalentResource(statisticsUrl, true, function() {
Modified: trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -64,7 +64,7 @@
testRunner.setUseITPDatabase(true);
if (document.location.hash !== "#firstPartyCookieSet") {
setEnableFeature(true, function() {
- document.location.href = "" + "/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";
+ document.location.href = "" + "/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";
});
} else {
testRunner.setStatisticsPrevalentResource(statisticsUrl, true, function() {
Modified: trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html (252209 => 252210)
--- trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html 2019-11-07 23:16:07 UTC (rev 252209)
+++ trunk/LayoutTests/http/tests/storageAccess/request-and-grant-access-then-navigate-same-site-should-have-access-database.html 2019-11-07 23:16:39 UTC (rev 252210)
@@ -64,7 +64,7 @@
testRunner.setUseITPDatabase(true);
if (document.location.hash !== "#firstPartyCookieSet") {
setEnableFeature(true, function() {
- document.location.href = "" + "/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";
+ document.location.href = "" + "/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";
});
} else {
testRunner.setStatisticsPrevalentResource(statisticsUrl, true, function() {