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

Issue 801940 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocking:
issue 740783



Sign in to add a comment

desktop-pwas: Installed sites with manifest that open in windows shouldn't always be considered PWAs

Project Member Reported by ortuno@chromium.org, Jan 15 2018

Issue description

What steps will reproduce the problem?
(1) Turn on chrome://flags/#enable-desktop-pwas
(2) Go to a website with a manifest but no service worker.
(3) Open the three dot menu and click Add to Shelf/Desktop/etc.
(4) Open chrome:apps/ or the app launcher on Chrome OS
(5) Right click the app and select Open in Window
(6) Go to google and search for the website
(7) Click a link to the website

What is the expected result?
Tab should navigate

What happens instead?
A new app window opens

paraphrasing mgiuca:
The author has not asked for link capturing and there's a chance it's just an ordinary web page so we could be breaking the site.
 

Comment 1 by mgiuca@chromium.org, Mar 26 2018

Owner: ortuno@chromium.org
Step (1) now needs chrome://flags/#enable-desktop-pwas-link-capturing. Not going to be turned on in M67 so punting.

Comment 2 by ortuno@chromium.org, Mar 27 2018

Labels: M-67
Status: Assigned (was: Available)
Summary: desktop-pwas: Installed sites with manifest that open in windows shouldn't always be considered PWAs (was: desktop-pwas: Apps with manifests that open in windows shouldn't capture links)
Adding this to M-67. Link capturing is a side-effect of the fact that we consider all sites with a manifest to be PWAs.

Comment 3 by mgiuca@chromium.org, Mar 27 2018

Labels: -Pri-3 Pri-2
Bumping to P2 because it may break if we make this change later. (Since we will be adding properties to already-installed bookmark apps in 67 and then removing those properties later.)
Labels: Pri-3
Pushing back to P3 (this is less urgent than the other P2s).
Labels: -M-67 M-68
67 has branched, moving bugs over to 68.
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/36603cc6e3d2d788c133ba709701affa2072e22d

commit 36603cc6e3d2d788c133ba709701affa2072e22d
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Apr 13 03:43:53 2018

desktop-pwas: Only add a scope for installable sites i.e. PWAs

Also changes Installable to an enum class to avoid accidental
implicit casts to bools.

Bug:  801940 
Change-Id: I186d878b338375e339b3b5eb24fa5f2abd6c975a
Reviewed-on: https://chromium-review.googlesource.com/981835
Reviewed-by: Matt Giuca <mgiuca@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550502}
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper.cc
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper.h
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper_unittest.cc
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/favicon_downloader.h

Comment 7 by mgiuca@chromium.org, Apr 13 2018

Labels: -M-68 M-67
Status: Fixed (was: Assigned)

Comment 8 by mgiuca@chromium.org, Apr 16 2018

This didn't make it into branch.

CL is +145,-165 so might be difficult to merge. Gio, what do you think? I don't fully understand why this is necessary without link capturing (despite #3). Can you explain?

Comment 9 by ortuno@chromium.org, Apr 16 2018

Labels: -Pri-3 Pri-2
PWAs differ from regular Bookmark Apps in the following user-visible ways:

1. There is a Context Menu item to open links in PWA windows for in-scope links.
2. Clients.openWindow() opens a new window rather than a tab
3. Out-of-scope navigations open new tab
4. Popups don't inherit the apps theme
5. Mixed content is blocked

On the code side, many of our methods include "PWA". If we don't merge this, those methods will be slightly less accurate.

The fact that this is not part of the launch might cause confusion when we stop doing this in the next release.

The patch is big, but the actual changes to release code are small: a rename of an enum and the addition of an if statement. I think we should try to merge.
OK that makes sense. Number 1, 2 and 3 are significant changes that will break expectations when they get reverted in 68. So I am in favour of merging this.

Canary isn't updated yet. Will wait.
Project Member

Comment 11 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/36603cc6e3d2d788c133ba709701affa2072e22d

commit 36603cc6e3d2d788c133ba709701affa2072e22d
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Apr 13 03:43:53 2018

desktop-pwas: Only add a scope for installable sites i.e. PWAs

Also changes Installable to an enum class to avoid accidental
implicit casts to bools.

Bug:  801940 
Change-Id: I186d878b338375e339b3b5eb24fa5f2abd6c975a
Reviewed-on: https://chromium-review.googlesource.com/981835
Reviewed-by: Matt Giuca <mgiuca@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550502}
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper.cc
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper.h
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/bookmark_app_helper_unittest.cc
[modify] https://crrev.com/36603cc6e3d2d788c133ba709701affa2072e22d/chrome/browser/extensions/favicon_downloader.h

Labels: -merge-merged-testbranch Merge-Request-67
Status: Verified (was: Fixed)
Verified on 68.0.3397.0
Project Member

Comment 13 by sheriffbot@chromium.org, Apr 20 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Please merge your change to M67 branch 3396 ASAP so we can pick it up for next M67 Dev/Beta Release. Thank you.
Project Member

Comment 15 by bugdroid1@chromium.org, Apr 20 2018

Labels: -merge-approved-67 merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29

commit bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Apr 20 23:34:04 2018

desktop-pwas: Only add a scope for installable sites i.e. PWAs

Also changes Installable to an enum class to avoid accidental
implicit casts to bools.

Bug:  801940 
Change-Id: I186d878b338375e339b3b5eb24fa5f2abd6c975a
Reviewed-on: https://chromium-review.googlesource.com/981835
Reviewed-by: Matt Giuca <mgiuca@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#550502}(cherry picked from commit 36603cc6e3d2d788c133ba709701affa2072e22d)
Reviewed-on: https://chromium-review.googlesource.com/1023130
Cr-Commit-Position: refs/branch-heads/3396@{#186}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29/chrome/browser/extensions/bookmark_app_helper.cc
[modify] https://crrev.com/bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29/chrome/browser/extensions/bookmark_app_helper.h
[modify] https://crrev.com/bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29/chrome/browser/extensions/bookmark_app_helper_unittest.cc
[modify] https://crrev.com/bf2359a6711e8c5fdeaafcc29bbdc1d623ec6e29/chrome/browser/extensions/favicon_downloader.h

Sign in to add a comment