|
|
Created:
4 years, 2 months ago by horo Modified:
4 years, 1 month ago Reviewers:
falken CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd browser tests for NavigationPreload.
This CL depends on https://codereview.chromium.org/2416843002/
FetchEvent.navigationPreload will be implemented in the following steps.
[1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent.
https://codereview.chromium.org/2417793002/
[2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload().
https://codereview.chromium.org/2410333006/
[3/4] Implement FetchEvent.navigationPreload.
https://codereview.chromium.org/2416843002/
[4/4] Add browser tests for NavigationPreload.
https://codereview.chromium.org/2413643005/ This CL.
Currently NavigationPreloadManager.enable() API is not implemented yet.
So in those tests, we sets this flag by directly calling ServiceWorkerVersion.
set_navigation_preload_enabled()
BUG=649558
R=falken@chromium.org
Committed: https://crrev.com/84814befc09874e372a5aec52c1553c9dd519797
Cr-Commit-Position: refs/heads/master@{#427705}
Patch Set 1 #
Total comments: 12
Patch Set 2 : rebase #Patch Set 3 : incorporated falken's comment #Patch Set 4 : browser-side-navigation.linux.content_browsertests.filter #
Dependent Patchsets: Messages
Total messages: 95 (76 generated)
Description was changed from ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ BUG=649558 ========== to ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ FetchEvent.navigationPreload will be implemented in the following steps. [1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. https://codereview.chromium.org/2417793002/ [2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). https://codereview.chromium.org/2410333006/ [3/4] Implement FetchEvent.navigationPreload. https://codereview.chromium.org/2416843002/ [4/4] Add browser tests for NavigationPreload. https://codereview.chromium.org/2413643005/ This CL. Currently NavigationPreloadManager.enable() API is not implemented yet. So in those tests, we sets this flag by directly calling ServiceWorkerVersion. set_navigation_preload_enabled() BUG=649558 ==========
Patchset #3 (id:40001) has been deleted
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: 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
Dry run: 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...)
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #5 (id:100001) has been deleted
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Patchset #5 (id:100001) has been deleted
Dry run: 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
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: 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
Dry run: Exceeded global retry quota
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: 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
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
Patchset #8 (id:180001) has been deleted
Patchset #7 (id:160001) has been deleted
Patchset #6 (id:140001) has been deleted
Patchset #5 (id:120001) has been deleted
Patchset #4 (id:80001) has been deleted
Patchset #3 (id:60001) has been deleted
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
The CQ bit was checked by horo@chromium.org to run a CQ dry run
horo@chromium.org changed reviewers: + falken@chromium.org
falken@ Could you please review this?
Dry run: 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
Dry run: Exceeded global retry quota
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm. nice thorough tests. looks great. https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1575: " ' {port: channel.port2}, [channel.port2]);\\n' +\n" nit: No need to send an object with {port:}, transferring [channel.port2] sets MessageEvent.ports[0] automatically. https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1582: " result => event.data.port.postMessage(result)));\n" This can just be event.ports[0].postMessage https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1606: // The page request must be sent twice. As the comment repeats the code, it could explain why: once for navigation preload, and once for fallback since respondWith wasn't used. https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1641: // The page request must be sent only once. since the worker responded with the navigation preload response https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1674: // The page request must be sent only once. since the worker responded with "Hello world" https://codereview.chromium.org/2413643005/diff/200001/content/browser/servic... content/browser/service_worker/service_worker_browsertest.cc:1707: " ' {port: channel.port2}, [channel.port2]);\\n' +\n" ditto with port passing
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_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 horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thank you. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... File content/browser/service_worker/service_worker_browsertest.cc (right): https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1575: " ' {port: channel.port2}, [channel.port2]);\\n' +\n" On 2016/10/20 08:17:40, falken (ooo Oct 21) wrote: > nit: No need to send an object with {port:}, transferring [channel.port2] sets > MessageEvent.ports[0] automatically. Done. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1582: " result => event.data.port.postMessage(result)));\n" On 2016/10/20 08:17:39, falken (ooo Oct 21) wrote: > This can just be event.ports[0].postMessage Done. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1606: // The page request must be sent twice. On 2016/10/20 08:17:40, falken (ooo Oct 21) wrote: > As the comment repeats the code, it could explain why: once for navigation > preload, and once for fallback since respondWith wasn't used. Done. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1641: // The page request must be sent only once. On 2016/10/20 08:17:40, falken (ooo Oct 21) wrote: > since the worker responded with the navigation preload response Done. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1674: // The page request must be sent only once. On 2016/10/20 08:17:40, falken (ooo Oct 21) wrote: > since the worker responded with "Hello world" Done. https://chromiumcodereview.appspot.com/2413643005/diff/200001/content/browser... content/browser/service_worker/service_worker_browsertest.cc:1707: " ' {port: channel.port2}, [channel.port2]);\\n' +\n" On 2016/10/20 08:17:40, falken (ooo Oct 21) wrote: > ditto with port passing Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_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 horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:260001) has been deleted
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:280001) has been deleted
The CQ bit was unchecked by horo@chromium.org
The CQ bit was checked by horo@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from falken@chromium.org Link to the patchset: https://codereview.chromium.org/2413643005/#ps240001 (title: "incorporated falken's comment")
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_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 horo@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_chromium_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 horo@chromium.org to run a CQ dry run
Dry run: 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
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
As I talked offline, I added "-ServiceWorkerBrowserTest/ServiceWorkerNavigationPreloadTest.*" to browser-side-navigation.linux.content_browsertests.filter to avoid the test failure on browser_side_navigation_content_browsertests. I will create a CL to support NavigationPreload with PlzNavigate.
The CQ bit was unchecked by horo@chromium.org
The CQ bit was checked by horo@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from falken@chromium.org Link to the patchset: https://codereview.chromium.org/2413643005/#ps300001 (title: "browser-side-navigation.linux.content_browsertests.filter")
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_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 horo@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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by horo@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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by horo@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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by horo@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 horo@chromium.org
The CQ bit was checked by horo@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ FetchEvent.navigationPreload will be implemented in the following steps. [1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. https://codereview.chromium.org/2417793002/ [2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). https://codereview.chromium.org/2410333006/ [3/4] Implement FetchEvent.navigationPreload. https://codereview.chromium.org/2416843002/ [4/4] Add browser tests for NavigationPreload. https://codereview.chromium.org/2413643005/ This CL. Currently NavigationPreloadManager.enable() API is not implemented yet. So in those tests, we sets this flag by directly calling ServiceWorkerVersion. set_navigation_preload_enabled() BUG=649558 ========== to ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ FetchEvent.navigationPreload will be implemented in the following steps. [1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. https://codereview.chromium.org/2417793002/ [2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). https://codereview.chromium.org/2410333006/ [3/4] Implement FetchEvent.navigationPreload. https://codereview.chromium.org/2416843002/ [4/4] Add browser tests for NavigationPreload. https://codereview.chromium.org/2413643005/ This CL. Currently NavigationPreloadManager.enable() API is not implemented yet. So in those tests, we sets this flag by directly calling ServiceWorkerVersion. set_navigation_preload_enabled() BUG=649558 R=falken@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/84814befc09874e372a5aec52c15... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:300001) manually as 84814befc09874e372a5aec52c1553c9dd519797 (presubmit successful).
Message was sent while issue was closed.
Description was changed from ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ FetchEvent.navigationPreload will be implemented in the following steps. [1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. https://codereview.chromium.org/2417793002/ [2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). https://codereview.chromium.org/2410333006/ [3/4] Implement FetchEvent.navigationPreload. https://codereview.chromium.org/2416843002/ [4/4] Add browser tests for NavigationPreload. https://codereview.chromium.org/2413643005/ This CL. Currently NavigationPreloadManager.enable() API is not implemented yet. So in those tests, we sets this flag by directly calling ServiceWorkerVersion. set_navigation_preload_enabled() BUG=649558 R=falken@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/84814befc09874e372a5aec52c15... ========== to ========== Add browser tests for NavigationPreload. This CL depends on https://codereview.chromium.org/2416843002/ FetchEvent.navigationPreload will be implemented in the following steps. [1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. https://codereview.chromium.org/2417793002/ [2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). https://codereview.chromium.org/2410333006/ [3/4] Implement FetchEvent.navigationPreload. https://codereview.chromium.org/2416843002/ [4/4] Add browser tests for NavigationPreload. https://codereview.chromium.org/2413643005/ This CL. Currently NavigationPreloadManager.enable() API is not implemented yet. So in those tests, we sets this flag by directly calling ServiceWorkerVersion. set_navigation_preload_enabled() BUG=649558 R=falken@chromium.org Committed: https://crrev.com/84814befc09874e372a5aec52c1553c9dd519797 Cr-Commit-Position: refs/heads/master@{#427705} ========== |