Bug 1482668 - Add some redirections for server connection APIs, r=froydnj.
authorBrian Hackett <bhackett1024@gmail.com>
Mon, 13 Aug 2018 15:19:40 +0000
changeset 486360 435db71c3e29b1fc91d5257495e3518c3259d2d4
parent 486359 42473b857282739b3878fd6e75cf13f14a54bce6
child 486361 16aa20e2e300fc82772935add7a61d2004c081eb
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1482668
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1482668 - Add some redirections for server connection APIs, r=froydnj.
toolkit/recordreplay/ProcessRedirectDarwin.cpp
--- a/toolkit/recordreplay/ProcessRedirectDarwin.cpp
+++ b/toolkit/recordreplay/ProcessRedirectDarwin.cpp
@@ -400,17 +400,19 @@ namespace recordreplay {
   MACRO(OSSpinLockLock)                         \
   MACRO(ReleaseEvent)                           \
   MACRO(RemoveEventFromQueue)                   \
   MACRO(RetainEvent)                            \
   MACRO(SendEventToEventTarget)                 \
   MACRO(SLDisplayCopyColorSpace)                \
   MACRO(SLDisplayIOServicePort)                 \
   MACRO(SLEventSourceCounterForEventType)       \
-  MACRO(SLMainDisplayID)
+  MACRO(SLMainDisplayID)                        \
+  MACRO(SLSSetDenyWindowServerConnections)      \
+  MACRO(SLSShutdownServerConnections)
 
 #define MAKE_CALL_EVENT(aName)  CallEvent_ ##aName ,
 
 enum CallEvent {                                \
   FOR_EACH_REDIRECTION(MAKE_CALL_EVENT)         \
   CallEvent_Count                               \
 };
 
@@ -2674,16 +2676,18 @@ RRFunction2(SendEventToEventTarget)
 
 // These are not public APIs, but other redirected functions may be aliases for
 // these which are dynamically installed on the first call in a way that our
 // redirection mechanism doesn't completely account for.
 RRFunction2(SLEventSourceCounterForEventType)
 RRFunction1(SLDisplayCopyColorSpace)
 RRFunction1(SLDisplayIOServicePort)
 RRFunction0(SLMainDisplayID)
+RRFunction1(SLSSetDenyWindowServerConnections)
+RRFunctionVoid0(SLSShutdownServerConnections)
 
 ///////////////////////////////////////////////////////////////////////////////
 // Redirection generation
 ///////////////////////////////////////////////////////////////////////////////
 
 #define MAKE_REDIRECTION_ENTRY(aName)    \
   { #aName, nullptr, (uint8_t*) RR_ ##aName },