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

Unified Diff: Source/WebCore/dom/Document.cpp

Issue 11320014: Merge 132371 - Crash when trying to write exception message to null console (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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/workers/worker-exception-during-navigation-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Document.cpp
===================================================================
--- Source/WebCore/dom/Document.cpp (revision 132690)
+++ Source/WebCore/dom/Document.cpp (working copy)
@@ -5241,8 +5241,10 @@
return;
}
- if (DOMWindow* window = domWindow())
- window->console()->addMessage(source, type, level, message, sourceURL, lineNumber, callStack);
+ if (DOMWindow* window = domWindow()) {
+ if (Console* console = window->console())
+ console->addMessage(source, type, level, message, sourceURL, lineNumber, callStack);
+ }
}
struct PerformTaskContext {
« no previous file with comments | « LayoutTests/fast/workers/worker-exception-during-navigation-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698