|
|
DescriptionDo not request upgrade if Web Manifest is no longer WebAPK-capable
For instance, an upgraded WebAPK should not be requested if the Web Manifest was
updated to no longer have a start_url
BUG=627824
TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade
Committed: https://crrev.com/090b6f3b15c5b11a304db2c7d61f9ff8672a8f1d
Cr-Commit-Position: refs/heads/master@{#414149}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Merge branch 'master' into webapk_updater_non_installable #Patch Set 3 : Merge branch 'master' into webapk_updater_non_installable #
Total comments: 1
Patch Set 4 : Merge branch 'master' into webapk_updater_non_installable #
Messages
Total messages: 37 (17 generated)
Description was changed from ========== Do not request upgrade if Web Manifest is no longer Web-APK capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 ========== to ========== Do not request upgrade if Web Manifest is no longer Web-APK capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ==========
pkotwicz@chromium.org changed reviewers: + yfriedman@chromium.org
Description was changed from ========== Do not request upgrade if Web Manifest is no longer Web-APK capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ========== to ========== Do not request upgrade if Web Manifest is no longer WebAPK capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ==========
Yaron, can you please take a look?
Description was changed from ========== Do not request upgrade if Web Manifest is no longer WebAPK capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ========== to ========== Do not request upgrade if Web Manifest is no longer WebAPK-capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ==========
https://codereview.chromium.org/2262583002/diff/1/chrome/browser/android/weba... File chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc (right): https://codereview.chromium.org/2262583002/diff/1/chrome/browser/android/weba... chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc:145: bool is_installable, if it's not installable, we're going to do a bunch of marshalling and unmarshalling for nothing (we end up short-circuiting later). How about instead having a separate flow for when installation isn't possible?
pkotwicz@chromium.org changed reviewers: + hanxi@chromium.org
Xi what do you think? The "new web manifest being installable" case is the common case. The "new web manifest being not installable" is an edge case. I do not mind if the "edge case" is as slow as the "common case".
https://codereview.chromium.org/2262583002/diff/1/chrome/browser/android/weba... File chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc (right): https://codereview.chromium.org/2262583002/diff/1/chrome/browser/android/weba... chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc:145: bool is_installable, On 2016/08/19 13:57:10, Yaron (ooo) wrote: > if it's not installable, we're going to do a bunch of marshalling and > unmarshalling for nothing (we end up short-circuiting later). How about instead > having a separate flow for when installation isn't possible? Yaron's suggestion makes sense, even though I didn't have this idea at the first place. It makes code looks neat. Maybe we can have another path that just calls: Java_ManifestUpgradeDetectorFetcher_onInstallableCheckFailed(). Hopefully it won't add too much complex for testing.
You need to rebase this CL since the CL (https://codereview.chromium.org/2184913005/) has landed.
Xi can you please take another look? Adding a code path which calls Java_ManifestUpgradeDetectorFetcher_onInstallableCheckFailed() is a good idea. I will do this as part of http://crbug.com/639536 I will add tests also as part of http://crbug.com/639536
lgtm
pkotwicz@chromium.org changed reviewers: + dominickn@chromium.org
Dominick for OWNERS
lgtm
The CQ bit was checked by pkotwicz@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_androi...)
Dominick, can you please take another look? I have fixed ManifestUpgradeDetectorFetcherTest. Patch Set #2 made the test fail because the callback is now only called if the Web Manifest is installable. For a page to be installable it must have a registered service worker. I am going to add tests for this new behavior as part of fixing http://crbug.com/639536
On 2016/08/24 16:46:02, pkotwicz wrote: > Dominick, can you please take another look? I have fixed > ManifestUpgradeDetectorFetcherTest. Patch Set #2 made the test fail because the > callback is now only called if the Web Manifest is installable. For a page to be > installable it must have a registered service worker. > > I am going to add tests for this new behavior as part of fixing > http://crbug.com/639536 still lgtm % question Any reason to have the reduced manifest for this test? Seems like you could just use the existing manifest_test_page.html in chrome/test/data/banners and not need to create new files.
https://codereview.chromium.org/2262583002/diff/40001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java (right): https://codereview.chromium.org/2262583002/diff/40001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java:122: public void testLaunchWithDifferentManifestUrl() throws Exception { I need two test pages which use different manifest URLs for this test
The CQ bit was checked by pkotwicz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hanxi@chromium.org Link to the patchset: https://codereview.chromium.org/2262583002/#ps40001 (title: "Merge branch 'master' into webapk_updater_non_installable")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by pkotwicz@chromium.org
The CQ bit was checked by pkotwicz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dominickn@chromium.org, hanxi@chromium.org Link to the patchset: https://codereview.chromium.org/2262583002/#ps60001 (title: "Merge branch 'master' into webapk_updater_non_installable")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by pkotwicz@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Do not request upgrade if Web Manifest is no longer WebAPK-capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ========== to ========== Do not request upgrade if Web Manifest is no longer WebAPK-capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Do not request upgrade if Web Manifest is no longer WebAPK-capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade ========== to ========== Do not request upgrade if Web Manifest is no longer WebAPK-capable For instance, an upgraded WebAPK should not be requested if the Web Manifest was updated to no longer have a start_url BUG=627824 TEST=ManifestUpgradeDetectorTest.testWebManifestNotWebApkCapableShouldNotUpgrade Committed: https://crrev.com/090b6f3b15c5b11a304db2c7d61f9ff8672a8f1d Cr-Commit-Position: refs/heads/master@{#414149} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/090b6f3b15c5b11a304db2c7d61f9ff8672a8f1d Cr-Commit-Position: refs/heads/master@{#414149} |