PWA : redirect in popup is done in parent
Reported by
cymo...@gmail.com,
Feb 21 2018
|
|||||
Issue descriptionSteps to reproduce the problem: - Have a PWA that open a popup window to an external url - in Popup Http Redirect to an url ( in parent scope ) - Popup is closed and url opened in parent Not sure it's a bug or a wanted behavior or even related to : https://bugs.chromium.org/p/chromium/issues/detail?id=771418 I use this to handle CAS authentication. From PWA i launch a popup to the authentication service with a redirect url. this URL is a handler in the same scope of PWA. This handler return some HTML. In main PWA i check popup content regularly to see if authentication has been done, then i close it. What is the expected behavior? Redirect should be done in popup. It was the case before or a workaround is welcome. What went wrong? this unload PWA application as this redirect handler is in service worker whitelist and Application are not able to watch popup "state" Did this work before? N/A Does this work in other browsers? N/A Chrome version: 64.0.3282.167 Channel: stable OS Version: All Flash Version:
,
Feb 22 2018
@cymonos: Thanks for the report!! Could you please help us with a sample URL where you're seeing this issue and if possible attach a screencast for triaging of the issue? Thanks!!
,
Feb 27 2018
Ok, i've build a sample PWA with this auth behavior here : https://pwa-auth-bug.eskan.fr In web mode, once launched you can see your authentication status as "Non authenticated" and a login button. When you click on the login button, a popup is opened to a fake authentication service (you can enter whatever you want) auth service redirect to an validation handler : https://pwa-auth-bug.eskan.fr/_cas/xxxx then popup is closed by parent and authentication is done. On android phone install Application as a PWA, try to login, a popup is opened to the fake authentication service and then submit login closed the popup and redirect is done in parent. Urls calls order : - in parent : https://pwa-auth-bug.eskan.fr/ -> then click login - in popup : https://cas.eskan.fr/login?service=https://pwa-auth-bug.eskan.fr/_cas/5t00n89mtln -> then click login - in popup : https://pwa-auth-bug.eskan.fr/_cas/5t00n89mtln?ticket=ST-81410241-1bd7-11e8-a681-5377405fcf14 fake auth service url : https://cas.eskan.fr/login you can logout with : https://cas.eskan.fr/logout auth service is base on https://github.com/apereo/cas Let me know if this helps,
,
Feb 27 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 14 2018
May someone can confirmed (or not) this issue ? thanks
,
Apr 5 2018
CC'ing Owner from the issue 771418 for further inputs on this issue. Thanks!!
,
Apr 27 2018
,
May 30 2018
@ranj: Is there any update on this issue? Thanks!! |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by pnangunoori@chromium.org
, Feb 22 2018