Skip to content
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

Purpose of onvalidationstatuschange event #19

Open
simon-friedberger opened this issue May 15, 2024 · 1 comment
Open

Purpose of onvalidationstatuschange event #19

simon-friedberger opened this issue May 15, 2024 · 1 comment

Comments

@simon-friedberger
Copy link

What is the purpose of the "onvalidationstatuschange" event? It seems the purpose of the validation is to prevent clickjacking and it's not clear why the site should be informed about it.

If the goal is to help with debugging of invalid states this should be handled locally in the devtools and not exposed to content scripts.

@andypaicu
Copy link
Collaborator

We have received feedback from site authors where the permission flow is critical that they wish to be able to have a fallback behavior in case the permission element becomes unexpectedly invalid. While for local debugging dev tools would be sufficient, they can't test every possible configuration so there might be some edge cases where somehow the element becomes invalid and they will be stuck with a dead element and a bad UX.

This allows them to have a safe fallback plan and replace the permission element on-the-fly if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants