summaryrefslogtreecommitdiffstats
path: root/extensions/extensions.gypi
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-09-10 12:21:45 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-10 19:23:52 +0000
commitf5863da15d5c40c66873d36fd403ac96b8172828 (patch)
tree788f6e9191453fb11e0c5b8110dceaa56c7c7045 /extensions/extensions.gypi
parent73d92c7c8328979eb489a8af59b8d61940a296c6 (diff)
downloadchromium_src-f5863da15d5c40c66873d36fd403ac96b8172828.zip
chromium_src-f5863da15d5c40c66873d36fd403ac96b8172828.tar.gz
chromium_src-f5863da15d5c40c66873d36fd403ac96b8172828.tar.bz2
Don't Allow Service Workers for Unloaded Extensions
Extensions are interesting, in that they can be unloaded and reloaded, and their state should be the same after this (especially since it can happen on every browser start/stop). Any service workers that an extension has should not be running during the time that the extension is not loaded, but on reload, these workers should be put in place again, and should maintain their cache. For this, check if the extension is loaded in AllowServiceWorkers(), and stop any running service workers when the extension is unloaded. BUG=519326 TBR=kinuko@chromium.org (small changes to misc content/ files) Review URL: https://codereview.chromium.org/1313213002 Cr-Commit-Position: refs/heads/master@{#348208}
Diffstat (limited to 'extensions/extensions.gypi')
-rw-r--r--extensions/extensions.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/extensions.gypi b/extensions/extensions.gypi
index ed1a722..e4c0893 100644
--- a/extensions/extensions.gypi
+++ b/extensions/extensions.gypi
@@ -737,6 +737,8 @@
'browser/script_executor.h',
'browser/serial_extension_host_queue.cc',
'browser/serial_extension_host_queue.h',
+ 'browser/service_worker_manager.cc',
+ 'browser/service_worker_manager.h',
'browser/state_store.cc',
'browser/state_store.h',
'browser/suggest_permission_util.cc',