Fix extension service worker event filter in the browser process.
This CL makes lazy variant of service worker listener drop its service worker version id (akin to dropping worker thread id) by setting version id to kInvalidServiceWorkerVersionId. This CL also loads service worker listener's filters correctly from prefs. Note that these listeners (already) start with dropped worker version id. This CL expands unit tests that can now be run for service workers, namely EventRouterFilterTest and AddLazyListenersFromPreferences. Bug: 1094697, 1095568 Change-Id: I9ea04aa5439e001d1cb92ad774fb94067929a466 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2245513 Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:David Bertoni <dbertoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#779202}
Showing
Please register or sign in to comment