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

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

Issue 8361008: Workaround 75604 for m15 (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk
Patch Set: speeling fix Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/ScriptElement.cpp
diff --git a/Source/WebCore/dom/ScriptElement.cpp b/Source/WebCore/dom/ScriptElement.cpp
index ca47d5f7cf1bb84b09f89605032171321be196eb..40d52b3ef6f0403e662f53364c8b88a2c4bc9f23 100644
--- a/Source/WebCore/dom/ScriptElement.cpp
+++ b/Source/WebCore/dom/ScriptElement.cpp
@@ -331,6 +331,11 @@ void ScriptElement::execute(CachedScript* cachedScript)
void ScriptElement::notifyFinished(CachedResource* o)
{
+ // crbug.com/75604 causes double notification in some situations, disregarding the second notification
+ // is a workaround.
+ if (!m_cachedScript)
+ return;
+
ASSERT(!m_willBeParserExecuted);
ASSERT_UNUSED(o, o == m_cachedScript);
if (m_willExecuteInOrder)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698