@@ -201,7 +201,7 @@ static bool canAccessWebInspectorMachPort()
201201 // In case debuggers fail to respond, or we cannot connect to webinspectord, assume a rejection for
202202 // automatic inspection after a short period of time.
203203 int64_t debuggerTimeoutDelay = 10 ;
204- dispatch_after (dispatch_time (DISPATCH_TIME_NOW , debuggerTimeoutDelay * NSEC_PER_SEC ), dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
204+ dispatch_after (dispatch_time (DISPATCH_TIME_NOW , debuggerTimeoutDelay * NSEC_PER_SEC ), globalDispatchQueueSingleton (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
205205 Locker locker { m_mutex };
206206 if (m_automaticInspectionCandidates.remove (targetIdentifier)) {
207207 WTFLogAlways (" Skipping Automatic Inspection Candidate with pageId(%u) because we failed to receive a response in time." , targetIdentifier);
@@ -457,7 +457,7 @@ static bool canAccessWebInspectorMachPort()
457457 m_shouldReconnectToRelayOnFailure = false ;
458458
459459 // Schedule setting up a new connection, since we currently are holding a lock needed to create a new connection.
460- dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 1 * NSEC_PER_SEC ), dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
460+ dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 1 * NSEC_PER_SEC ), globalDispatchQueueSingleton (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
461461 RemoteInspector::singleton ().setupXPCConnectionIfNeeded ();
462462 });
463463}
@@ -597,7 +597,7 @@ static bool canAccessWebInspectorMachPort()
597597 return ;
598598
599599 m_pushScheduled = true ;
600- dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 0.2 * NSEC_PER_SEC ), dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
600+ dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 0.2 * NSEC_PER_SEC ), globalDispatchQueueSingleton (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
601601 Locker locker { m_mutex };
602602 if (m_pushScheduled)
603603 pushListingsNow ();
@@ -761,7 +761,7 @@ static bool canAccessWebInspectorMachPort()
761761 // We are a proxy application without parent process information.
762762 // Wait a bit for the information, but give up after a second.
763763 m_shouldSendParentProcessInformation = true ;
764- dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 1 * NSEC_PER_SEC ), dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
764+ dispatch_after (dispatch_time (DISPATCH_TIME_NOW , 1 * NSEC_PER_SEC ), globalDispatchQueueSingleton (DISPATCH_QUEUE_PRIORITY_DEFAULT , 0 ), ^{
765765 Locker locker { m_mutex };
766766 if (m_shouldSendParentProcessInformation)
767767 stopInternal (StopSource::XPCMessage);
0 commit comments