Index: Source/core/dom/ScriptExecutionContext.cpp |
diff --git a/Source/core/dom/ScriptExecutionContext.cpp b/Source/core/dom/ScriptExecutionContext.cpp |
index 2cc9e4b2da891125696f2a8d2a37a426f0031ba3..9ac54d9fbe797452e071f0781cd332c8c2666db8 100644 |
--- a/Source/core/dom/ScriptExecutionContext.cpp |
+++ b/Source/core/dom/ScriptExecutionContext.cpp |
@@ -241,7 +241,7 @@ bool ScriptExecutionContext::dispatchErrorEvent(PassRefPtr<ErrorEvent> event, Ac |
RefPtr<ErrorEvent> errorEvent = event; |
if (shouldSanitizeScriptError(errorEvent->filename(), corsStatus)) |
- errorEvent = ErrorEvent::createSanitizedError(); |
+ errorEvent = ErrorEvent::createSanitizedError(errorEvent->world()); |
ASSERT(!m_inDispatchErrorEvent); |
m_inDispatchErrorEvent = true; |