зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1540117 - Part 4: Fix browser_webconsole_trackingprotection_errors.js by ensuring that the test page does set a cookie. r=fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D43652 --HG-- extra : histedit_source : 296fb0ecbd7b1540bba93ea1d8490629a04fa91a
This commit is contained in:
Родитель
e5b0947fe7
Коммит
73345dc559
|
@ -6,6 +6,7 @@ support-files =
|
|||
code_bundle_invalidmap.js.map
|
||||
code_bundle_nosource.js
|
||||
code_bundle_nosource.js.map
|
||||
cookieSetter.html
|
||||
head.js
|
||||
sjs_cors-test-server.sjs
|
||||
sjs_slow-response-test-server.sjs
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
"use strict";
|
||||
requestLongerTimeout(2);
|
||||
|
||||
const TEST_FILE =
|
||||
"browser/devtools/client/webconsole/test/browser/" +
|
||||
"test-trackingprotection-securityerrors.html";
|
||||
const TEST_PATH = "browser/devtools/client/webconsole/test/browser/";
|
||||
const TEST_FILE = TEST_PATH + "test-trackingprotection-securityerrors.html";
|
||||
const TEST_URI = "http://example.com/" + TEST_FILE;
|
||||
const TRACKER_URL = "http://tracking.example.org/";
|
||||
const BLOCKED_URL = `\u201c${TRACKER_URL}\u201d`;
|
||||
const BLOCKED_URL = `\u201c${TRACKER_URL +
|
||||
TEST_PATH +
|
||||
"cookieSetter.html"}\u201d`;
|
||||
|
||||
const COOKIE_BEHAVIOR_PREF = "network.cookie.cookieBehavior";
|
||||
const COOKIE_BEHAVIORS = {
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<script>
|
||||
"use strict";
|
||||
document.cookie = "name=value";
|
||||
</script>
|
||||
</html>
|
|
@ -7,7 +7,7 @@
|
|||
<meta charset="utf8">
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="http://tracking.example.org/"></iframe>
|
||||
<iframe src="http://tracking.example.org/browser/devtools/client/webconsole/test/browser/cookieSetter.html"></iframe>
|
||||
<iframe src="http://tracking.example.com/"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче