diff options
author | jochen <jochen@chromium.org> | 2016-02-17 13:22:17 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-17 21:25:11 +0000 |
commit | 5b04bec4148bfdb8b70aa1d227be91b67e6f368a (patch) | |
tree | a093c9606de3ec8a923d6361b46509d048c7f17f /extensions/renderer | |
parent | 2b61e1fc5993310d2b3746f587e03f2f10b6c154 (diff) | |
download | chromium_src-5b04bec4148bfdb8b70aa1d227be91b67e6f368a.zip chromium_src-5b04bec4148bfdb8b70aa1d227be91b67e6f368a.tar.gz chromium_src-5b04bec4148bfdb8b70aa1d227be91b67e6f368a.tar.bz2 |
Invalidate all extensions contexts on shutdown
BUG=584716
R=rdevlin.cronin@chromium.org,yzshen@chromium.org
Review URL: https://codereview.chromium.org/1702863004
Cr-Commit-Position: refs/heads/master@{#375983}
Diffstat (limited to 'extensions/renderer')
-rw-r--r-- | extensions/renderer/dispatcher.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc index 2c6ad7d..c3718d9 100644 --- a/extensions/renderer/dispatcher.cc +++ b/extensions/renderer/dispatcher.cc @@ -953,6 +953,10 @@ void Dispatcher::OnRenderProcessShutdown() { v8_schema_registry_.reset(); forced_idle_timer_.reset(); content_watcher_.reset(); + script_context_set_->ForEach( + std::string(), nullptr, + base::Bind(&ScriptContextSet::Remove, + base::Unretained(script_context_set_.get()))); } void Dispatcher::OnActivateExtension(const std::string& extension_id) { |