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

WebDriver extension for Custom Handlers #8251

Closed
javifernandez opened this issue Sep 1, 2022 · 3 comments · Fixed by #8267
Closed

WebDriver extension for Custom Handlers #8251

javifernandez opened this issue Sep 1, 2022 · 3 comments · Fixed by #8267
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: custom protocols

Comments

@javifernandez
Copy link
Contributor

The HTML spec states in the Custom Handler section that user agents may launch a prompt dialog during the registration of a custom protocol handler:

A user agent could, for instance, prompt the user and offer the user the opportunity to add the site to a shortlist of handlers, or make the handlers their default, or cancel the request. User agents could also silently collect the information, providing it only when relevant to the user.

Currently, there are only manual tests for the registerProtocolHandler method:

https://github.com/web-platform-tests/wpt/blob/master/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-handler-fragment-nosw-manual.https.html

The main problem is that Chrome, and also Firefox, launch a prompt dialog to ask the user for confirmation to register the protocol handler.

We could provide testing automation if we had a WebDriver extension command that would autogrant or autoreject the registration request.

We could get some inspiration from the Set SPC Transaction Mode extension command, which is already implemented in ChromeDriver (Not sure about Marionette, though).

@domenic
Copy link
Member

domenic commented Sep 2, 2022

I'm pretty confused by why you're filing this issue on the HTML Standard. The HTML Standard does not define WebDriver commands; I assume that's something the WebDriver spec does?

@javifernandez
Copy link
Contributor Author

I'm pretty confused by why you're filing this issue on the HTML Standard. The HTML Standard does not define WebDriver commands; I assume that's something the WebDriver spec does?

My idea would be to add a new subsection in the Custom Handlers section of the HTML Standard spec, as it's done in other specs, like Permission, Secure Payment Confirmation.

As far as I understand, extension commands are usually defined in the features' spec where they are needed.

@domenic
Copy link
Member

domenic commented Sep 6, 2022

Oh, fascinating. Sure, if this is something that implementers are interested in, then I guess it sounds like HTML is the right place for it...

@domenic domenic added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: custom protocols labels Sep 6, 2022
domenic pushed a commit that referenced this issue Jan 11, 2023
noamr pushed a commit to noamr/html that referenced this issue Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: custom protocols
Development

Successfully merging a pull request may close this issue.

2 participants