forked from mirrors/gecko-dev
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:
parent
db33b7ce39
commit
4b34baa214
1 changed files with 5 additions and 3 deletions
|
|
@ -37,10 +37,12 @@ add_task(async function cacheDisabled({ client }) {
|
|||
});
|
||||
|
||||
function checkLoadFlags(flags, url) {
|
||||
return SpecialPowers.spawn(
|
||||
return ContentTask.spawn(
|
||||
gBrowser.selectedBrowser,
|
||||
[flags, url],
|
||||
async (flags, url) => {
|
||||
{ flags, url },
|
||||
async (options = {}) => {
|
||||
const { flags, url } = options;
|
||||
|
||||
// an nsIWebProgressListener that checks all requests made by the docShell
|
||||
// have the flags we expect.
|
||||
var RequestWatcher = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue