-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Event listener on navigate away #18982
Comments
Web API wise, I think adding a
And then change the rust side to call the method instead of accessing it directly - it's called here: Line 187 in 41e373c
My suggestion would be to replace the field with Let me know if you need any help, and check out our contribution guidelines & discord for assistance! (we'd also really appreciate a test if you do implement it <3) |
Sounds good @Dinnerbone – I'll check this out tomorrow when I finish exams. |
Hey @Dinnerbone – I was hoping you could check out my changes... I wasn't sure how to test them or set up testing but if you could point me in the right direction there, I can get that setup. |
Hey, I'm trying to better understand the use case; for confirming leaving the site entirely, usually pages (say, Gmail) don't do anything fancy or customizable, I think they just use As for blocking specific domains, do you have some specific use case for this, or is it "just in case"? Finally, for talking about any code, I'd suggest putting it in a draft pull request, that'd make it much easier to read and keep track of. |
Describe the feature
I know that you can disable navigation or add a confirmation box with the config options in Ruffle, but it would be nice if you could add an event listener to receive the target URL and then handle it yourself. This would allow sites to not allow links to certain domains, and also add confirmation pages like on Twitter: "You are leaving Twitter and going to [domain], are you sure?"
I can implement this
@Herschel If you point me in the right direction as to where the code would be that covers this, I can implement the feature. This is my first time contributing to Ruffle, but I have significant experience with OSS.
The text was updated successfully, but these errors were encountered: