-
Notifications
You must be signed in to change notification settings - Fork 472
Errors in the console log #10
Comments
I just unzipped the package and installed and there is no error. It is as if there is a source with a javascript syntax error. Can you scroll up the console and show me the first lines instead? |
The first line is Error in event handler for webRequest.onBeforeSendHeaders/2: undefined is not a function Stack trace: TypeError: undefined is not a function at µMatrix.webRequest.onBeforeSendHeadersHandler (chrome-extension://egcodlnmejbejgffgmjihcknjmlmnobb/js/traffic.js:475:62) at subEventCallback (extensions::webRequestInternal:88:32) at EventImpl.dispatchToListener (extensions::event_bindings:397:22) at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:93:26) at EventImpl.dispatch_ (extensions::event_bindings:379:35) at dispatchArgs (extensions::event_bindings:247:26) at dispatchEvent (extensions::event_bindings:256:7) |
Ok, I removed code to hold back the request handler, I need to hold it back until all is installed. I will just do it differently his time, it was kind of clunky before. I suppose you had something net requesting while you enabled uMatrix. |
Thanks for spotting this, good code review. I don't actually need to call this function anymore as in HTTPSB, the page hostname is always used now. |
I had referer-removal disabled, hence I couldn't repro the bug. |
First one can happen in normal circumstance when behind-the-scene matrix blocks the requests used by uMatrix to fetch remote resource, or if there is no network connection. Second one is yet another thing I missed to revise when I imported code from uBlock. |
Ah yes, I miss the entry in messages.json for the first one. |
When I installed uMatrix in a dev build of Chromium theres was an error for "collect errors".
So I checked stable chrome and the errors were also there if you inspect
background.html
.(traffic.js:475:62)
(updater.js:48)
Using µMatrix 0.8.0.0-alpha.4
The text was updated successfully, but these errors were encountered: