Commit 8f63f9e7 authored by rob's avatar rob Committed by Commit bot

webRequest: Check weak ptr before dispatching event

BUG=581148

Review URL: https://codereview.chromium.org/1632963002

Cr-Commit-Position: refs/heads/master@{#371418}
parent 76b7de45
...@@ -1072,6 +1072,9 @@ void ExtensionWebRequestEventRouter::DispatchEventToListeners( ...@@ -1072,6 +1072,9 @@ void ExtensionWebRequestEventRouter::DispatchEventToListeners(
continue; continue;
} }
if (!listener->ipc_sender.get())
continue;
// Filter out the optional keys that this listener didn't request. // Filter out the optional keys that this listener didn't request.
scoped_ptr<base::ListValue> args_filtered(new base::ListValue); scoped_ptr<base::ListValue> args_filtered(new base::ListValue);
args_filtered->Append( args_filtered->Append(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment