-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow websites to disable default action handlers #338
Comments
@steimelchrome, can you describe some examples where the default handler does not make sense? |
Sure:
|
Discussed this at TPAC. The consensus was that this was worth fixing but we definitely want UAs to be able to still implement a default handler if they want to. Here are a few options:
Thoughts? |
@steimelchrome, that is a great summary.
|
A potential edge case where disabling default action handlers might be useful, https://jsfiddle.net/xkn9u8wh/ on Safari macOS:
This happened to me on codepen.io which sets the metadata (probably on the top level frame), while capture happens on an iframe. The workaround is to register an empty |
The spec allows for user agents to implement default handlers for actions. However, sometimes the default handler does not make sense for the website's use case. The typical "solution" for this is for the website to implement an empty action handler for that action so that the default handler won't be run. However, this means that the user agent thinks that the website handles that action and therefore still shows e.g. a UI button for that action that ends up doing nothing.
I think there would be value in having some sort of API where the website can specify that it does not want a default handler even though it doesn't have a handler of its own.
The text was updated successfully, but these errors were encountered: