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

Issue 2248293002: Do not install WebAPKs with web manifests with invalid URL components (Closed)

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

Description

Do not install WebAPKs with web manifests with invalid URL components This CL disallows generating WebAPKs for pages with Web Manifests with passwords and user name URL components. The WebAPK server caches web manifests for WebAPKs that it has previously generated. We do not want to store usernames and passwords on the WebAPK server. BUG=622465 Committed: https://crrev.com/6981e68516d341354372d174c557fb85653adcd7 Cr-Commit-Position: refs/heads/master@{#414907}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Merge branch 'webapk_updater_non_installable' into webapk_installable_checker #

Total comments: 6

Patch Set 3 : Merge branch 'webapk_updater_non_installable' into webapk_installable_checker #

Total comments: 2

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

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

Patch Set 6 : Merge branch 'master' into webapk_installable_checker #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -1 line) Patch
M chrome/browser/android/banners/app_banner_manager_android.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/android/webapk/webapk_web_manifest_checker.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/android/webapk/webapk_web_manifest_checker.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/android/webapk/webapk_web_manifest_checker_unittest.cc View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/installable/installable_logging.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/installable/installable_logging.cc View 1 2 3 2 chunks +5 lines, -0 lines 1 comment Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
pkotwicz
Xi can you please take a look?
4 years, 4 months ago (2016-08-17 03:02:37 UTC) #2
Xi Han
lgtm
4 years, 4 months ago (2016-08-17 15:39:00 UTC) #3
pkotwicz
Dominick, can you please take a look?
4 years, 4 months ago (2016-08-17 15:49:16 UTC) #5
dominickn
https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_logging.cc File chrome/browser/installable/installable_logging.cc (right): https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_logging.cc#newcode37 chrome/browser/installable/installable_logging.cc:37: static const char kUrlUsernameAndPasswordNotSupportedMessage[] = Move to the end ...
4 years, 4 months ago (2016-08-17 22:54:43 UTC) #6
pkotwicz
https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_manager.cc File chrome/browser/installable/installable_manager.cc (right): https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_manager.cc#newcode141 chrome/browser/installable/installable_manager.cc:141: if (DoesManifestHaveUrlWithUsernameOrPassword(manifest) || The reason I put this code ...
4 years, 4 months ago (2016-08-18 01:11:41 UTC) #7
dominickn
https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_manager.cc File chrome/browser/installable/installable_manager.cc (right): https://codereview.chromium.org/2248293002/diff/1/chrome/browser/installable/installable_manager.cc#newcode141 chrome/browser/installable/installable_manager.cc:141: if (DoesManifestHaveUrlWithUsernameOrPassword(manifest) || On 2016/08/18 01:11:41, pkotwicz wrote: > ...
4 years, 4 months ago (2016-08-18 01:19:16 UTC) #8
pkotwicz
Dominick can you please take another look? I have moved the URL-with-password-component check out of ...
4 years, 4 months ago (2016-08-23 21:57:17 UTC) #9
dominickn
This is much cleaner, thanks! Mostly nits - I should be back up to full ...
4 years, 4 months ago (2016-08-24 03:27:11 UTC) #11
pkotwicz
Dominick can you please take another look? https://codereview.chromium.org/2248293002/diff/20001/chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc File chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc (right): https://codereview.chromium.org/2248293002/diff/20001/chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc#newcode140 chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc:140: NO_ERROR_DETECTED) { ...
4 years, 4 months ago (2016-08-24 15:04:56 UTC) #14
dominickn
lgtm % minor nits. Thanks! https://codereview.chromium.org/2248293002/diff/80001/chrome/browser/android/webapk/webapk_web_manifest_checker_unittest.cc File chrome/browser/android/webapk/webapk_web_manifest_checker_unittest.cc (right): https://codereview.chromium.org/2248293002/diff/80001/chrome/browser/android/webapk/webapk_web_manifest_checker_unittest.cc#newcode53 chrome/browser/android/webapk/webapk_web_manifest_checker_unittest.cc:53: TEST(WebApkWebManifestCheckerTest, CompatibleURLHasNoPort) { Minor ...
4 years, 4 months ago (2016-08-24 15:36:54 UTC) #15
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/2248293002/140001
4 years, 3 months ago (2016-08-25 19:38:09 UTC) #19
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/130169)
4 years, 3 months ago (2016-08-25 21:13:33 UTC) #21
pkotwicz
I removed the checking for an explicitly set port in AreWebManifestUrlsWebApkCompatible() because EmbeddedTestServer::GetURL() returns a ...
4 years, 3 months ago (2016-08-26 23:39:46 UTC) #26
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/2248293002/160001
4 years, 3 months ago (2016-08-26 23:40:57 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 3 months ago (2016-08-27 10:53:29 UTC) #30
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/6981e68516d341354372d174c557fb85653adcd7 Cr-Commit-Position: refs/heads/master@{#414907}
4 years, 3 months ago (2016-08-27 10:57:09 UTC) #32
dominickn
4 years, 3 months ago (2016-08-29 00:15:41 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/2248293002/diff/160001/chrome/browser/install...
File chrome/browser/installable/installable_logging.cc (right):

https://codereview.chromium.org/2248293002/diff/160001/chrome/browser/install...
chrome/browser/installable/installable_logging.cc:62: static const char
kUrlNotSupportedForWebApkMessage[] =
Nit: you removed checking the username for a port, but the error message still
mentions a port!

Powered by Google App Engine
This is Rietveld 408576698