Chromium Code Reviews| Index: Source/core/dom/Document.cpp |
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
| index 8b7633901a08b68c521017b2fd2ff03441dd210d..673c64af47a33dc93b6782cb96754209ac8c7bca 100644 |
| --- a/Source/core/dom/Document.cpp |
| +++ b/Source/core/dom/Document.cpp |
| @@ -2557,8 +2557,11 @@ void Document::write(const SegmentedString& text, Document* ownerDocument) |
| return; |
| bool hasInsertionPoint = m_parser && m_parser->hasInsertionPoint(); |
| - if (!hasInsertionPoint && m_ignoreDestructiveWriteCount) |
| + |
| + if (!hasInsertionPoint && m_ignoreDestructiveWriteCount) { |
| + addConsoleMessage(JSMessageSource, WarningMessageLevel, "A call to document.write() from an asynchronously-loaded external script was ignored."); |
|
Mike West
2013/12/23 16:08:15
Please change this to use 'ExceptionMessages::fail
|
| return; |
| + } |
| if (!hasInsertionPoint) |
| open(ownerDocument); |