Changeset 200209 in webkit


Ignore:
Timestamp:
Apr 28, 2016, 2:28:10 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Tweak auto attach initialization on some platforms
https://bugs.webkit.org/show_bug.cgi?id=157150
<rdar://problem/21222045>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-04-28
Reviewed by Timothy Hatcher.

  • inspector/EventLoop.cpp:

(Inspector::EventLoop::cycle):

  • inspector/remote/RemoteInspector.mm:

(Inspector::RemoteInspector::updateAutomaticInspectionCandidate):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r200208 r200209  
     12016-04-28  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Tweak auto attach initialization on some platforms
     4        https://bugs.webkit.org/show_bug.cgi?id=157150
     5        <rdar://problem/21222045>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * inspector/EventLoop.cpp:
     10        (Inspector::EventLoop::cycle):
     11        * inspector/remote/RemoteInspector.mm:
     12        (Inspector::RemoteInspector::updateAutomaticInspectionCandidate):
     13
    1142016-04-28  Benjamin Poulain  <bpoulain@apple.com>
    215
  • trunk/Source/JavaScriptCore/inspector/EventLoop.cpp

    r165508 r200209  
    5454    TranslateMessage(&msg);
    5555    DispatchMessage(&msg);
     56#elif PLATFORM(WATCHOS)
     57    // FIXME: <rdar://problem/25972777>. In order for auto-attach to work, we need to
     58    // run in the default run loop mode otherwise we do not receive the XPC messages
     59    // necessary to setup the relay connection and negotiate an auto-attach debugger.
     60    CFTimeInterval timeInterval = 0.05;
     61    CFRunLoopRunInMode(kCFRunLoopDefaultMode, timeInterval, true);
    5662#elif USE(CF)
    5763    // Run the RunLoop in a custom run loop mode to prevent default observers
  • trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm

    r199208 r200209  
    226226
    227227        // In case debuggers fail to respond, or we cannot connect to webinspectord, automatically continue after a short period of time.
    228         dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.8 * NSEC_PER_SEC), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
     228#if PLATFORM(WATCHOS)
     229        int64_t debuggerTimeoutDelay = 5;
     230#else
     231        int64_t debuggerTimeoutDelay = 1;
     232#endif
     233        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, debuggerTimeoutDelay * NSEC_PER_SEC), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    229234            std::lock_guard<Lock> lock(m_mutex);
    230235            if (m_automaticInspectionCandidateTargetIdentifier == targetIdentifier) {
Note: See TracChangeset for help on using the changeset viewer.