Fix redirect detection of data: and about: URLs. Fix #293.

This commit is contained in:
FelisCatus 2015-02-18 19:53:56 +08:00
parent 6f2763bff3
commit 9b18d3194a

View File

@ -74,7 +74,9 @@ module.exports = class WebRequestMonitor
callback('ongoing', req)
_requestRedirected: (req) ->
if req.url.indexOf('data:') == 0
url = req.redirectUrl
return unless url
if url.indexOf('data:') == 0 || url.indexOf('about:') == 0
@_requestDone(req)
_requestError: (req) ->