Code Monkey home page Code Monkey logo

Comments (9)

gorhill avatar gorhill commented on May 29, 2024

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?

from umatrix.

my-password-is-password avatar my-password-is-password commented on May 29, 2024

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) 

Launching Chrome and going straight to the console log.
consoleerror2

from umatrix.

gorhill avatar gorhill commented on May 29, 2024

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.

from umatrix.

my-password-is-password avatar my-password-is-password commented on May 29, 2024

It was a request to https://www.google.com/searchdomaincheck?format=url&type=chrome.
umbreakpoint
Should it be µm.scopeFromUrl(....) instead of this? When I changed it the error went away.

from umatrix.

gorhill avatar gorhill commented on May 29, 2024

Should it be µm.scopeFromUrl(....) instead of this? When I changed it the error went away

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.

from umatrix.

gorhill avatar gorhill commented on May 29, 2024

I had referer-removal disabled, hence I couldn't repro the bug.

from umatrix.

my-password-is-password avatar my-password-is-password commented on May 29, 2024

Saw 2 more errors in the console. I have every checkbox in Privacy and Hosts Files checked.

umrepofileerror

umrepoobsoleteerror

Using µMatrix 0.8.0.0-alpha.6.

from umatrix.

gorhill avatar gorhill commented on May 29, 2024

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.

from umatrix.

gorhill avatar gorhill commented on May 29, 2024

Ah yes, I miss the entry in messages.json for the first one.

from umatrix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.