Bug 1634305 - use BEHAVIOR_REJECT_TRACKER to run test; r=baku

Differential Revision: https://phabricator.services.mozilla.com/D73607
This commit is contained in:
Liang-Heng Chen 2020-05-04 19:04:23 +00:00
Родитель ad74e45a42
Коммит 7560eb3292
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -68,6 +68,13 @@ function createTemporarySaveDirectory() {
}
add_task(async function() {
// Use nsICookieService.BEHAVIOR_REJECT_TRACKER to avoid cookie partitioning.
// In this test case, if the cookie is partitioned, there will be no cookie
// nsICookieServicebeing sent to compare.
await SpecialPowers.pushPrefEnv({
set: [["network.cookie.cookieBehavior", 4]],
});
await BrowserTestUtils.withNewTab("about:blank", async function(browser) {
Services.obs.addObserver(checkRequest, "http-on-modify-request");
BrowserTestUtils.loadURI(