Bug 1540117 - Part 5: Fix browser_webconsole_warning_group_content_blocking.js too by ensuring that the test image does set a cookie. r=fix CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com//D43671

--HG--
extra : histedit_source : c0cb5631e5195fe73d19dc36813efc3bf6284f25
This commit is contained in:
Ehsan Akhgari 2019-08-27 23:39:59 +03:00
Родитель fbcbb8bd8b
Коммит 4ba1487439
3 изменённых файлов: 14 добавлений и 0 удалений

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

@ -73,6 +73,7 @@ support-files =
test-iframe-wrong-hud-iframe.html
test-iframe-wrong-hud.html
test-image.png
test-image.png^headers^
test-ineffective-iframe-sandbox-warning-inner.html
test-ineffective-iframe-sandbox-warning-nested1.html
test-ineffective-iframe-sandbox-warning-nested2.html

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

@ -42,6 +42,16 @@ registerCleanupFunction(function() {
pushPref("privacy.trackingprotection.enabled", true);
pushPref("devtools.webconsole.groupWarningMessages", true);
async function cleanUp() {
await new Promise(resolve => {
Services.clearData.deleteData(Ci.nsIClearDataService.CLEAR_ALL, value =>
resolve()
);
});
}
add_task(cleanUp);
add_task(async function testContentBlockingMessage() {
const { hud, tab, win } = await openNewWindowAndConsole(
"http://tracking.example.org/" + TEST_FILE
@ -155,6 +165,8 @@ add_task(async function testCookieBlockedByPermissionMessage() {
Services.perms.removeFromPrincipal(p, "cookie");
});
add_task(cleanUp);
/**
* Test that storage access blocked messages are grouped by emitting 2 messages.
*

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

@ -0,0 +1 @@
Set-Cookie: name=value