Commit 3eca6c2a authored by samuong's avatar samuong Committed by Commit bot

[chromedriver] Include extension popups in list of windows

BUG=

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

Cr-Commit-Position: refs/heads/master@{#308215}
parent accea33a
......@@ -52,9 +52,10 @@ Status ChromeImpl::GetWebViewIds(std::list<std::string>* web_view_ids) {
// Check for newly-opened web views.
for (size_t i = 0; i < views_info.GetSize(); ++i) {
const WebViewInfo& view = views_info.Get(i);
if (view.type != WebViewInfo::kPage && view.type != WebViewInfo::kApp)
continue;
if (view.type == WebViewInfo::kPage ||
view.type == WebViewInfo::kApp ||
(view.type == WebViewInfo::kOther &&
view.url.find("chrome-extension://") == 0)) {
bool found = false;
for (WebViewList::const_iterator web_view_iter = web_views_.begin();
web_view_iter != web_views_.end(); ++web_view_iter) {
......@@ -79,6 +80,7 @@ Status ChromeImpl::GetWebViewIds(std::list<std::string>* web_view_ids) {
devtools_http_client_->device_metrics())));
}
}
}
std::list<std::string> web_view_ids_tmp;
for (WebViewList::const_iterator web_view_iter = web_views_.begin();
......
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