mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
4ad659ac56
commit
1522f71329
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user