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

Issue 2636103002: [WebAPKs] Show minibar when WebAPK navigates outside scope specified in Web Manifest (Closed)

Created:
3 years, 11 months ago by pkotwicz
Modified:
3 years, 11 months ago
Reviewers:
dominickn, Maria
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebAPKs] Show minibar when WebAPK navigates outside scope specified in Web Manifest This CL changes the behavior when a user taps a link in the WebAPK which navigates out of the scope specified by the Web Manifest. Currently, the navigation creates a new Chrome tab. The new behavior is to stay within the WebAPK but to show a header with the page origin. The header is shown whenever the WebAPK is on a page outside of the Web Manifest scope. In the near future we will launch a Chrome custom tab https://crbug.com/624236 when a WebAPK navigates outside of the Web Manifest scope. Unfortunately this is not possible for Chrome 57. BUG=680167 TEST=ExternalNavigationHandlerTest.*, WebappVisibilityTest.* Review-Url: https://codereview.chromium.org/2636103002 Cr-Commit-Position: refs/heads/master@{#444619} Committed: https://chromium.googlesource.com/chromium/src/+/b9096f1be81426d51cefb1c2d839f5df9ae92192

Patch Set 1 #

Total comments: 8

Patch Set 2 : Merge branch 'master' into minibar #

Total comments: 3

Patch Set 3 : Merge branch 'master' into minibar #

Total comments: 1

Patch Set 4 : Merge branch 'master' into minibar #

Patch Set 5 : Merge branch 'master' into minibar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -110 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationHandler.java View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java View 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBrowserControlsDelegate.java View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappBrowserControlsDelegate.java View 1 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDelegateFactory.java View 3 chunks +1 line, -50 lines 0 comments Download
M chrome/android/java_sources.gni View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/externalnav/ExternalNavigationHandlerTest.java View 6 chunks +11 lines, -16 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java View 1 3 chunks +73 lines, -38 lines 0 comments Download
M chrome/browser/android/url_utilities.cc View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
pkotwicz
Dominick, can you please take a look? This is somewhat high priority because this is ...
3 years, 11 months ago (2017-01-17 02:03:19 UTC) #3
dominickn
On 2017/01/17 02:03:19, pkotwicz wrote: > Dominick, can you please take a look? This is ...
3 years, 11 months ago (2017-01-17 02:51:14 UTC) #4
dominickn
Mostly minor comments, the main one being that some tests got lost. Once you've addressed ...
3 years, 11 months ago (2017-01-17 05:23:55 UTC) #5
pkotwicz
Dominick, can you please take another look? I think that I have addressed all of ...
3 years, 11 months ago (2017-01-17 22:41:40 UTC) #8
dominickn
lgtm, thanks!
3 years, 11 months ago (2017-01-17 22:49:07 UTC) #9
pkotwicz
mariakhomenko@ for OWNERS for the code outside of webapps/
3 years, 11 months ago (2017-01-18 01:26:01 UTC) #11
Maria
https://codereview.chromium.org/2636103002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java (right): https://codereview.chromium.org/2636103002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java#newcode156 chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java:156: if (url.startsWith(scopeUrl)) return true; Slightly concerned about the safety ...
3 years, 11 months ago (2017-01-18 04:07:24 UTC) #12
pkotwicz
Maria, can you please take another look? https://codereview.chromium.org/2636103002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java (right): https://codereview.chromium.org/2636103002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java#newcode156 chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java:156: if (url.startsWith(scopeUrl)) ...
3 years, 11 months ago (2017-01-18 16:52:21 UTC) #13
Maria
lgtm https://codereview.chromium.org/2636103002/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java (right): https://codereview.chromium.org/2636103002/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java#newcode155 chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java:155: assertFalse(UrlUtilities.isUrlWithinScope("http://awesome.example.com", "http://example.com")); long line?
3 years, 11 months ago (2017-01-18 17:11:08 UTC) #14
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/2636103002/80001
3 years, 11 months ago (2017-01-18 19:56:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/215428)
3 years, 11 months ago (2017-01-18 21:49:05 UTC) #19
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/2636103002/100001
3 years, 11 months ago (2017-01-19 02:16:38 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 03:10:16 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b9096f1be81426d51cefb1c2d839...

Powered by Google App Engine
This is Rietveld 408576698