WICG / web-app-launch

Web App Launch Handler
Other
75 stars 28 forks source link

The focus-existing (and navigate-existing) do not actually focus the window #84

Open mgiuca opened 1 year ago

mgiuca commented 1 year ago

In the algorithm to prepare a web app launch client, we should explicitly say to focus the window. (This is not an implementation detail left to the user agent; it's something that other specs, notably window.focus(), can do.)

We should cargo-cult this off the window.focus() algorithm which looks like it primarily invokes an algorithm called focusing steps but there may be details from window.focus() that we want to use as well. (I'd like to briefly understand focusing steps before blindly calling it.)

alancutter commented 1 year ago

For now I've cargo culted off the notification API that more handwavily just says to bring it in focus: https://notifications.spec.whatwg.org/#activating-a-notification