mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Don't count timeoutAbort in obsolete main_frame as errors.
This commit is contained in:
parent
7b18737876
commit
b650ab31b6
@ -149,6 +149,7 @@ module.exports = class WebRequestMonitor
|
||||
}
|
||||
|
||||
setTabRequestInfo: (status, req) ->
|
||||
console.log(req.tabId, status, req.type, req.url)
|
||||
info = @tabInfo[req.tabId]
|
||||
if info
|
||||
if status == 'start' and req.type == 'main_frame'
|
||||
@ -159,6 +160,7 @@ module.exports = class WebRequestMonitor
|
||||
if (oldStatus = info.requestStatus[req.requestId])
|
||||
info[@eventCategory[oldStatus] + 'Count']--
|
||||
else
|
||||
return if status == 'timeoutAbort'
|
||||
info.requestCount++
|
||||
info.requestStatus[req.requestId] = status
|
||||
info[@eventCategory[status] + 'Count']++
|
||||
|
@ -816,7 +816,7 @@ class Options
|
||||
profile = OmegaPac.Profiles.byName(@_currentProfileName, @_options)
|
||||
if not profile?.rules?
|
||||
return Promise.reject new Error(
|
||||
"Cannot add condition to Profile #{@profile.name} (@{profile.type})")
|
||||
"Cannot add condition to Profile #{@profile.name} (#{profile.type})")
|
||||
target = OmegaPac.Profiles.byName(profileName, @_options)
|
||||
if not target?
|
||||
return Promise.reject new ProfileNotExistError(profileName)
|
||||
|
Loading…
Reference in New Issue
Block a user