Skip to content

Purpose of onvalidationstatuschange event #19

Open

Description

@simon-friedberger

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.

Activity

  1. andypaicu commented on Jun 19, 2024

    @andypaicu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions