diff --git a/platform/firefox/vapi-webrequest.js b/platform/firefox/vapi-webrequest.js index d0c95b9ec..6c82c3fa0 100644 --- a/platform/firefox/vapi-webrequest.js +++ b/platform/firefox/vapi-webrequest.js @@ -197,14 +197,16 @@ this.cnames.set(hn, ''); return; } - return browser.dns.resolve(hn, [ 'canonical_name' ]).then(rec => { - const cname = this.recordCanonicalName(hn, rec); - if ( cname === '' ) { return; } - return this.processCanonicalName(cname, details); - }).catch(( ) => { - this.cnames.set(hn, ''); - }).then(( ) => { - }); + return browser.dns.resolve(hn, [ 'canonical_name' ]).then( + rec => { + const cname = this.recordCanonicalName(hn, rec); + if ( cname === '' ) { return; } + return this.processCanonicalName(cname, details); + }, + ( ) => { + this.cnames.set(hn, ''); + } + ); } suspendOneRequest(details) { const pending = {