Changeset 200209 in webkit
- Timestamp:
- Apr 28, 2016, 2:28:10 PM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r200208 r200209 1 2016-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 1 14 2016-04-28 Benjamin Poulain <bpoulain@apple.com> 2 15 -
trunk/Source/JavaScriptCore/inspector/EventLoop.cpp
r165508 r200209 54 54 TranslateMessage(&msg); 55 55 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); 56 62 #elif USE(CF) 57 63 // Run the RunLoop in a custom run loop mode to prevent default observers -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm
r199208 r200209 226 226 227 227 // 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), ^{ 229 234 std::lock_guard<Lock> lock(m_mutex); 230 235 if (m_automaticInspectionCandidateTargetIdentifier == targetIdentifier) {
Note:
See TracChangeset
for help on using the changeset viewer.