WICG / web-app-launch

Web App Launch Handler
Other
75 stars 28 forks source link

Should launch events be triggered by `window.open`? #4

Closed fallaciousreasoning closed 5 years ago

fallaciousreasoning commented 5 years ago

Intuitively, it feels like they should be (e.g. by a site adding window.open('yourapp.com') to its button's click handler).

However, it may be difficult to reconcile asynchronous launch events with the synchronous window.open API. Hopefully we can find some way around this issue, or it will somewhat limit the usefulness of launch events.

raymeskhoury commented 5 years ago

One way forward here would be to open the popup/tab and if it triggers a launch event, to then close it again. We might not have a ton of choice because the navigation in the window will only happen after window.open has finished

fallaciousreasoning commented 5 years ago

Interesting. I think I'd be comfortable with a V0 of launch events that doesn't work at all with window.open, with the caveat that we'll think about it more in the future.

raymeskhoury commented 5 years ago

I agree, we might just want to think through it a bit.

raymeskhoury commented 5 years ago

Notes added to the explainer.