# Output of hook library for https://bugzilla.mozilla.org/show_bug.cgi?id=1201401
# in a current Firefox Nightly (where bug 1201401 is fixed) recording the steps
# leading up to the crash being worked around. get_current_display_system_state()
# returns null, CGDisplayIDToOpenGLDisplayMask() returns 0, and
# CVCGDisplayLink::setCurrentDisplay() returns -6670. Then
# CVCGDisplayLink::getCurrentDisplay(), called from my patch, returns 0. Then my
# patch calls CVDisplayLinkRelease() on 'mDisplayLink' and does an early return.
# Then everything proceeds normally, without the crash.

(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: get_current_display_system_state(): returning '0x0', counter '5', remainder '0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked__ZL32get_current_display_system_statev() + 0xea
    (SkyLight) SLSGetDisplayOpenGLDisplayMask + 0x1e
    (hook.dylib) Hooked_SLDisplayIDToOpenGLDisplayMask(unsigned int) + 0x21
    (CoreVideo) CVCGDisplayLink::setCurrentDisplay(unsigned int) + 0x25
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17setCurrentDisplayEj(void*, unsigned int) + 0x29
    (CoreVideo) CVCGDisplayLink::initWithCGDisplays(unsigned int*, long, int*) + 0x1c3
    (CoreVideo) CVDisplayLinkCreateWithCGDisplays + 0x86
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0x34
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CGDisplayIDToOpenGLDisplayMask(): display '0x7bd7f439', returning '0x0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_SLDisplayIDToOpenGLDisplayMask(unsigned int) + 0x5b
    (CoreVideo) CVCGDisplayLink::setCurrentDisplay(unsigned int) + 0x25
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17setCurrentDisplayEj(void*, unsigned int) + 0x29
    (CoreVideo) CVCGDisplayLink::initWithCGDisplays(unsigned int*, long, int*) + 0x1c3
    (CoreVideo) CVDisplayLinkCreateWithCGDisplays + 0x86
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0x34
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVCGDisplayLink::setCurrentDisplay(): self '0x12330e820', displayID '0x7bd7f439', returning '-6670'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17setCurrentDisplayEj(void*, unsigned int) + 0x56
    (CoreVideo) CVCGDisplayLink::initWithCGDisplays(unsigned int*, long, int*) + 0x1c3
    (CoreVideo) CVDisplayLinkCreateWithCGDisplays + 0x86
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0x34
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVDisplayLinkCreateWithCGDisplays(): count '1', displayLinkOut '0x12330e800', returning '0'
    Current display now '0x0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0xc9
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVCGDisplayLink::getCurrentDisplay(): self '0x12330e820', returning '0x0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17getCurrentDisplayEv(void*) + 0x46
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x32
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVDisplayLinkRelease(): displayLink '0x12330e800'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_CVDisplayLinkRelease(__CVDisplayLink*) + 0x40
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0xe3
    (XUL) mozilla::gfx::VsyncSource::Display::UpdateVsyncStatus() + 0x33
    (XUL) mozilla::RefreshTimerVsyncDispatcher::UpdateVsyncStatus() + 0x79
    (XUL) mozilla::VsyncRefreshDriverTimer::StartTimer() + 0x56
    (XUL) nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags) + 0xaf
    (XUL) mozilla::PresShell::EnsureStyleFlush() + 0xbb
    (XUL) mozilla::PresShell::Init(nsPresContext*, nsViewManager*) + 0x19b
    (XUL) mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) + 0x92
    (XUL) nsDocumentViewer::InitPresentationStuff(bool) + 0x46
    (XUL) nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) + 0x28d
    (XUL) nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) + 0x1b
    (XUL) nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x33f
    (XUL) nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) + 0x26
    (XUL) nsDocShell::CreateContentViewer(nsTSubstring<char> const&, nsIRequest*, nsIStreamListener**) + 0x291
    (XUL) nsDSURIContentListener::DoContent(nsTSubstring<char> const&, bool, nsIRequest*, nsIStreamListener**, bool*) + 0x119
    (XUL) nsDocumentOpenInfo::TryContentListener(nsIURIContentListener*, nsIChannel*) + 0x160
    (XUL) nsDocumentOpenInfo::DispatchContent(nsIRequest*, nsISupports*) + 0x16e
    (XUL) nsDocumentOpenInfo::OnStartRequest(nsIRequest*) + 0x1de
    (XUL) nsJARChannel::OnStartRequest(nsIRequest*) + 0x66
    (XUL) nsInputStreamPump::OnStateStart() + 0xd9
    (XUL) nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 0xed
    (XUL) nsInputStreamReadyEvent::Run() + 0x21
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CGDisplayIDToOpenGLDisplayMask(): display '0x7bd7f439', returning '0x1'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_SLDisplayIDToOpenGLDisplayMask(unsigned int) + 0x5b
    (CoreVideo) CVCGDisplayLink::setCurrentDisplay(unsigned int) + 0x25
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17setCurrentDisplayEj(void*, unsigned int) + 0x29
    (CoreVideo) CVCGDisplayLink::initWithCGDisplays(unsigned int*, long, int*) + 0x1c3
    (CoreVideo) CVDisplayLinkCreateWithCGDisplays + 0x86
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0x34
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVCGDisplayLink::setCurrentDisplay(): self '0x14e520020', displayID '0x7bd7f439', returning '0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17setCurrentDisplayEj(void*, unsigned int) + 0x56
    (CoreVideo) CVCGDisplayLink::initWithCGDisplays(unsigned int*, long, int*) + 0x1c3
    (CoreVideo) CVDisplayLinkCreateWithCGDisplays + 0x86
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0x34
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVDisplayLinkCreateWithCGDisplays(): count '1', displayLinkOut '0x14e520000', returning '0'
    Current display now '0x7bd7f439'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_CVDisplayLinkCreateWithCGDisplays(unsigned int*, long, __CVDisplayLink**) + 0xc9
    (CoreVideo) CVDisplayLinkCreateWithActiveCGDisplays + 0x55
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x22
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVCGDisplayLink::getCurrentDisplay(): self '0x14e520020', returning '0x7bd7f439'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked__ZN15CVCGDisplayLink17getCurrentDisplayEv(void*) + 0x46
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x32
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVDisplayLinkSetOutputCallback(): displayLink '0x14e520000', callback '0x10f6166c0', userInfo '0x122aca4d0', returning 0
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_CVDisplayLinkSetOutputCallback(__CVDisplayLink*, int (*)(__CVDisplayLink*, CVTimeStamp const*, CVTimeStamp const*, unsigned long long, unsigned long long*, void*), void*) + 0x75
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x4d
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
(Wed Feb  5 16:32:39 2020) /Applications/Firefox Nightly.app/Contents/MacOS/firefox[1411] [0x11a9d4dc0] Hook.mm: CVDisplayLinkStart(): displayLink '0x14e520000', returning '0'
    (hook.dylib) PrintStackTrace() + 0xae
    (hook.dylib) Hooked_CVDisplayLinkStart(__CVDisplayLink*) + 0x46
    (XUL) OSXVsyncSource::OSXDisplay::EnableVsync() + 0x6c
    (XUL) nsTimerImpl::Fire(int) + 0x199
    (XUL) nsTimerEvent::Run() + 0x32
    (XUL) nsThread::ProcessNextEvent(bool, bool*) + 0x128a
    (XUL) NS_ProcessPendingEvents(nsIThread*, unsigned int) + 0x7f
    (XUL) nsBaseAppShell::NativeEventCallback() + 0x82
    (XUL) nsAppShell::ProcessGeckoEvents(void*) + 0x99
    (CoreFoundation) __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 0x11
    (CoreFoundation) __CFRunLoopDoSource0 + 0x67
    (CoreFoundation) __CFRunLoopDoSources0 + 0xd1
    (CoreFoundation) __CFRunLoopRun + 0x4f8
    (CoreFoundation) CFRunLoopRunSpecific + 0x1f3
    (HIToolbox) RunCurrentEventLoopInMode + 0x124
    (HIToolbox) ReceiveNextEventCommon + 0x258
    (HIToolbox) _BlockUntilNextEventMatchingListInModeWithFilter + 0x40
    (AppKit) _DPSNextEvent + 0x3de
    (AppKit) -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 0x548
    (XUL) -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0xef
    (AppKit) -[NSApplication run] + 0x292
    (XUL) nsAppShell::Run() + 0x12f
    (XUL) nsAppStartup::Run() + 0x29
    (XUL) XREMain::XRE_mainRun() + 0x702
    (XUL) XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x41f
    (XUL) XRE_main(int, char**, mozilla::BootstrapConfig const&) + 0x98
    (firefox) main + 0x1e4
    (libdyld.dylib) start + 0x1
    (firefox) unknown 0x1
