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

Unified Diff: sky/engine/core/dom/ExecutionContext.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/dom/ExecutionContext.h ('k') | sky/engine/core/dom/Microtask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ExecutionContext.cpp
diff --git a/sky/engine/core/dom/ExecutionContext.cpp b/sky/engine/core/dom/ExecutionContext.cpp
index 659d0a58f5fdc64902742f262bdb8eb6e0d234c1..064016fc007df28ae6a8d9c6709bfdee1b31d7ea 100644
--- a/sky/engine/core/dom/ExecutionContext.cpp
+++ b/sky/engine/core/dom/ExecutionContext.cpp
@@ -93,11 +93,6 @@ void ExecutionContext::suspendActiveDOMObjectIfNeeded(ActiveDOMObject* object)
object->suspend();
}
-bool ExecutionContext::shouldSanitizeScriptError(const String& sourceURL)
-{
- return false;
-}
-
void ExecutionContext::reportException(PassRefPtr<ErrorEvent> event, int scriptId, PassRefPtr<ScriptCallStack> callStack)
{
RefPtr<ErrorEvent> errorEvent = event;
@@ -139,9 +134,6 @@ bool ExecutionContext::dispatchErrorEvent(PassRefPtr<ErrorEvent> event)
return false;
RefPtr<ErrorEvent> errorEvent = event;
- if (shouldSanitizeScriptError(errorEvent->filename()))
- errorEvent = ErrorEvent::createSanitizedError(errorEvent->world());
-
ASSERT(!m_inDispatchErrorEvent);
m_inDispatchErrorEvent = true;
target->dispatchEvent(errorEvent);
« no previous file with comments | « sky/engine/core/dom/ExecutionContext.h ('k') | sky/engine/core/dom/Microtask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698