Bug 1500697 - Redirect SCDynamicStore APIs, r=mccr8.
authorBrian Hackett <bhackett1024@gmail.com>
Sat, 20 Oct 2018 10:41:21 -0600
changeset 491285 101430a1be58500a099200dcc097ca95bbfa1bf8
parent 491284 5a812d8c724e4d85f5deec93b0f1972efb325f03
child 491286 25e1e5dcacb2d8a968167ba7e3775e1fcd862590
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersmccr8
bugs1500697
milestone65.0a1
Bug 1500697 - Redirect SCDynamicStore APIs, r=mccr8.
toolkit/recordreplay/ProcessRedirectDarwin.cpp
--- a/toolkit/recordreplay/ProcessRedirectDarwin.cpp
+++ b/toolkit/recordreplay/ProcessRedirectDarwin.cpp
@@ -286,16 +286,17 @@ namespace recordreplay {
   /* Don't handle release/retain calls explicitly in the middleman, all resources */ \
   /* will be cleaned up when its calls are reset. */             \
   MACRO(CFRelease, RR_ScalarRval, nullptr, nullptr, Preamble_Veto<0>) \
   MACRO(CFRetain, RR_ScalarRval, nullptr, nullptr, MiddlemanPreamble_CFRetain) \
   MACRO(CFRunLoopAddSource)                                      \
   MACRO(CFRunLoopGetCurrent, RR_ScalarRval)                      \
   MACRO(CFRunLoopRemoveSource)                                   \
   MACRO(CFRunLoopSourceCreate, RR_ScalarRval, Preamble_CFRunLoopSourceCreate) \
+  MACRO(CFRunLoopSourceInvalidate)                               \
   MACRO(CFRunLoopSourceSignal)                                   \
   MACRO(CFRunLoopWakeUp)                                         \
   MACRO(CFStringAppendCharacters)                                \
   MACRO(CFStringCompare, RR_ScalarRval, nullptr,                 \
         Middleman_Compose<Middleman_CFTypeArg<0>, Middleman_CFTypeArg<1>>) \
   MACRO(CFStringCreateArrayBySeparatingStrings, RR_ScalarRval)   \
   MACRO(CFStringCreateMutable, RR_ScalarRval)                    \
   MACRO(CFStringCreateWithBytes, RR_ScalarRval)                  \
@@ -584,16 +585,21 @@ namespace recordreplay {
   MACRO(NSRectFill)                                              \
   MACRO(NSSearchPathForDirectoriesInDomains, RR_ScalarRval)      \
   MACRO(NSSetFocusRingStyle, RR_ScalarRval)                      \
   MACRO(NSTemporaryDirectory, RR_ScalarRval)                     \
   MACRO(OSSpinLockLock, nullptr, Preamble_OSSpinLockLock)        \
   MACRO(ReleaseEvent, RR_ScalarRval)                             \
   MACRO(RemoveEventFromQueue, RR_ScalarRval)                     \
   MACRO(RetainEvent, RR_ScalarRval)                              \
+  MACRO(SCDynamicStoreCopyProxies, RR_ScalarRval)                \
+  MACRO(SCDynamicStoreCreate, RR_ScalarRval)                     \
+  MACRO(SCDynamicStoreCreateRunLoopSource, RR_ScalarRval)        \
+  MACRO(SCDynamicStoreKeyCreateProxies, RR_ScalarRval)           \
+  MACRO(SCDynamicStoreSetNotificationKeys, RR_ScalarRval)        \
   MACRO(SendEventToEventTarget, RR_ScalarRval)                   \
   /* 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. */    \
   MACRO(SLDisplayCopyColorSpace, RR_ScalarRval)                  \
   MACRO(SLDisplayIOServicePort, RR_ScalarRval)                   \
   MACRO(SLEventSourceCounterForEventType, RR_ScalarRval)         \
   MACRO(SLMainDisplayID, RR_ScalarRval)                          \