зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1634305 - use BEHAVIOR_REJECT_TRACKER to run test; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D73607
This commit is contained in:
Родитель
ad74e45a42
Коммит
7560eb3292
|
@ -68,6 +68,13 @@ function createTemporarySaveDirectory() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_task(async function() {
|
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) {
|
await BrowserTestUtils.withNewTab("about:blank", async function(browser) {
|
||||||
Services.obs.addObserver(checkRequest, "http-on-modify-request");
|
Services.obs.addObserver(checkRequest, "http-on-modify-request");
|
||||||
BrowserTestUtils.loadURI(
|
BrowserTestUtils.loadURI(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче