-
Notifications
You must be signed in to change notification settings - Fork 153
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
Is window.onbeforeunload impelementation acceptable? #1056
Comments
Hi @andrei0x309, This is a very interesting proposal! Also your implementation looks pretty good. Unfortunately, we do not want to allow for a fully dynamic Function due to the security concerns it comes along with. |
Hi @samouri. Thanks for your feedback, I'll see if I can do it another way. Maybe you can leave this issue open for a few weeks to see if I can do something. |
I changed the code now the |
@andrei0x309, I'm out of office for the next 3 weeks. I'll be able to review your updates when I'm back |
I made a branch ( https://github.com/andrei0x309/worker-dom/tree/window-on-before-unload ) with
window.onbeforeunload
implementation and demo, I think it's useful, from what I see onbeforeunload has 3 useful applications:The only problem I see is that some developers might abuse this feature( since it transfers a function on the main thread), so that's why I am asking if such a feature is acceptable to know if I should write some tests and submit a PR.
Thanks.
The text was updated successfully, but these errors were encountered: