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
Wes Kocher
a58f8b89a0
Merge m-c to inbound, a=merge
2016-08-18 16:32:58 -07:00
Aaron Klotz
2745382e59
Bug 1293486: Add tearoff IDispatch handler to mscom interceptor; r=jimm
...
MozReview-Commit-ID: 9PSbpkNcOOh
--HG--
extra : rebase_source : 13ba9a670a43dc68b7760410fd808e03e1ac6d9c
2016-08-12 12:12:48 -06:00
Aaron Klotz
cf36a3119b
Bug 1292452: MainThreadHandoff enhancements to support array outparams in IA2; r=jimm
...
MozReview-Commit-ID: LTxj7fHEoAb
2016-08-08 18:06:51 -06:00
Aaron Klotz
54e228e02f
Bug 1296333: Ensure better handling of nullptr and IUnknown in ipc::mscom; r=jimm
...
MozReview-Commit-ID: H1PvH3PIWdK
--HG--
extra : amend_source : 7d41fb7bfcd2576d316900361d23f966b478e277
2016-08-18 09:48:48 -06:00
Aaron Klotz
fc25b0f50c
Bug 1287875: Don't try to obtain NS_APP_CONTENT_PROCESS_TEMP_DIR unless MOZ_CONTENT_SANDBOX is defined; r=haik
...
MozReview-Commit-ID: Li1I4CtmXvE
--HG--
extra : rebase_source : 72357591259f261b5310e9679f752d9c949951f8
2016-07-29 12:20:01 -06:00
Aaron Klotz
1e94ab2a1b
Bug 1263224: Add ability to wrap a COM method invocation and hand it off to the main thread for execution; r=jimm
...
MozReview-Commit-ID: EfoH3imaev5
--HG--
extra : rebase_source : d158c737c5ae789ea64bec99ab09b14a92e8c4f3
2016-07-19 13:31:25 -06:00
Aaron Klotz
76d0ed29d4
Bug 1263224: Adds COM interception that allows us to proxy COM invocations; r=jimm
...
MozReview-Commit-ID: 7dp0Jokg0X3
--HG--
extra : rebase_source : 6c8e2a85b896dbb143dfc5ecd8088b24524689d7
2016-07-27 11:44:56 -06:00
Aaron Klotz
05c8c56d9d
Bug 1263224: Add support for thread-safe weak references for COM-based objects; r=jimm
...
MozReview-Commit-ID: JxVMyDhNPs4
--HG--
extra : rebase_source : 66366989c31c6b4fb1e640e54ba3b81d3729526b
2016-07-19 13:36:55 -06:00
Aaron Klotz
89a48d5463
Bug 1263224: Adds MainThreadInvoker class for posting Asynchronous Procedure Calls to the main thread; r=jimm
...
MozReview-Commit-ID: 6Be0p0z9CXI
--HG--
extra : rebase_source : ca9f37da2e3da31efbdb1b770d70c7f28f07c37f
2016-07-19 13:35:36 -06:00
Aaron Klotz
62f0203838
Bug 1263224: Smart pointers for passing COM interface pointers around in other apartments; r=jimm
...
MozReview-Commit-ID: 377VvQ5PMCJ
--HG--
extra : rebase_source : c64ed8690ee42141ebe6aa97ef0b750c7e058647
2016-07-19 13:13:31 -06:00
Aaron Klotz
fcdf74c9f5
Bug 1287875: Adds a logging facility for intercepted COM traffic; r=jimm
...
MozReview-Commit-ID: BfjSAVOo18G
--HG--
extra : rebase_source : 70dd4a9fc6464f4168b0e97554efc8c8c416fb58
2016-07-14 17:11:33 -06:00
Aaron Klotz
a0b2e7cafa
Bug 1286986: Add glue to enable process-local registration of COM proxies at runtime; r=jimm
...
MozReview-Commit-ID: 7VTCPQa90Vv
--HG--
extra : rebase_source : 58808455042378883a4df8f97010702d03824e00
2016-07-27 11:45:08 -06:00
Aaron Klotz
b99626af7a
Bug 1261107: Adds code to marshal a Microsoft COM object and transfer its serialized proxy across IPDL; r=billm,jimm
...
MozReview-Commit-ID: BpSpue4Fq6G
--HG--
extra : rebase_source : 32a33339b3c6dcd69fadd6d2987bafd2ded9c689
2016-07-27 11:44:29 -06:00
Aaron Klotz
39c0509759
Bug 1261107: Add EnsureMTA class to ipc/mscom/Utils. This class synchronously executes a function on a background thread that resides in Microsoft COM's multithreaded apartment; r=jimm
...
MozReview-Commit-ID: KTE1VdCYS0O
--HG--
extra : rebase_source : e5dc30a20447830c1c33e4bc7479b56627ad52f9
2016-07-18 13:49:28 -06:00
Aaron Klotz
7f91347e43
Bug 1261107: Add IsCurrentThreadMTA() to ipc/mscom/Utils; r=jimm
...
MozReview-Commit-ID: 3ezKIAmvZZM
--HG--
extra : rebase_source : 50fc20f3e7fa19c94cdc37afc15e262ac479ac28
2016-07-18 13:47:34 -06:00
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Aaron Klotz
52f2033824
Bug 1277075: Add MainThreadRuntime class to mscom glue, enabling safe initialization of COM security and exception handlers; r=jimm
...
MozReview-Commit-ID: 9Ig9wb4KVps
--HG--
extra : rebase_source : 6a8da83dbdae9b7407598997ffbe56eeca3a4d26
2016-07-20 11:10:46 -06:00
Iris Hsiao
7e0c7b0fbf
Backed out changeset 88e5ef869df6 (bug 1277075) for assertion failures
2016-07-20 14:13:10 +08:00
Aaron Klotz
102b144717
Bug 1277075: Add MainThreadRuntime class to mscom glue, enabling safe initialization of COM security and exception handlers; r=jimm
...
MozReview-Commit-ID: 9Ig9wb4KVps
--HG--
extra : rebase_source : 23b5a577b19e40729476299049a0dc464ba6e4de
2016-07-14 16:54:53 -06:00
Iris Hsiao
a024afd017
Backed out changeset 26fe03ac12be (bug 1277075) for Windows build bustage
2016-07-19 12:36:27 +08:00
Aaron Klotz
20b5649ee9
Bug 1277075: Add MainThreadRuntime class to mscom glue, enabling safe initialization of COM security and exception handlers; r=jimm
...
MozReview-Commit-ID: BKDnWQLCYGI
--HG--
extra : rebase_source : 091ed78a5b30c674ad8a7964b0ae5ffe66e905e5
2016-07-14 16:54:53 -06:00
Aaron Klotz
f92a107e86
Bug 1287002: Add DynamicallyLinkedFunctionPtr helper class to mscom glue; r=jimm
...
MozReview-Commit-ID: JnsXxi3oQ9r
--HG--
extra : rebase_source : fd0806fcd47b3d060236db00277415a4cf07e9c7
2016-06-03 12:56:24 -06:00
Aaron Klotz
67768a9eb7
Bug 1287002: Utility functions for Microsoft COM glue; r=jimm
...
MozReview-Commit-ID: DTH2lIvKjX9
--HG--
extra : rebase_source : e7e4e32f2175322c4ab20a205e37f6b2d34822f8
2016-07-14 16:55:31 -06:00
Aaron Klotz
140fb74701
Bug 1287002: Add RAII class for entering a COM apartment; r=jimm
...
MozReview-Commit-ID: DEwU3vU1P5P
--HG--
extra : rebase_source : 05f2ce1b51e32e369965c189ead9071b05b6e498
2016-06-03 12:30:31 -06:00
Aaron Klotz
c8479a9f4c
Bug 1287002: Skeleton moz.build for ipc/mscom directory; r=billm
...
MozReview-Commit-ID: 4SDUWyTCppL
--HG--
extra : rebase_source : fd96ce17f38936e4e51bcc837c615cc80932f3f5
2016-06-03 12:29:21 -06:00