[CRX] Stop intercepting ftp in Chrome 59+
The extension cannot easily fetch data from ftp:-resources any more in Chrome 59+. So don't intercept such URLs.
This commit is contained in:
parent
b67f117b56
commit
df516c0a52
@ -153,10 +153,16 @@ chrome.webRequest.onBeforeRequest.addListener(
|
|||||||
urls: [
|
urls: [
|
||||||
'file://*/*.pdf',
|
'file://*/*.pdf',
|
||||||
'file://*/*.PDF',
|
'file://*/*.PDF',
|
||||||
// Note: Chrome 59 has disabled ftp resource loading by default:
|
...(
|
||||||
// https://www.chromestatus.com/feature/5709390967472128
|
// Duck-typing: MediaError.prototype.message was added in Chrome 59.
|
||||||
'ftp://*/*.pdf',
|
MediaError.prototype.hasOwnProperty('message') ? [] :
|
||||||
'ftp://*/*.PDF',
|
[
|
||||||
|
// Note: Chrome 59 has disabled ftp resource loading by default:
|
||||||
|
// https://www.chromestatus.com/feature/5709390967472128
|
||||||
|
'ftp://*/*.pdf',
|
||||||
|
'ftp://*/*.PDF',
|
||||||
|
]
|
||||||
|
),
|
||||||
],
|
],
|
||||||
types: ['main_frame', 'sub_frame'],
|
types: ['main_frame', 'sub_frame'],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user