Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1099)

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 413683002: LocalWindow::printErrorMessage(): check if frame is available. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/document-navigation-error-no-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 69b6c0f1055157c96e22825394f4d555fb71b287..06712ca93f0ea358d5e220ca01134358fe060250 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -1725,6 +1725,9 @@ void LocalDOMWindow::setLocation(const String& urlString, LocalDOMWindow* callin
void LocalDOMWindow::printErrorMessage(const String& message)
{
+ if (!isCurrentlyDisplayedInFrame())
+ return;
+
if (message.isEmpty())
return;
« no previous file with comments | « LayoutTests/fast/dom/document-navigation-error-no-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698