| Index: chrome/ext/background.js |
| =================================================================== |
| --- a/chrome/ext/background.js |
| +++ b/chrome/ext/background.js |
| @@ -319,10 +319,10 @@ |
| if (frame) |
| { |
| - // Chrome 38 and 39 mistakenly reports requests of type 'object' |
| - // (e.g. requests initiated by Flash) with the type 'other'. |
| + // Since Chrome 38 requests of type 'object' (e.g. requests |
| + // initiated by Flash) are mistakenly reported with the type 'other'. |
| // https://code.google.com/p/chromium/issues/detail?id=410382 |
| - if (requestType == "other" && / Chrome\/3[8-9]\b/.test(navigator.userAgent)) |
| + if (requestType == "other" && parseInt(navigator.userAgent.match(/\bChrome\/(\d+)/)[1], 10) >= 38) |
|
Wladimir Palant
2014/11/25 16:45:51
This will error out if navigator.userAgent.match()
Sebastian Noack
2014/11/25 17:04:04
Well, in that case parseInt() will return NaN, and
|
| requestType = "object"; |
| if (!ext.webRequest.onBeforeRequest._dispatch(details.url, requestType, new Page({id: details.tabId}), frame)) |