Changeset 173683 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Sep 16, 2014, 5:49:20 PM (11 years ago)
Author:
[email protected]
Message:

Web Inspector: Reduce a bit of churn setting initial remote inspection state
https://bugs.webkit.org/show_bug.cgi?id=136875

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-09-16
Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

  • API/JSContextRef.cpp:

(JSGlobalContextCreateInGroup):
Set the defaultl remote debuggable state at the API boundary.

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::init):
Do not set remote debuggable state here. Let clients set it.

Source/WebCore:

  • bindings/js/JSDOMGlobalObject.cpp:

(WebCore::JSDOMGlobalObject::finishCreation):
We no longer need to toggle this state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSContextRef.cpp

    r170589 r173683  
    139139    if (!globalObjectClass) {
    140140        JSGlobalObject* globalObject = JSGlobalObject::create(*vm, JSGlobalObject::createStructure(*vm, jsNull()));
     141#if ENABLE(REMOTE_INSPECTOR)
     142        globalObject->setRemoteDebuggingEnabled(true);
     143#endif
    141144        return JSGlobalContextRetain(toGlobalRef(globalObject->globalExec()));
    142145    }
     
    148151        prototype = jsNull();
    149152    globalObject->resetPrototype(*vm, prototype);
     153#if ENABLE(REMOTE_INSPECTOR)
     154    globalObject->setRemoteDebuggingEnabled(true);
     155#endif
    150156    return JSGlobalContextRetain(toGlobalRef(exec));
    151157}
Note: See TracChangeset for help on using the changeset viewer.