Commit 56de5c36 authored by markusheintz's avatar markusheintz Committed by Commit bot

Don't open the Collected Cookies dialog if the related web contents is null...

Don't open the Collected Cookies dialog if the related web contents is null because the tab was already closed.

BUG=434569

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

Cr-Commit-Position: refs/heads/master@{#329969}
parent af7a991a
......@@ -836,7 +836,8 @@ void WebsiteSettingsPopupView::HandleLinkClickedAsync(views::Link* source) {
presenter_->RecordWebsiteSettingsAction(
WebsiteSettings::WEBSITE_SETTINGS_COOKIES_DIALOG_OPENED);
new CollectedCookiesViews(web_contents_);
if (web_contents_ != NULL)
new CollectedCookiesViews(web_contents_);
} else if (source == certificate_dialog_link_) {
gfx::NativeWindow parent = GetAnchorView() ?
GetAnchorView()->GetWidget()->GetNativeWindow() : nullptr;
......
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