diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index ea3998f9f22f..c404dcc67b19 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -1644,11 +1644,8 @@ StartMacOSContentSandbox() // Close all current connections to the WindowServer. This ensures that the // Activity Monitor will not label the content process as "Not responding" // because it's not running a native event loop. See bug 1384336. - if (!recordreplay::IsRecordingOrReplaying()) { - // Because of the WebReplay system for proxying system API calls, for the - // time being we skip this when running under WebReplay (bug 1482668). - CGSShutdownServerConnections(); - } + CGSShutdownServerConnections(); + // Actual security benefits are only acheived when we additionally deny // future connections, however this currently breaks WebGL so it's not done // by default. diff --git a/toolkit/recordreplay/ProcessRedirectDarwin.cpp b/toolkit/recordreplay/ProcessRedirectDarwin.cpp index 90fadd762c6b..ee77c5eb9746 100644 --- a/toolkit/recordreplay/ProcessRedirectDarwin.cpp +++ b/toolkit/recordreplay/ProcessRedirectDarwin.cpp @@ -321,6 +321,7 @@ namespace recordreplay { MACRO(CGPathGetCurrentPoint) \ MACRO(CGPathIsEmpty) \ MACRO(CGSSetDebugOptions) \ + MACRO(CGSShutdownServerConnections) \ MACRO(CTFontCopyFamilyName) \ MACRO(CTFontCopyFontDescriptor) \ MACRO(CTFontCopyGraphicsFont) \ @@ -2349,6 +2350,7 @@ RR_CTFontGetBoundingRectsForGlyphs(CTFontRef aFont, CTFontOrientation aOrientati RRFunctionTypes1(CGPathGetCurrentPoint, CGPoint, CGPathRef) RRFunction1(CGPathIsEmpty) RRFunction1(CGSSetDebugOptions) +RRFunctionVoid0(CGSShutdownServerConnections) RRFunction1(CTFontCopyFamilyName) RRFunction1(CTFontCopyFontDescriptor) RRFunction2(CTFontCopyGraphicsFont)