OSDN Git Service

Merge webkit.org at r58033 : Remove call to ScriptDebugServer::topStackFrame() on...
authorSteve Block <steveblock@google.com>
Mon, 10 May 2010 12:28:21 +0000 (13:28 +0100)
committerSteve Block <steveblock@google.com>
Tue, 11 May 2010 13:42:14 +0000 (14:42 +0100)
ScriptDebugServer is guarded with (JAVASCRIPT_DEBUGGER), which is not defined on
Android. An attempt was made in https://bugs.webkit.org/show_bug.cgi?id=38531 to
move ScriptDebugServer::topStackFrame() to ScriptCallStack to avoid the linker
error. However, this causes crashes on Android as our version of the V8 snapshot
is not consistent with this.

This fix is a temporary work-around to avoid the problem by simply not calling
ScriptDebugServer::topStackFrame(). The problem will be fixed properly upstream
when this code is refactored, as described in the WebKit bug.

Change-Id: I3952eed2e56dbb5a6f6204276bd499e79bba2227

WebCore/bindings/v8/ScriptCallStack.cpp

index 45e7205..95e874b 100644 (file)
@@ -51,10 +51,14 @@ ScriptCallStack* ScriptCallStack::create(const v8::Arguments& arguments, unsigne
 
 bool ScriptCallStack::callLocation(String* sourceName, int* sourceLineNumber, String* functionName)
 {
+#if PLATFORM(ANDROID)
+    return false;
+#else
     if (!ScriptDebugServer::topStackFrame(*sourceName, *sourceLineNumber, *functionName))
         return false;
     *sourceLineNumber += 1;
     return true;
+#endif
 }
 
 ScriptCallStack::ScriptCallStack(const v8::Arguments& arguments, unsigned skipArgumentCount, String sourceName, int sourceLineNumber, String functionName)