- From: Pieterjan <notifications@github.com>
- Date: Mon, 26 Jul 2021 00:08:50 -0700
- To: w3c/manifest <manifest@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 July 2021 07:09:02 UTC
Many web apps have a login. This login page is often opened in a new window, in order not to interrupt the already running web application. However when a web app is installed as PWA, `window.open()` will always open the link in the PWA. The usual flow in single-page applications is: - Subscribe to the `window.onmessage` event - Use `window.open()` to navigate to the URL hosting the login page (for eg. Microsoft OAuth) - Host an empty html page with only javascript, using the messaging api to notify the `opener`. - Let the OAuth flow use this page as redirect_url. But since `window.open()` always opens the PWA, the external-login flow is interrupted. The bottom line is: a developer MUST BE allowed to have window.open open the url in a new window and prevent it from opening the PWA. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/manifest/issues/989
Received on Monday, 26 July 2021 07:09:02 UTC