Bug 1654556 - Update webconsole tests to not produce cookie same-siteness rejection warnings and thus not fail, r=nhnt11

Depends on D84555

Differential Revision: https://phabricator.services.mozilla.com/D84706
This commit is contained in:
Honza Bambas 2020-07-23 14:50:19 +00:00
Родитель b984b89632
Коммит 78fa1a4fc3
5 изменённых файлов: 11 добавлений и 10 удалений

Просмотреть файл

@ -11,11 +11,11 @@ const TEST_PATH = "browser/devtools/client/webconsole/test/browser/";
const TEST_FILE = TEST_PATH + "test-trackingprotection-securityerrors.html";
const TEST_FILE_THIRD_PARTY_ONLY =
TEST_PATH + "test-trackingprotection-securityerrors-thirdpartyonly.html";
const TEST_URI = "http://example.com/" + TEST_FILE;
const TEST_URI = "https://example.com/" + TEST_FILE;
const TEST_URI_THIRD_PARTY_ONLY =
"http://example.com/" + TEST_FILE_THIRD_PARTY_ONLY;
const TRACKER_URL = "http://tracking.example.org/";
const THIRD_PARTY_URL = "http://example.org/";
"https://example.com/" + TEST_FILE_THIRD_PARTY_ONLY;
const TRACKER_URL = "https://tracking.example.org/";
const THIRD_PARTY_URL = "https://example.org/";
const BLOCKED_URL = `\u201c${TRACKER_URL +
TEST_PATH +
"cookieSetter.html"}\u201d`;
@ -62,7 +62,7 @@ add_task(async function testContentBlockingMessage() {
const message = await waitFor(() =>
findMessage(
hud,
`The resource at \u201chttp://tracking.example.com/\u201d was blocked because ` +
`The resource at \u201chttps://tracking.example.com/\u201d was blocked because ` +
`content blocking is enabled`
)
);

Просмотреть файл

@ -12,7 +12,8 @@ const TEST_PATH = "browser/devtools/client/webconsole/test/browser/";
const TEST_FILE = TEST_PATH + "test-warning-groups.html";
const TEST_URI = "http://example.com/" + TEST_FILE;
const PARTITIONED_URL = "http://example.org/" + TEST_PATH + "cookieSetter.html";
const PARTITIONED_URL =
"https://example.org/" + TEST_PATH + "cookieSetter.html";
const STORAGE_ISOLATION_GROUP_LABEL =
`Partitioned cookie or storage access was provided to “<URL>” because it is ` +

Просмотреть файл

@ -2,6 +2,6 @@
<html>
<script>
"use strict";
document.cookie = "name=value;samesite=lax";
document.cookie = "name=value;SameSite=None;Secure";
</script>
</html>

Просмотреть файл

@ -7,6 +7,6 @@
<meta charset="utf8">
</head>
<body>
<iframe src="http://example.org/browser/devtools/client/webconsole/test/browser/cookieSetter.html"></iframe>
<iframe src="https://example.org/browser/devtools/client/webconsole/test/browser/cookieSetter.html"></iframe>
</body>
</html>

Просмотреть файл

@ -7,7 +7,7 @@
<meta charset="utf8">
</head>
<body>
<iframe src="http://tracking.example.org/browser/devtools/client/webconsole/test/browser/cookieSetter.html"></iframe>
<iframe src="http://tracking.example.com/"></iframe>
<iframe src="https://tracking.example.org/browser/devtools/client/webconsole/test/browser/cookieSetter.html"></iframe>
<iframe src="https://tracking.example.com/"></iframe>
</body>
</html>