Giter Club home page Giter Club logo

Comments (6)

bfgeek avatar bfgeek commented on July 19, 2024

One really large issue here, is that this suddenly creates a communication channel back to the main thread. This API will be abused to check if for example something has been painted (except that if an exception was thrown -- it wasn't painted).

Is there a good way to mitigate this, and still provide error reporting?

from css-houdini-drafts.

padenot avatar padenot commented on July 19, 2024

There need to be communication channels back to the main thread regardless, is that not planned ?

from css-houdini-drafts.

bfgeek avatar bfgeek commented on July 19, 2024

For style/layout/paint in particular if you expose a communication channel from isolatedWorker -> mainJavascript you have exposed additional information which isn't currently exposed to developers.

For example for custom paint, you can now determine which items the UA has actually* painted. Is this a bad thing? Not sure.

At TPAC I want to talk to a bunch of people about this issue, and see if its ok or not.

Other specs, I.e. audio worker could extend IsolatedWorkerGlobalScope to incorporate a postMessage interface.
I.e.

AudioGlobalScope : IsolatedWorkerGlobalScope {
  void postMessage(Object message);
  void registerAudioNode(DOMString name, Function nodeCtor);
};

[*] for some definition of actually.

from css-houdini-drafts.

padenot avatar padenot commented on July 19, 2024

Right. Sorry I was not aware of this particularity of style/layout/paint, we totally can implement that down the inheritance tree, hopefully having an interface that share the very common task of sending back info to the main thread.

from css-houdini-drafts.

bfgeek avatar bfgeek commented on July 19, 2024

No worries. I'm not sure if it's a real issue yet, but my gut feeling is that it probably is.

With feedback from other vendors we'll be able to decide if back communication channel is able to happen or low-bandwidth back communication channel.

from css-houdini-drafts.

bfgeek avatar bfgeek commented on July 19, 2024

So I'm going to close this as it doesn't seem needed at the moment - audio have set up their communication channel. We may want an out-of-band channel for the houdini worklets (something similar to report-uri for CSP) at some point - so we'll revisit once needed.

At the moment errors will just be logged to the console.

from css-houdini-drafts.

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.