Bug 1607823 - [remote] Use ContentTask.spawn instead of SpecialPowers.spawn in browser_setCacheDisabled.js. r=remote-protocol-reviewers,maja_zf

Depends on D60386

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henrik Skupin 2020-01-20 19:38:03 +00:00
parent db33b7ce39
commit 4b34baa214

View file

@ -37,10 +37,12 @@ add_task(async function cacheDisabled({ client }) {
}); });
function checkLoadFlags(flags, url) { function checkLoadFlags(flags, url) {
return SpecialPowers.spawn( return ContentTask.spawn(
gBrowser.selectedBrowser, gBrowser.selectedBrowser,
[flags, url], { flags, url },
async (flags, url) => { async (options = {}) => {
const { flags, url } = options;
// an nsIWebProgressListener that checks all requests made by the docShell // an nsIWebProgressListener that checks all requests made by the docShell
// have the flags we expect. // have the flags we expect.
var RequestWatcher = { var RequestWatcher = {