Bug 1403358 Only reference ActivationContext if Acessibility is enabled
This also enables the crash reporter on the MinGW build, as this is the
only thing blocking that from working.
MozReview-Commit-ID: Hygd7UUQvwl
--- a/browser/config/mozconfigs/win32/mingw32
+++ b/browser/config/mozconfigs/win32/mingw32
@@ -44,17 +44,16 @@ ac_add_options --disable-tests
ac_add_options --disable-accessibility # https://sourceforge.net/p/mingw-w64/bugs/648/
# Long story
ac_add_options --disable-sandbox # Bug 1230910
ac_add_options --disable-stylo # Bug 1390583
# These aren't supported on mingw at this time
ac_add_options --disable-webrtc # Bug 1393901
-ac_add_options --disable-crashreporter # Bug 1391685
ac_add_options --disable-maintenance-service
# Find our toolchain
CC="$TOOLTOOL_DIR/gcc/bin/i686-w64-mingw32-gcc"
CXX="$TOOLTOOL_DIR/gcc/bin/i686-w64-mingw32-g++"
HOST_CC="$TOOLTOOL_DIR/gcc/bin/gcc"
HOST_CXX="$TOOLTOOL_DIR/gcc/bin/g++"
--- a/ipc/mscom/ProxyStream.cpp
+++ b/ipc/mscom/ProxyStream.cpp
@@ -338,17 +338,17 @@ ProxyStream::ProxyStream(REFIID aIID, IU
});
createStreamResult = ::CreateStreamOnHGlobal(nullptr, TRUE,
getter_AddRefs(stream));
if (FAILED(createStreamResult)) {
return;
}
-#if defined(MOZ_CRASHREPORTER)
+#if defined(ACCESSIBILITY) && defined(MOZ_CRASHREPORTER)
ActivationContext::GetCurrentManifestPath(manifestPath);
#endif // defined(MOZ_CRASHREPORTER)
marshalResult = ::CoMarshalInterface(stream, aIID, aObject, MSHCTX_LOCAL,
nullptr, mshlFlags);
MOZ_DIAGNOSTIC_ASSERT(marshalResult != E_INVALIDARG);
if (FAILED(marshalResult)) {
return;