Commit 3bab4c67 authored by i-ts's avatar i-ts Committed by Commit bot

check if webcontents are available at tabs_api

Everywhere else access to webcontents via tab_strip->GetWebContentsAt(i)
is checked. Missing check here may lead to crash in rare cases.

R=benwells@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2839403005
Cr-Commit-Position: refs/heads/master@{#468577}
parent e588d5c7
......@@ -939,6 +939,10 @@ ExtensionFunction::ResponseAction TabsQueryFunction::Run() {
if (index > -1 && i != index)
continue;
if (!web_contents) {
continue;
}
if (!MatchesBool(params->query_info.highlighted.get(),
tab_strip->IsTabSelected(i))) {
continue;
......
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