diff options
author | rob <rob@robwu.nl> | 2016-01-25 17:57:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 01:58:07 +0000 |
commit | 8f63f9e719ca507931a08c708e0663d4573749d9 (patch) | |
tree | ab19df1dc33c8d367b43b0e1fac46f0a9b775449 /extensions/browser/api | |
parent | 76b7de45b4592d5a09d2cfe8cdc1dde30ad67dc7 (diff) | |
download | chromium_src-8f63f9e719ca507931a08c708e0663d4573749d9.zip chromium_src-8f63f9e719ca507931a08c708e0663d4573749d9.tar.gz chromium_src-8f63f9e719ca507931a08c708e0663d4573749d9.tar.bz2 |
webRequest: Check weak ptr before dispatching event
BUG=581148
Review URL: https://codereview.chromium.org/1632963002
Cr-Commit-Position: refs/heads/master@{#371418}
Diffstat (limited to 'extensions/browser/api')
-rw-r--r-- | extensions/browser/api/web_request/web_request_api.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc index 76db07f..532e43d 100644 --- a/extensions/browser/api/web_request/web_request_api.cc +++ b/extensions/browser/api/web_request/web_request_api.cc @@ -1072,6 +1072,9 @@ void ExtensionWebRequestEventRouter::DispatchEventToListeners( continue; } + if (!listener->ipc_sender.get()) + continue; + // Filter out the optional keys that this listener didn't request. scoped_ptr<base::ListValue> args_filtered(new base::ListValue); args_filtered->Append( |