Changeset 132573 in webkit


Ignore:
Timestamp:
Oct 25, 2012 10:41:30 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

A mistake in WebCore::JavaScriptCallFrame::evaluate which will cause assert failed
https://bugs.webkit.org/show_bug.cgi?id=100347

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-10-25
Reviewed by Mark Lam and Filip Pizlo.

In worker context, calling "JSDOMWindowBase::commonJSGlobalData" will cause assert,
since there is "ASSERT(isMainThread())" in "JSDOMWindowBase::commonJSGlobalData".

No new test case, since no behaviour changed.

  • bindings/js/JavaScriptCallFrame.cpp:

(WebCore::JavaScriptCallFrame::evaluate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r132570 r132573  
     12012-10-25  Peter Wang  <peter.wang@torchmobile.com.cn>
     2
     3        A mistake in WebCore::JavaScriptCallFrame::evaluate which will cause assert failed
     4        https://bugs.webkit.org/show_bug.cgi?id=100347
     5
     6        Reviewed by Mark Lam and Filip Pizlo.
     7
     8        In worker context, calling "JSDOMWindowBase::commonJSGlobalData" will cause assert,
     9        since there is "ASSERT(isMainThread())" in "JSDOMWindowBase::commonJSGlobalData".
     10
     11        No new test case, since no behaviour changed.
     12
     13        * bindings/js/JavaScriptCallFrame.cpp:
     14        (WebCore::JavaScriptCallFrame::evaluate):
     15
    1162012-10-25  Adam Barth  <abarth@webkit.org>
    217
  • trunk/Source/WebCore/bindings/js/JavaScriptCallFrame.cpp

    r127757 r132573  
    116116        return jsNull();
    117117
    118     JSLockHolder lock(JSDOMWindowBase::commonJSGlobalData());
     118    JSLockHolder lock(m_debuggerCallFrame.callFrame());
    119119    return m_debuggerCallFrame.evaluate(script, exception);
    120120}
Note: See TracChangeset for help on using the changeset viewer.