- May 03, 2022
-
-
Mike Hommey authored
Bug 1766561 - Use proper formatting directives in various places. r=gfx-reviewers,nika,necko-reviewers,mhowell,rkraesig,bytesized,kershaw Differential Revision: https://phabricator.services.mozilla.com/D144920
-
Mike Hommey authored
Bug 1766561 - Add missing l modifier for long formatting. r=Jamie,media-playback-reviewers,gfx-reviewers,nika,necko-reviewers,mhowell,rkraesig,gerald,application-update-reviewers,bytesized,alwu,kershaw Differential Revision: https://phabricator.services.mozilla.com/D144917
-
Mike Hommey authored
Bug 1766561 - Add missing l modifier for HRESULT formatting. r=media-playback-reviewers,gfx-reviewers,nika,necko-reviewers,rkraesig,alwu,kershaw Differential Revision: https://phabricator.services.mozilla.com/D144915
-
Mike Hommey authored
Using %0p raises the following error when printf annotations are enabled: error: flag '0' results in undefined behavior with 'p' conversion specifier Differential Revision: https://phabricator.services.mozilla.com/D144912
-
- Apr 14, 2022
-
-
Bryce Seager van Dyk authored
This adds enough annotations to get the code building locally for me with warnings as errors. However, this patch involves ignoring analysis for certain functions. My read of the code here is that it involves conditional unlocking. My understanding is this messes with the static analysis. Since I'm not familiar with this code, I decided it best I don't update the locking mechanisms, so went with the current approach. I'm happy for this patch to be stolen and extended, or superseded, or landed and then iterated on. Hopefully it's of some use as a starting point. Differential Revision: https://phabricator.services.mozilla.com/D142771
-
- Mar 16, 2022
-
-
Randell Jesup authored
Differential Revision: https://phabricator.services.mozilla.com/D140849
-
Noemi Erli authored
-
Randell Jesup authored
Differential Revision: https://phabricator.services.mozilla.com/D140849
-
Butkovits Atila authored
-
Randell Jesup authored
Differential Revision: https://phabricator.services.mozilla.com/D140849
-
- Mar 08, 2022
-
-
Gerald Squelart authored
Bug 1757596 - #include "mozilla/ProfilerThreadSleep.h" instead of GeckoProfiler.h where possible - r=florian And in one case, #include "mozilla/ProfilerThreadState.h" where only `AUTO_PROFILER_THREAD_WAKE` is used. Depends on D140172 Differential Revision: https://phabricator.services.mozilla.com/D140173
-
- Mar 04, 2022
-
-
Nika Layzell authored
Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 Automatically generated rewrites of all ParamTraits and IPDLParamTraits implementations in-tree to use IPC::Message{Reader,Writer}. Differential Revision: https://phabricator.services.mozilla.com/D140004
-
- Mar 02, 2022
-
-
Bob Owen authored
This is being done because the way the ID is determined causes issue with the sandbox and the ID is required very early in process start up. Differential Revision: https://phabricator.services.mozilla.com/D139649
-
- Feb 28, 2022
-
-
Marian-Vasile Laza authored
Backed out changeset 540d7dd134db (bug 1755979) for causing xpcshell failures on ContentParent.cpp. CLOSED TREE
-
Bob Owen authored
This is being done because the way the ID is determined causes issue with the sandbox and the ID is required very early in process start up. Differential Revision: https://phabricator.services.mozilla.com/D139649
-
- Feb 11, 2022
-
-
Florian Quèze authored
Differential Revision: https://phabricator.services.mozilla.com/D138341
-
- Nov 05, 2021
-
-
James Teh authored
Bug 1736742 part 2: Provide ability to register a COM handler inside an MSIX container. r=nalexander,jmathies We could do this in HKLM using registry.dat, but that file is difficult to manage. Instead, we register in HKCU at runtime. Also, RegCreateKeyTransacted doesn't work in MSIX containers, so we must use RegCreateKeyEx. Differential Revision: https://phabricator.services.mozilla.com/D129950
-
James Teh authored
Bug 1736742 part 2: Provide ability to register a COM handler inside an MSIX container. r=nalexander,jmathies a=pascalc We could do this in HKLM using registry.dat, but that file is difficult to manage. Instead, we register in HKCU at runtime. Also, RegCreateKeyTransacted doesn't work in MSIX containers, so we must use RegCreateKeyEx. Differential Revision: https://phabricator.services.mozilla.com/D129950
-
- Nov 09, 2021
-
-
Pascal Chevrel authored
Backed out changeset 73e839872f8f (bug 1736742) Backed out changeset 997efd2f60cb (bug 1736742) Backed out changeset e05a0eb2bff7 (bug 1736742)
-
- Nov 05, 2021
-
-
James Teh authored
Bug 1736742 part 2: Provide ability to register a COM handler inside an MSIX container. r=nalexander,jmathies a=pascalc We could do this in HKLM using registry.dat, but that file is difficult to manage. Instead, we register in HKCU at runtime. Also, RegCreateKeyTransacted doesn't work in MSIX containers, so we must use RegCreateKeyEx. Differential Revision: https://phabricator.services.mozilla.com/D129950
-
James Teh authored
Bug 1736742 part 2: Provide ability to register a COM handler inside an MSIX container. r=nalexander,jmathies, a=RyanVM We could do this in HKLM using registry.dat, but that file is difficult to manage. Instead, we register in HKCU at runtime. Also, RegCreateKeyTransacted doesn't work in MSIX containers, so we must use RegCreateKeyEx. Differential Revision: https://phabricator.services.mozilla.com/D129950
-
- Sep 28, 2021
-
-
Mike Hommey authored
ipc/chromium/src/chrome/common/ipc_channel_win.cc(133,8): error: variable 'waited' set but not used [-Werror,-Wunused-but-set-variable] bool waited = false; ^ ipc/mscom/InterceptorLog.cpp(183,12): error: variable 'rv' set but not used [-Werror,-Wunused-but-set-variable] nsresult rv = mThread->Dispatch( ^ Differential Revision: https://phabricator.services.mozilla.com/D126455
-
- Sep 20, 2021
-
-
Bob Owen authored
Differential Revision: https://phabricator.services.mozilla.com/D124931
-
- Sep 15, 2021
-
-
Marian-Vasile Laza authored
Backed out changeset 0bd777eee249 (bug 1546154) Backed out changeset 611812ee62a2 (bug 1546154) Backed out changeset cef0aa18a3ab (bug 1546154) Backed out changeset cfda47fb0a46 (bug 1546154) Backed out changeset f3e005f5fedc (bug 1546154) Backed out changeset 7f50fca0c2cd (bug 1546154) Backed out changeset bbb0b25450f5 (bug 1546154)
-
Bob Owen authored
Differential Revision: https://phabricator.services.mozilla.com/D124931
-
- Aug 25, 2021
-
-
Andi-Bogdan Postelnicu authored
Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build` when the module governed by the build config file is not buildable outside on the unified environment. This needs to be done in order to have a hybrid build system that adds the possibility of combing unified build components with ones that are built outside of the unified eco system. Differential Revision: https://phabricator.services.mozilla.com/D122345
-
- Aug 09, 2021
-
-
Gabriele Svelto authored
Bug 1723934 - Remove useless nsExceptionHandler.h inclusions and crash reporter service definitions r=necko-reviewers,dragana Differential Revision: https://phabricator.services.mozilla.com/D121708
-
- Aug 04, 2021
-
-
Aaron Klotz authored
`mscom::ProcessRuntime` supports multiple instances because Reasons (TM). To make this happen, we store some information in `mozglue` that enforces serialization between instances and also informs an instance as to whether any other instances have successfully completed initialization. Unfortunately it is possible for us to encounter situations where one instance manages to *partially* but not *completely* finish initialization. Since our shared information is currently a simple `bool`, we cannot really capture this case. Furthermore, APIs such as `CoInitializeSecurity` will actually fail if called again after previous activity, so we should guard against multiple invocations within the same process. To improve this situation, I'd like to replace the shared `bool` with a typed enum that can provide finer-grained information as to how far a previous instance actually managed to get. Differential Revision: https://phabricator.services.mozilla.com/D121672
-
- Jul 15, 2021
-
-
Florian Quèze authored
Differential Revision: https://phabricator.services.mozilla.com/D119810
-
- Jul 07, 2021
-
-
Doug Thayer authored
This implements Jamie's suggested fixes for a screenreader issue when the skeleton UI is enabled. Most of the work here is just pulling out pieces from the files we needed to include in mozglue so that any references to, say, nsString or other pieces from libxul either no longer exist or are only included when building libxul. In a few cases this meant creating whole files to house single functions, which isn't so pretty, but it was the best I could come up with to get the job done. Differential Revision: https://phabricator.services.mozilla.com/D117663
-
Narcis Beleuzu authored
-
Doug Thayer authored
This implements Jamie's suggested fixes for a screenreader issue when the skeleton UI is enabled. Most of the work here is just pulling out pieces from the files we needed to include in mozglue so that any references to, say, nsString or other pieces from libxul either no longer exist or are only included when building libxul. In a few cases this meant creating whole files to house single functions, which isn't so pretty, but it was the best I could come up with to get the job done. Differential Revision: https://phabricator.services.mozilla.com/D117663
-
- Jun 26, 2021
-
-
Dorel Luca authored
Backed out changeset 11d1710e481f (bug 1714212) for Browser-chrome failures in toolkit/xre/test/browser_checkdllblockliststate.js. CLOSED TREE
-
Doug Thayer authored
This implements Jamie's suggested fixes for a screenreader issue when the skeleton UI is enabled. Most of the work here is just pulling out pieces from the files we needed to include in mozglue so that any references to, say, nsString or other pieces from libxul either no longer exist or are only included when building libxul. In a few cases this meant creating whole files to house single functions, which isn't so pretty, but it was the best I could come up with to get the job done. Differential Revision: https://phabricator.services.mozilla.com/D117663
-
- Jun 17, 2021
-
-
Andi-Bogdan Postelnicu authored
Updated with clang-format version 12.0.0 (taskcluster-FZRqPXamQIOU_i4hF0cAcg) Differential Revision: https://phabricator.services.mozilla.com/D117905
-
- Jun 14, 2021
-
-
Aaron Klotz authored
* We make `EnsureMTA`'s default constructor `private`, and `ProcessRuntime` a friend. `ProcessRuntime` calls this to eagerly create the MTA. * The default constructor uses the new-ish `CoIncrementMTAUsage` to create the MTA without requiring a dedicated thread (when available). Otherwise we fall back to the traditional method. In the latter case, we synchronously wait for the initialization to complete so that we are guaranteed to have an MTA when we return. * Some minor refactoring to make it easier to do the sync wait in the default constructor. I also renamed a couple of things just to make them more clear. Differential Revision: https://phabricator.services.mozilla.com/D113562
-
Aaron Klotz authored
This patch does the following: * General cleanup: * More explicit restrictions of how/when the various constructors are available. * `InitializeSecurity` is made `static`, since it doesn't really manipulate instance variables. * We move some logic for resolving `CoInitializeEx` flags into `GetDesiredApartmentType`. * Addition of `PostInit`: * This doesn't do anything at the moment, but since I'm already making a bunch of changes, I wanted to add this too. `PostInit` is a static method that is invoked once the `ProcessRuntime` is finished initializing, and, when present, the sandbox is fully enabled. * We call `EnsureMTA`'s default constructor to eagerly bring up the MTA. This causes all background threads to implicitly become members of the MTA, which means that we can eliminate `CoInitializeEx` calls throughout our codebase, since they're slow and most developers do not have a clear understanding of what those functions actually do. * This also simplifies the COM initialization in sandboxed content processes with Win32K lockdown, since if our main thread is in the implicit MTA, we can immediately initialize ourselves without needing to punt that work over to the persistent MTA thread. Differential Revision: https://phabricator.services.mozilla.com/D113560
-
- Jun 10, 2021
-
-
Marian-Vasile Laza authored
CLOSED TREE Backed out changeset 7cb0db27236c (bug 1707954) Backed out changeset fd52d202d10b (bug 1707954) Backed out changeset 55586d8f7bf4 (bug 1707954) Backed out changeset 49406bdac5ec (bug 1707954)
-
- Jun 09, 2021
-
-
Aaron Klotz authored
* We make `EnsureMTA`'s default constructor `private`, and `ProcessRuntime` a friend. `ProcessRuntime` calls this to eagerly create the MTA. * The default constructor uses the new-ish `CoIncrementMTAUsage` to create the MTA without requiring a dedicated thread (when available). Otherwise we fall back to the traditional method. In the latter case, we synchronously wait for the initialization to complete so that we are guaranteed to have an MTA when we return. * Some minor refactoring to make it easier to do the sync wait in the default constructor. I also renamed a couple of things just to make them more clear. Differential Revision: https://phabricator.services.mozilla.com/D113562
-
Aaron Klotz authored
This patch does the following: * General cleanup: * More explicit restrictions of how/when the various constructors are available. * `InitializeSecurity` is made `static`, since it doesn't really manipulate instance variables. * We move some logic for resolving `CoInitializeEx` flags into `GetDesiredApartmentType`. * Addition of `PostInit`: * This doesn't do anything at the moment, but since I'm already making a bunch of changes, I wanted to add this too. `PostInit` is a static method that is invoked once the `ProcessRuntime` is finished initializing, and, when present, the sandbox is fully enabled. * We call `EnsureMTA`'s default constructor to eagerly bring up the MTA. This causes all background threads to implicitly become members of the MTA, which means that we can eliminate `CoInitializeEx` calls throughout our codebase, since they're slow and most developers do not have a clear understanding of what those functions actually do. * This also simplifies the COM initialization in sandboxed content processes with Win32K lockdown, since if our main thread is in the implicit MTA, we can immediately initialize ourselves without needing to punt that work over to the persistent MTA thread. Differential Revision: https://phabricator.services.mozilla.com/D113560
-