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

Issue 907352 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Awkward PWA uninstallation interaction with beforeunload confirmation

Project Member Reported by alancutter@chromium.org, Nov 21

Issue description

Chrome Version: 70
OS: Linux, Windows, Chrome OS

What steps will reproduce the problem?
(1) Visit: https://uncovered-hound.glitch.me/
(2) Menu > Install Uncovered Hound...
(3) Click on page and wait around a bit to register user engagement.
(4) Menu > Uninstall Uncovered Hound...
(5) Confirm uninstall

What is the expected result?

Not sure...

What happens instead?

The page has a beforeunload event handler that prompts when you leave the page.
This triggers after the uninstallation. It's a bit strange to get two prompts "Uninstall app?" followed by "Leave app?".
Also our paint code doesn't reliably repaint the window frame so it can be partially painted with the uninstalled default frame colour in the second prompt.

 
Screenshot from 2018-11-21 14-48-24.png
8.6 KB View Download
Status: Available (was: Untriaged)
We could pop the page back into the browser on uninstall instead of closing the window. This would make uninstalling a much more clean reversal of installation.

Current behaviour:
1. Visit site
2. Install site
3. Site tab pops out into its own window
4. Uninstall site
5. Window closes (and potentially Chrome as well if it was the only tab open)

Alternative behaviour.
1. Visit site
2. Install site
3. Site tab pops out into its own window
4. Uninstall site
5. Site pops back into the browser tab, same state as initial state.

Sign in to add a comment