summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer/dispatcher.cc')
-rw-r--r--extensions/renderer/dispatcher.cc4
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) {