Aaron Klotz
087af67af1
Bug 1549797: Remove loader hooks for TestDllBlocklist from mozglue; r=mhowell
...
We remove the debugging hooks that were added to check to see whether a DLL
was loaded, as we can just as easily check that by querying the loader itself.
Plus, we shouldn't be exporting a bunch of test-only loader hooks from mozglue
in our release builds, which is what we are currently doing.
We also remove Injector, InjectorDLL, and TestDLLEject, as these tests can
just as easily be done from within TestDllBlocklist by creating a thread with
LoadLibrary* as the entry point. The CreateRemoteThread stuff, while a more
accurate simulation, has no material effect on whether or not the thread
blocking code works.
Differential Revision: https://phabricator.services.mozilla.com/D34444
--HG--
extra : moz-landing-system : lando
2019-06-11 17:15:20 +00:00
Aaron Klotz
28466cb97e
Bug 1460433: Part 1 - Change BasicDllServices to not do any dll notification callbacks; r=mhowell
...
BasicDllServices is used to gain access to the authenticode APIs in non-Gecko
contexts. One feature that WinDllServices provides is the ability to register
a callback interface to be notified when a DLL has been loaded.
This is not particularly useful in the BasicDllServices use case, and in the
"handle a launcher process failure on a background thread" use case, would
actually be harmful.
This patch modifies the DLLServices backend to offer a "basic" option that
omits the callback stuff.
Differential Revision: https://phabricator.services.mozilla.com/D19696
--HG--
extra : moz-landing-system : lando
2019-02-20 06:18:45 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Carl Corcoran
7db61ed776
Bug 1473103: Add unit tests for DLL blocklist integrity; r=aklotz
...
Differential Revision: https://phabricator.services.mozilla.com/D2219
--HG--
extra : moz-landing-system : lando
2018-09-10 22:01:10 +00:00
Carl Corcoran
7da8e04c87
Bug 1467736: Add support for DllBlocklist_Shutdown;r=aklotz
...
Differential Revision: https://phabricator.services.mozilla.com/D4544
--HG--
extra : moz-landing-system : lando
2018-08-29 18:49:49 +00:00
Nathan Froyd
7d55fef8da
Bug 1486040 - make WindowsDllBlocklist.h functional for aarch64 windows; r=aklotz
2018-08-28 09:27:57 -04:00
Carl Corcoran
63153c7e3b
Bug 1443411: Add gtests for blocking threads with LoadLibrary start address;r=aklotz
...
MozReview-Commit-ID: 2wIUNnNoKa8
--HG--
extra : rebase_source : f1990af6cd130d9bca38ef21d64d66584d20b94e
2018-06-14 00:15:26 -07:00
Aaron Klotz
d057aef830
Bug 1445025: Part 2 - Move blocklist definitions into separate header file and add new initialization flag; r=mhowell
...
* This allows us to use a single blocklist definition in multiple places.
* This patch also adds support for a new initialization flag that, when enabled,
disables the DLL Blocking part of the mozglue blocklist but leaves the
profiling and stackwalking suppression bits intact.
2018-06-05 15:16:13 -06:00
Cosmin Sabou
1cda6f4992
Backed out 6 changesets (bug 1445025
) for browser chrome failures on browser_checkdllblockliststate.js. CLOSED TREE
...
Backed out changeset a1203eb4cee9 (bug 1445025
)
Backed out changeset 64b003dceafb (bug 1445025
)
Backed out changeset a6cff2b478da (bug 1445025
)
Backed out changeset 4dbc7fbb3361 (bug 1445025
)
Backed out changeset 1ad82650ca1c (bug 1445025
)
Backed out changeset 5c63001e1ce6 (bug 1445025
)
--HG--
rename : browser/app/winlauncher/LaunchUnelevated.cpp => browser/app/LaunchUnelevated.cpp
rename : browser/app/winlauncher/LaunchUnelevated.h => browser/app/LaunchUnelevated.h
rename : browser/app/winlauncher/LauncherProcessWin.cpp => browser/app/LauncherProcessWin.cpp
rename : browser/app/winlauncher/LauncherProcessWin.h => browser/app/LauncherProcessWin.h
rename : browser/app/winlauncher/ProcThreadAttributes.h => browser/app/ProcThreadAttributes.h
2018-06-07 12:09:22 +03:00
Aaron Klotz
05eb3b3d8a
Bug 1445025: Part 2 - Move blocklist definitions into separate header file and add new initialization flag; r=mhowell
...
* This allows us to use a single blocklist definition in multiple places.
* This patch also adds support for a new initialization flag that, when enabled,
disables the DLL Blocking part of the mozglue blocklist but leaves the
profiling and stackwalking suppression bits intact.
--HG--
extra : rebase_source : ff4dad72f57c5662fc9e1bbd9e4efb3ff01470ef
2018-06-05 15:16:13 -06:00
Aaron Klotz
0213e8a4b6
Bug 1430857: Part 1 - Refactor DllServices to make it possible to obtain them from anywhere in Gecko; r=jimm
...
MozReview-Commit-ID: GfWata0eCc5
--HG--
extra : rebase_source : f280fec92c867d0adbe7b82c0e829eeb10fce5a9
2018-01-30 14:23:10 -07:00
Dorel Luca
112cc1ff6b
Backed out 3 changesets (bug 1430857) for breaking tests on Windows Code Coverage builds a=backout
...
Backed out changeset a992887a6060 (bug 1430857)
Backed out changeset cc9b0ac5f66b (bug 1430857)
Backed out changeset 4bdd6d82f993 (bug 1430857)
2018-02-07 15:02:58 +02:00
Aaron Klotz
200eb77750
Bug 1430857: Part 1 - Refactor DllServices to make it possible to obtain them from anywhere in Gecko; r=jimm
...
MozReview-Commit-ID: GfWata0eCc5
--HG--
extra : rebase_source : 3a5b4a6f0412311f0b9080a2b3b3a31e45d15b75
2018-01-30 14:23:10 -07:00
Gurzau Raul
c104d865cc
Backed out 2 changesets (bug 1430857) for build bustage on a CLOSED TREE
...
Backed out changeset b12ea04f9c5a (bug 1430857)
Backed out changeset 6b88557d1e50 (bug 1430857)
2018-02-06 23:27:33 +02:00
Aaron Klotz
eb3453b4d6
Bug 1430857: Part 1 - Refactor DllServices to make it possible to obtain them from anywhere in Gecko; r=jimm
...
MozReview-Commit-ID: GfWata0eCc5
--HG--
extra : rebase_source : d8d2ec74e7f452cb1e8b5430f4445f3b0fc9181a
2018-01-30 14:23:10 -07:00
Aaron Klotz
0f6431e1f3
Bug 1422394: Add a mechanism to report dll loads to an observer; r=jimm
...
MozReview-Commit-ID: 1ocag6jTBVV
2017-12-04 18:08:17 -07:00
Brindusan Cristian
14add183dc
Backed out 2 changesets (bug 1422394) for browser-chrome failure in test_headless_screenshot.html on Windows 7 debug non-e10s r=backout a=backout on a CLOSED TREE
...
Backed out changeset 8f233446cd06 (bug 1422394)
Backed out changeset 96940dc4db44 (bug 1422394)
2017-12-05 23:49:08 +02:00
Aaron Klotz
9da53d8e93
Bug 1422394: Add a mechanism to report dll loads to an observer; r=jimm
...
--HG--
extra : rebase_source : ddd40aa520447fea1bdccdbe8208bb3bfd26afe7
2017-12-04 18:08:17 -07:00
Tom Ritter
8407066758
Bug 1365047 Turn on the Windows DLL Blocklist in MinGW r=aklotz
...
MozReview-Commit-ID: 3hF7iOdH89P
--HG--
extra : rebase_source : 95614960544ae55b983dbbd40e1036ff236204b3
2017-05-15 15:49:20 -05:00
Aaron Klotz
831876bb4f
Bug 1363844: Add CHILD_PROCESSES_ONLY flag to Windows DLL blocklist; r=dmajor
...
MozReview-Commit-ID: f9ej2Hp0DF
2017-05-11 15:50:10 -06:00
David Major
850b25389e
Bug 1335163 - Remove the now-unused XPCOM ASLR checks in the DLL blocklist. r=bsmedberg
...
MozReview-Commit-ID: 2iY5g72d4xg
--HG--
extra : rebase_source : 309eb59fe0a98f0a4dfd384b3028a0ec107220c5
2017-02-01 10:52:13 +13:00
Ehsan Akhgari
1c687043f1
Bug 1251936 - Mark AutoSetXPCOMLoadOnMainThread's constructor as explicit
2016-12-23 21:03:21 -05:00
Jim Mathies
118ac04293
Bug 1286306 - Add an app info property exposing the state of the Windows dll blocklist, and test the value during browser test runs. r=bsmedberg
...
MozReview-Commit-ID: H7206wTh8YM
2016-07-27 15:20:58 -05:00
Jeff Muizelaar
f2757bc5b8
Bug 1275283. Use MFBT_API for importing/exporting in DLL blocklist. r=glandium
2016-05-24 17:57:57 -04:00
Michael Layzell
0097c41e01
Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan
2015-09-12 16:53:33 -04:00
David Major
4a637bff20
Bug 932100 - Part 2: Move DLL blocklist code to mozglue. r=bsmedberg, r=glandium
...
--HG--
rename : toolkit/xre/nsWindowsDllBlocklist.cpp => mozglue/build/WindowsDllBlocklist.cpp
2013-11-12 08:31:32 -05:00