Aaron Klotz
7d2dd562c2
Bug 1342992: Make mscom::Weakref final; r=jimm
...
MozReview-Commit-ID: 7SZpXP2adK7
--HG--
extra : rebase_source : 49e9108c9ade5d4392f9a4ec52fb8413512ccc88
2017-02-27 11:44:45 -07:00
Michael Layzell
893ed78ef5
Bug 1336510 - Part 10: Remove unnecessary assertion from SharedRef::Clear(), r=aklotz
...
MozReview-Commit-ID: Fx7CmxgiJpo
2017-02-24 14:34:32 -05:00
Michael Layzell
ac9295ead2
Bug 1336510 - Part 7: Stop capturing this by value in windows-only code, r=aklotz
...
MozReview-Commit-ID: B4dYo4ETzkL
2017-02-24 14:34:27 -05:00
Wes Kocher
7e8f316730
Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
...
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)
MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell
dac86659ac
Bug 1336510 - Part 7: Stop capturing this by value in windows-only code, r=aklotz
...
MozReview-Commit-ID: B4dYo4ETzkL
2017-02-23 12:24:12 -05:00
Phil Ringnalda
68316b419c
Backed out 2 changesets (bug 1303060
) for Windows static-analysis bustage
...
CLOSED TREE
Backed out changeset 729a1b8c7e47 (bug 1303060
)
Backed out changeset 604605ca738c (bug 1303060
)
2017-02-22 21:55:15 -08:00
Aaron Klotz
f3b557f70c
Bug 1303060: Additions to ipc/mscom for out-of-process components; r=jimm
...
MozReview-Commit-ID: IYjONGbBraG
--HG--
extra : rebase_source : a6eb90db7a9c21b91b9e763a15a9a661d41c5e77
2017-02-17 16:20:51 -07:00
Aaron Klotz
af5bd498da
Bug 1303060: ipc/mscom changes for handler and payload support; r=jimm
...
MozReview-Commit-ID: 13NFW1pgxix
--HG--
extra : rebase_source : 18cc11d4c1dc62bc0ee428608f6cb57e32c4d0af
2017-02-17 17:30:03 -07:00
Aaron Klotz
3d7955bc43
Bug 1338609: Add the ability to serialize and deserialize structs using Microsoft RPC to mscom; r=jimm
...
MozReview-Commit-ID: CSkNYCIQYQe
--HG--
extra : rebase_source : 8e357eb60adf2040d30f826b1805c35163456aa0
2017-02-17 14:26:56 -07:00
Aaron Klotz
74cac7296d
Bug 1338596: Add support for agile references to mscom; r=jimm
...
MozReview-Commit-ID: 1NZoFZntO3g
--HG--
extra : rebase_source : 6d3ed1da4893747d38c1bd2c31671d8ecf535cfd
2017-02-10 11:18:26 -07:00
Ryan VanderMeulen
4c43de6e62
Bug 1341082 - Add ACCESSIBILITY guards to functions in Utils.cpp that depend on it being enabled. r=aklotz
2017-02-21 15:27:18 -05:00
Aaron Klotz
d8a1f446d1
Bug 1339951: Refactor mscom weak reference support and establish lock hierarchy within; r=jimm
...
MozReview-Commit-ID: BJJpSj44alY
--HG--
extra : rebase_source : ed64776fc38dd59af48edd6b24959c012755b67a
2017-02-17 17:35:01 -07:00
Sebastian Hengst
892a8de889
Backed out changeset 06cd86f16c70 (bug 1339951) in hope for fix for a11y related crashes e.g. in Mn-e10s on Windows 8 x64 debug test_accessibility.py TestAccessibility.test_click_raises_element_not_accessible. r=backout
2017-02-18 01:18:45 +01:00
Aaron Klotz
440976dd4f
Bug 1339947: Make mscom ArrayData lookup respect interface inheritance; r=jimm
...
MozReview-Commit-ID: 5zJTzT7JJhJ
--HG--
extra : rebase_source : 1cc459ae3b50a0424c336467e3e99db387eadd86
2017-02-10 14:16:29 -07:00
Aaron Klotz
a6c766977b
Bug 1339951: Refactor mscom weak reference support and establish lock hierarchy within; r=jimm
...
MozReview-Commit-ID: BJJpSj44alY
--HG--
extra : rebase_source : 2a18f861da83633a6cd443b80155946483e7cf49
2017-02-15 15:33:32 -07:00
Aaron Klotz
d236f79291
Bug 1339942: Make mscom registration able to be compiled and run outside Mozilla processes; r=jimm
...
MozReview-Commit-ID: 3ETSE5Qn8nd
--HG--
extra : rebase_source : cfab62cd77e0bed75a8600d1f0441b9683966307
2017-02-15 14:37:20 -07:00
Aaron Klotz
b9df44ad52
Bug 1338600: Add support for COM asynchronous interfaces to mscom; r=jimm
...
MozReview-Commit-ID: EcbeH9KSZrQ
--HG--
extra : rebase_source : 11919a376bfa7f58d5a18d005ab78c9f84b63688
2017-02-15 14:09:02 -07:00
Nicholas Nethercote
334f89c567
Bug 1339327 (part 5) - Rename some profiler functions related to sleeping. r=mstange.
...
The new names make it clearer that these actions apply to just one thread.
- profiler_sleep_start() --> profiler_thread_sleep()
- profiler_sleep_end() --> profiler_thread_wake()
- profiler_is_sleeping() --> profiler_thread_is_sleeping()
- GeckoProfilerSleepRAII --> GeckoProfilerThreadSleepRAII
- GeckoProfilerWakeRAII --> GeckoProfilerThreadWakeRAII
2017-02-15 14:26:23 +11:00
Aaron Klotz
08f3a463ec
Bug 1334665: Eliminate runtime dynamic linking for pre-win7 functions in ipc/mscom; r=jimm
...
MozReview-Commit-ID: 7ySl728hdka
--HG--
extra : rebase_source : fd5914c70fb89176a71ffbc636c0f39662cf9d38
2017-01-27 14:53:20 -07:00
Aaron Klotz
3ef6514406
Bug 1335235: Add disabling of the COM BSTR cache to mscom::MainThreadRuntime; r=jimm
...
MozReview-Commit-ID: 5RQvHiBoD2B
--HG--
extra : rebase_source : 52425f3e5838939d17c29729caf70534212c328a
2017-01-30 16:39:08 -07:00
Joel Maher
566fa285c7
Bug 1333460 - add BUG_COMPONENT to ipc/* files. r=billm
...
MozReview-Commit-ID: G9jzVGDlAaz
2017-01-25 06:17:10 -05:00
Aaron Klotz
a2e223b2f8
Bug 1331687: Overload mscom::RegisterProxy to allow proxy registration from within xul.dll itself; r=jimm
...
MozReview-Commit-ID: EiIS5sOCntb
--HG--
extra : rebase_source : e0c5f6001bc4c85bdf1db10baa748e393df5a031
2017-01-17 13:19:40 -07:00
Chris Peterson
971f368adf
Bug 1330496 - Part 3: Remove other ipc checks for Windows Vista or 7+. r=aklotz
...
MozReview-Commit-ID: 9z5LKw71Veg
--HG--
extra : rebase_source : 34e4edb7f5dd92cdca0ca638398705ded48bd3bc
extra : histedit_source : 06350bb2aa8baf386431e634d63819d87cd18fe1
2017-01-09 21:03:57 -08:00
Wes Kocher
f2afbdd978
Backed out changeset 8da0d71a754c (bug 1325834) for mn-e10s bustage a=backout
...
MozReview-Commit-ID: 85BcTBhW6HY
2017-01-10 17:33:39 -08:00
Aaron Klotz
ab058eb02b
Bug 1325834: Add MOZ_DIAGNOSTIC_ASSERTs to mscom proxy deserialization code; r=jimm
...
MozReview-Commit-ID: 9i4A1SFkyZP
--HG--
extra : amend_source : 408641f3624861d6ce624e4766994dbc3d37e10c
2017-01-10 13:55:32 -07:00
Ting-Yu Chou
0643b83e9b
Bug 1322465 part 6 - Use explicit/MOZ_IMPLICIT for the unary constructors in ipc/. r=aklotz,Ehsan
...
MozReview-Commit-ID: 6vg1HZaWtS
--HG--
extra : rebase_source : 3d9a0b6ee94d86c6e9346b59a3567071667c5820
2016-12-16 15:56:04 +08:00
Ting-Yu Chou
76cef3b73d
Bug 1322460 - Don't addref/release on the return value of prohibited functions. r=aklotz,Ehsan
...
MozReview-Commit-ID: B0mAMZp5sll
--HG--
extra : rebase_source : fb5e25352089e26172189b9c4f2be8c5553fa5a8
2016-12-14 14:34:26 +08:00
Ting-Yu Chou
4f285bd583
Bug 1322458 - Fix kungFuDeathGrip errors that clang plugin reports on Windows. r=aklotz,Ehsan
...
MozReview-Commit-ID: FLTLZSg2yh9
--HG--
extra : rebase_source : e8aad8f35cffb3312e043a4fcec6296371baf432
2016-12-14 16:34:12 +08:00
Nathan Froyd
2ebbd09068
Bug 1320752 - remove mozilla/Function.h; r=gerald
...
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Aaron Klotz
389462bb42
Bug 1294903: Add a default constructor to mscom::EnsureMTA that ensures that the MTA thread is running; r=jimm
...
MozReview-Commit-ID: IN4maTgdL4l
--HG--
extra : rebase_source : 95e31fb15b02f1dc04b20f4684464386848d1d93
2016-11-15 11:33:57 -07:00
Aaron Klotz
31db1f008a
Bug 1315638: Modify MainThreadHandoff::FixArrayElements to be able to distinguish between outparams with different levels of indirection; r=jimm
...
MozReview-Commit-ID: HZgED9JT16m
--HG--
extra : rebase_source : 3b147251d55229aa5722d9f9ec6a9ad832a83c87
2016-11-07 16:04:06 -07:00
Wes Kocher
db15df3e50
Merge m-c to inbound, a=merge CLOSED TREE
2016-11-04 15:19:49 -07:00
Jacek Caban
28399d9154
Bug 1263224: cross-compilation fixup.
2016-11-04 15:40:41 +01:00
Aaron Klotz
a7baaddbf0
Bug 1311748: Remove extra pointer dereference from MainThreadHandoff::FixArrayElements; r=jimm
...
MozReview-Commit-ID: 2hLgQ1km07J
--HG--
extra : rebase_source : 371222c8106fd662a4a455117621f22bbc1b3bef
2016-11-03 11:25:26 -06:00
Carsten "Tomcat" Book
9031c83f32
Merge mozilla-central to autoland
2016-10-26 17:14:27 +02:00
Aaron Klotz
8cfa990adf
Bug 1311834: Make MainThreadInvoker use a spin loop on multiprocessor machines; r=jimm
...
MozReview-Commit-ID: 5xKdm7Z4oKs
--HG--
extra : rebase_source : f71e3b762501d8e24446ba8913c841cfe03a277b
2016-10-25 15:43:40 -06:00
Aaron Klotz
938166ed49
Bug 1310841: Make mscom registration use CoGetClassObject so that COM will retain a reference to the proxy dll; r=jimm
...
MozReview-Commit-ID: GZxbLCC6gVi
--HG--
extra : amend_source : 3cee23be271cfd35860869bd9446a3c95aaa4945
extra : histedit_source : 25a8893fff465ffc50dc95c2a8a5f011f0fd381f
2016-10-25 15:04:47 -06:00
Aaron Klotz
9772dd793a
Bug 1306014: Modify ipc/mscom/moz.build to only build essentials when a11y is disabled in build config; r=jimm
...
MozReview-Commit-ID: 4B08546SS4w
--HG--
extra : rebase_source : bded5176afaf99cb681c1be4b70edb9457ed2028
2016-09-28 14:09:07 -06:00
Aaron Klotz
96c052cf1f
Bug 1304883: Modify mscom::MainThreadInvoker and Win32 widget to use atomic boolean to flag pending APCs; r=jimm
...
MozReview-Commit-ID: 7fXoDkBEd2V
--HG--
extra : rebase_source : 1960f9bf8294bfea15209554dd7fdc0ce1df5dcc
2016-09-22 15:07:01 -06:00
Carsten "Tomcat" Book
0f2c669a48
merge mozilla-inbound to mozilla-central a=merge
2016-09-09 12:02:43 +02:00
Aaron Klotz
fec23fc114
Bug 1301217: Ensure that RegisteredProxy objects are MTA-aware; r=jimm
...
MozReview-Commit-ID: HStX3pBl5ly
2016-09-07 16:10:45 -06:00
Aaron Klotz
23956d09e2
Bug 1301184: Notify the profiler and hang monitor when we're executing APCs; r=jimm
...
MozReview-Commit-ID: B4nTiAf9GNk
2016-09-06 14:39:37 -06:00
Kacper Michajlow
47fc1444d9
Bug 1297794 - Fix SetEntriesInAcl failure on non-English Windows version. r=aklotz
...
MozReview-Commit-ID: 4FJBtUBjPEu
--HG--
extra : rebase_source : 4463d4d897587e9a6427252b4c373b38c2c6331d
2016-08-24 20:57:16 +02:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Nathan Froyd
40d6f37643
Bug 1298462 - tidy ipc/mscom/ files to avoid warnings from clang-cl; r=aklotz
...
Changing classes to `final` avoids complaints about deleting a class with
virtual functions. Making destructors private avoids static_asserts from
XPCOM code about refcounted classes with public destructors.
MozReview-Commit-ID: IiPrZln1wvj
--HG--
extra : rebase_source : 5d70eea909e9d8c7f191c465b700b778b7ff564c
2016-08-26 14:26:29 -04:00
Aaron Klotz
63a3869bb8
Bug 1298412: Fix Interceptor construction to use Move semantics for STAUniquePtr instead of pass-by-reference; r=jimm
...
MozReview-Commit-ID: 8DzeT35Ao4O
--HG--
extra : rebase_source : 14a94903843e54c1c4a4b6c980805ed37d878911
2016-08-26 10:03:17 -06:00
Nathan Froyd
ed976e566d
Bug 1298882 - ensure mozilla/mscom/Utils.h is included with uniform casing; r=aklotz
...
We install mozilla/mscom/Utils.h, but include it with an all-lowercased
path in some places. clang-cl warns about this, and even though this is
Windows-only code and will therefore work, it's better to make
everything consistent.
2016-08-29 21:55:37 -04:00
Nathan Froyd
6d0ffbfa26
Bug 1298840 - declare dependent type with typename in ParamTraits<COMPtrHolder<Interface, _IID>>; r=aklotz
...
MSVC lets this slide, but clang-cl complains about the missing typename.
2016-08-29 21:47:03 -04:00
Aaron Klotz
bed7a5af8c
Bug 1292452: MainThreadHandoff enhancements to support array outparams in IA2; r=jimm
...
MozReview-Commit-ID: LTxj7fHEoAb
--HG--
extra : histedit_source : cbf34c9dac0acee94f0a8fe6488567530ededd0d
2016-08-08 18:06:51 -06:00
Sebastian Hengst
1ab23ac869
Backed out changeset dd26b9ddef2c (bug 1292452)
2016-08-19 10:02:02 +02:00