New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 814142 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

PWA : redirect in popup is done in parent

Reported by cymo...@gmail.com, Feb 21 2018

Issue description

Steps 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:
 
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Labels: Needs-Feedback Triaged-Mobile
@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!!

Comment 3 by cymo...@gmail.com, 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,

Project Member

Comment 4 by sheriffbot@chromium.org, Feb 27 2018

Labels: -Needs-Feedback
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

Comment 5 by cymo...@gmail.com, Mar 14 2018

May someone can confirmed (or not) this issue ?
thanks
Cc: ranj@chromium.org
CC'ing Owner from the issue 771418 for further inputs on this issue.

Thanks!!
Components: Mobile>WebAPKs
@ranj: Is there any update on this issue?

Thanks!!

Sign in to add a comment