-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior in browser extensions #38
Comments
Thanks for raising this issue! Firstly, the So the question at hand is what is the performance of From your description it sounds like the UI contexts provide APIs available in webpages and the background contexts provide APIs usually available in webworkers. The Lastly, do you have an easy way of testing browser extensions in CI? It would be a good addition to our test matrix and confirm everything is working as expected. We currently run tests in Node.js, JSDOM, and Chrome/Firefox webpages and webworkers. |
Yes, it does.
This is what I don't know, the background context might end up using this approach.
Correct, the background context has differences from webworkers, I'm yet to investigate details about this.
Yes, it is doable with Selenium, I'm involved in a private extension where we use that. |
Thanks for the response!
Fantastic, do you think you could make a PR setting this up? That would be the best way to test this, and make sure we don't have any regressions for this environment in the future. Our test suite actually includes a test to verify one of the higher-performance polyfills is used. Line 43 in 7fbe516
|
I do remember the test, unfortunately I don't have too much free time right now but I can get someone from my team to add it, don't expected it too soon. |
I maintain a plugin and a template to create browser extensions with Scala.js.
I'm interested to push the macrotask-executor to these repos but I still don't understand the differences.
For example, in a browser extension, there are different contexts (like different applications composing the browser extension), some of them being:
The UI contexts behave just like any normal web page, hence, the macrotask-executor should be useful, on the other hand, I wonder if the macrotask executor is useful for the background context.
Thanks.
The text was updated successfully, but these errors were encountered: