Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Issue 2145833003: Open the notification URL (not the web app start_url) when deep-linking into standalone mode. (Closed)

Created:
4 years, 5 months ago by dominickn
Modified:
4 years, 5 months ago
Reviewers:
gone
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Open the notification URL (not the web app start_url) when deep-linking into standalone mode. When deep-linking into a standalone web app from a notification, the app's start_url is always opened and the URL that the notification wants to open is ignored. This CL fixes the bug by injecting the notification URL in place of the web app URL when deep-linking. We also force a reload of the web app if it is already running to ensure that the desired url is loaded. Replacing the URL in this manner is correct as the notification URL is guaranteed to live within the web app's scope for notification deep-linking to trigger. BUG=627791 Committed: https://crrev.com/e10048ec434da0f56f6b2c5579bdbee2fa06654d Cr-Commit-Position: refs/heads/master@{#405638}

Patch Set 1 #

Patch Set 2 : Add flag to clear existing task #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java View 1 4 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
dominickn
PTAL, thanks!
4 years, 5 months ago (2016-07-13 13:38:32 UTC) #5
gone
lgtm
4 years, 5 months ago (2016-07-13 16:53:52 UTC) #8
dominickn
Upon further testing, ps1 works when the web app isn't running. But when a web ...
4 years, 5 months ago (2016-07-14 07:04:54 UTC) #12
gone
Yikes... I can see why this would be necessary, but I really would have expected ...
4 years, 5 months ago (2016-07-14 17:16:28 UTC) #15
dominickn
On 2016/07/14 17:16:28, dfalcantara wrote: > Yikes... I can see why this would be necessary, ...
4 years, 5 months ago (2016-07-14 23:48:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145833003/20001
4 years, 5 months ago (2016-07-14 23:49:03 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-14 23:54:21 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 23:54:59 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 23:57:55 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e10048ec434da0f56f6b2c5579bdbee2fa06654d
Cr-Commit-Position: refs/heads/master@{#405638}

Powered by Google App Engine
This is Rietveld 408576698