Bug 1493682 - Part 2: Fix the image cache tests r=baku

The first line which this patch is fixing was clobbering the object
that the tests were setting up, so all these tests were testing was
the blocking callback of the default runTest() path before this
patch.

Depends on D6747

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2018-09-25 05:40:14 +00:00
parent 4ad659ac56
commit 1522f71329

View File

@ -46,7 +46,7 @@ this.AntiTracking = {
let runExtraTests = true;
let options = {};
if (typeof callbackNonTracking == "object") {
callbackNonTracking = callbackNonTracking.callback;
options.callback = callbackNonTracking.callback;
runExtraTests = callbackNonTracking.runExtraTests;
if ("cookieBehavior" in callbackNonTracking) {
options.cookieBehavior = callbackNonTracking.cookieBehavior;
@ -77,6 +77,7 @@ this.AntiTracking = {
} else {
options.blockingByAllowList = false;
}
callbackNonTracking = options.callback;
}
// Phase 1: Here we want to test that a 3rd party context is not blocked if pref is off.