Git Product home page Git Product logo

Comments (2)

Jelmerro avatar Jelmerro commented on June 6, 2024

This is a very weird bug, I am able to reproduce it so that's at least positive, but I have yet to find the cause for this. A plain Electron project does not have this issue, so there must be some kind of config or code interfering with setting the listener. As such, I tried to run the project without any preloads, meaning that there is no custom Vieb code running in the page, yet I still had this issue. So that indicates to me that this must be something to do with a setting of sorts. I'll let you know when i know more.

from vieb.

Jelmerro avatar Jelmerro commented on June 6, 2024

It seems like it is similar to this issue: electron/electron#31018, in that changing the contextIsolation value changes the behavior of this issue. If I enable contextIsolation it starts working again, regardless of other Vieb code being loaded or not, when disabled it even breaks this in a plain Electron test project (with webview enabled and sandbox disabled to allow requiring modules) even without a preload. This means that the problem lies with Electron. I'll see if I can bring this back to a smaller test case, as the Electron team refuses to look into this if there is a dependency on big projects such as Next.js or React. One of those projects must be using something that is implemented differently in Electron when contextIsolation is toggled, but I have yet to discover what that is.

from vieb.

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.