commit | d4b67ee5ca97f305ff4c3788f88b5796cac62ba0 | [log] [tgz] |
---|---|---|
author | Istiaque Ahmed <lazyboy@chromium.org> | Sat Mar 02 10:53:20 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Mar 02 10:53:20 2019 |
tree | 2a45b7b7841ede9d075e487675eedd79e87f63b6 | |
parent | 6068ff6ab6a068977052cc59629c10bbae4492f3 [diff] |
Reland "Hook up running extension SW information to ProcessManager" This is a reland of 7466707780d996e09adff361f84c0ae0add4602c The only change is to wait for "activate" SW event in tests instead of "install" event. This fixes the previous test flakiness locally. Original change's description: > Hook up running extension SW information to ProcessManager > > When service worker context initializes, add the corresponding > entry to ProcessManager and remove it when the context stops. > > Introduce IPC for worker initialization > (DidInitializeServiceWorkerContext) and modify worker > stop IPC (DidStopServiceWorkerContext) as necessary. > > Note that we cannot use loadstop > (DidStartServiceWorkerContext) for PM entry addition because it > can be too late as extension API calls might arrive in browser > process before this. > > Also add SW information cleanup on render process termination as > termination doesn't trigger stop worker messages (where the > regular cleanup in PM happens). > > This CL will enable extension messaging in future CLs. > > Add tests for shutdown and termination behavior. > > Bug: 925918 > Change-Id: I9442bac9a1e9acf01063084a1e6ef2fac3279e09 > Reviewed-on: https://chromium-review.googlesource.com/c/1455267 > Reviewed-by: Dominick Ng <dominickn@chromium.org> > Reviewed-by: Devlin <rdevlin.cronin@chromium.org> > Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> > Cr-Commit-Position: refs/heads/master@{#636929} TBR=rdevlin.cronin@chromium.org,dominickn@chromium.org Bug: 925918 Change-Id: I148fe7ddce1b66b934eec20536172cbb94b27540 Reviewed-on: https://chromium-review.googlesource.com/c/1497862 Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org> Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#637118}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .