Commit Graph
55 Commits
Author SHA1 Message Date
Sebastian Hengst 98e733129a Backed out changeset 4dab43248f15 (bug 1372823) for crashing GTest on Windows 10 x64 debug. r=backout
MozReview-Commit-ID: 1u7TFtv6Mdv
2017-09-21 17:27:32 +02:00
Bob Owen 97b8706961 Bug 1372823: Extend BaseThreadInitThunk thread start address verification to 64-bit. r=dmajor 2017-09-21 09:31:07 +01:00
David Parks a961707038 Bug 1388903 - Part 1: Add PrintDlgW to x64 DLL Interceptor Test. r=jimm
We will hook PrintDlgW in another part.
2017-08-29 15:23:19 -07:00
Chris Pearce 2cf337d4fd Bug 1392485 - Hook QueryDosDeviceW() in GMP process so it works inside the sandbox. r=bobowen,r=dmajor
We hook in kernelbase.dll rather than kernel32.dll, as hooking QueryDosDeviceW
kernel32.dll is failing on our Win8 tests, it seems because QueryDosDeviceW in
kernel32.dll redirects to kernelbase32.dll, and the redirect has insufficient
space for our hook in Win8. So hook in kernelbase.dll, where the redirect
redirects to instead.


MozReview-Commit-ID: JKRiKCd7Ibn
2017-08-23 10:56:41 +12:00
David Parks 4f3ee668fd Bug 1368033 - Ignore return value of SetCursorPos in TestDllInterceptor. r=dmajor
It's unclear why SetCursorPos is occasionally failing in automation but it sometimes returns FALSE so we ignore its return value in TestDllInterceptor.  The majority of the value of these tests is simply in the execution of the method so the return value wasn't providing much anyway.
2017-05-30 23:04:48 -07:00
David Parks 0114908c11 Bug 1363290 - Part 3: Proxy win32's SetCursorPos for plugins in chrome process. r=jimm, r=jed
SetCursorPos is used by Flash's relative cursor motion behavior.  It is blocked by the plugin sandbox.  This patch allows it to run by proxying it on the main process.
2017-05-16 14:47:09 -07:00
Carl Corcoran e5a0729673 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=aklotz,dmajor
MozReview-Commit-ID: 8Jm1PXyRrEr
2017-05-24 11:56:40 +02:00
Cervantes Yu 18d9b2f597 Bug 1348747 - Part 3: Test intercepting TlsAlloc() and TlsFree() in kernel32.dll. r=handyman
MozReview-Commit-ID: 3XJNPlcET56
2017-05-19 15:54:03 +08:00
David Major da7861fdce Bug 1180561 - Bustage followup - 32-bit builds don't have RtlIFTC. CLOSED TREE 2017-05-18 17:16:36 -04:00
David Major 6a209ba9cc Bug 1180561 - Intercept msmpeg2vdec's JIT unwind callback on Win7 x64. r=aklotz
So we can avoid stack-walking their JIT code. They don't have unwind information so their callback just kills the process.
2017-05-18 16:15:29 -04:00
David Major 0592e01495 Bug 1365415: No need to hook LdrResolveDelayLoadedAPI on Win7, it doesn't exist. r=mstange 2017-05-17 15:26:13 -04:00
David Major dbf7d48502 Bug 1355559: Suppress stack walking in LdrResolveDelayLoadedAPI. r=mstange,aklotz 2017-05-03 23:26:47 -04:00
David Major 9ecef320e5 Bug 1349444: Suppress stack walking in LdrUnloadDll. r=mstange,aklotz,froydnj 2017-05-03 17:13:31 -04:00
Phil Ringnalda eea14233dd Backed out changeset a50a4f9e972b (bug 1322554) for near-permaorange in Win8 debug updater xpcshell tests 2017-04-06 21:00:26 -07:00
Carl Corcoran 58e0c77274 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=dmajor
MozReview-Commit-ID: CvqZ3gXJyvo
2017-03-29 17:07:37 +02:00
David Parks 5f588e8436 Bug 1328996 - Add tests that run the intercepted DLL methods, in order to test their harness. r=aklotz
Adding this has exposed harness failures in CreateFileA. Additionally, we haven't added a test for ImmSetCandidateWindow as it is not easily tested.
2017-02-16 23:50:47 -08:00
David Parks 46eeb9eb93 Bug 1328996 - Enable tiptsf.dll's ProcessCaretEvents DLL Interceptor test on 64-bit Windows. r=aklotz 2017-02-03 12:00:56 -08:00
David Parks 436a5c6417 Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
Sebastian Hengst 2e7a11784b Backed out changeset 4e81ec8850dc (bug 1284897) 2017-02-21 23:13:34 +01:00
David Parks 35ba6a651f Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
Phil Ringnalda f72d4e4b61 Backed out 5 changesets (bug 1284897) for mozilla::SandboxPermissions::RemovePermissionsForProcess crashes
Backed out changeset 19b2fcee13a9 (bug 1284897)
Backed out changeset a5171791437f (bug 1284897)
Backed out changeset 3ea8b8a18515 (bug 1284897)
Backed out changeset 21497a4e3bde (bug 1284897)
Backed out changeset 12e17d5f0fa9 (bug 1284897)
2017-02-16 22:14:15 -08:00
David Parks e117791446 Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
Chris Peterson f0586107f4 Bug 1336778 - Part 4: Remove always-false #if WINVER < 0x0600 (Windows Vista) check in toolkit/win. r=jimm
As of bug 1325299, WINVER is always >= 0x0601 (Windows 7).

MozReview-Commit-ID: 4FbbaEcMdr
2017-01-25 00:30:55 -08:00
Aaron Klotz a9f4e30874 Bug 1329616: Use intercepted SendMessageTimeoutW to check for WM_GETOBJECT originating from tiptsf; r=jimm 2017-01-09 16:06:01 -07:00
Aaron Klotz 7a2c751712 Bug 1325676: Prevent Windows 8 touchscreen support from instantiating a11y; r=jimm
MozReview-Commit-ID: H7HQMmvBLol
2017-01-10 12:46:37 -07:00
Sebastian Hengst f1854a02dd Backed out changeset e3e129629026 (bug 1325676) for asserting in nsWindow.cpp on Windows 8 x64 debug. r=backout 2017-01-03 22:36:22 +01:00
Aaron Klotz caf4805ea2 Bug 1325676: Prevent Windows 8 touchscreen support from instantiating a11y; r=jimm
MozReview-Commit-ID: 5qgjBPSVrAh
2016-12-29 15:48:52 -07:00
Aaron Klotz 305fd02737 Bug 1310056: Part 1 - DllInterceptor improvements to support InSendMessageEx; r=m_kato
MozReview-Commit-ID: 2I1AHqKGfQi
2016-10-13 15:04:48 -06:00
Aaron Klotz 300573d01c Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan
MozReview-Commit-ID: 7DCQZc9eoQI
2016-10-13 14:56:23 -06:00
Makoto Kato 82d9cd1d80 Bug 1180684 - Part 1. Analyze MOV with GS. r=aklotz
Allow MOV with GS prefix on x64.  Windows 10 uses this opcode on GetKeyState().

MozReview-Commit-ID: CqDSxmWdkiH
2016-09-07 16:15:58 +09:00
Carsten "Tomcat" Book c6b7f22393 Backed out changeset 6e4e5e584c32 (bug 1240848) for causing bug 1241921 to reappear 2016-02-11 15:12:51 +01:00
Aaron Klotz bb4c2aefb8 Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan 2016-02-03 16:21:17 -07:00
Ryan VanderMeulen f540169261 Backed out changeset 9f34b95fa1d0 (bug 1240977) and changeset a786af9186eb (bug 1240848) for suspicion of causing the topcrashes in bug 1241921. a=topcrash 2016-01-22 18:27:10 -05:00
Aaron Klotz 37194a4457 Bug 1240848: Adds additional instructions to x64 detour patcher; r=ehsan 2016-01-19 15:14:24 -07:00
Makoto Kato 383ab62a88 Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Sebastian Hengst e8bb1c660e Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato 3f5f27d634 Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Makoto Kato fe5467c79e Bug 1112709 - CreateFileW isn't hooking properly on Windows 8/8.1. r=ehsan 2014-12-24 13:23:36 +09:00
David Major 9b10c7d93b Bug 951827 - Force a detour-style hook for LdrLoadDll. r=ehsan 2014-03-03 10:27:21 -05:00
Ryan VanderMeulen f6717b0b8e Backed out 5 changesets (bug 951827) for causing bug 975820.
Backed out changeset 16b840c2de31 (bug 951827)
Backed out changeset 8fb155711dfe (bug 951827)
Backed out changeset 1109dba48e6b (bug 951827)
Backed out changeset 236ed76eea8b (bug 951827)
Backed out changeset 96cf7c13a8cb (bug 951827)
2014-02-24 14:52:14 -05:00
David Major bc2ba56ce2 Bug 951827 - Part 5: Tests for shared hooks. r=ehsan 2014-02-14 15:00:41 -08:00
Aaron Klotz 8801b01009 Bug 902587 - Part 2C: Interpose NtCreateFile, NtReadFile, NtReadFileScatter, NtFlushBuffersFile, and NtQueryFullAttributesFile; r=ehsan 2013-12-09 21:17:03 -02:00
Makoto Kato 6e24584f19 Bug 899009 - TestDllInterceptor.exe crashes after hooking NtWriteFile on Windows 8 + MSVS2012. r=ehsan 2013-07-31 10:23:32 +09:00
Makoto Kato 4f1abc9a92 Bug 853128 - Turn off injecting test of NtFlushBuffersFile on x64. r=ehsan 2013-04-25 19:04:40 +09:00
Makoto Kato 5ae4b589b6 Bug 850957 - Update injection test for some functions. r=ehsan 2013-03-14 16:35:33 +09:00
Rafael Ávila de Espíndola 7b4ceded23 Bug 847468 - Poison NtWriteFileGather. r=BenWa. 2013-03-07 10:02:33 -05:00
Benoit Girard b1106f748c Bug 820852 - Implement write poisoning on Windows. r=ehsan,espindola 2013-01-10 16:50:16 -05:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Justin Lebar df6d195f29 Bug 742491 - Use a thread-safe DLL patcher on Windows, when possible. r=glandium 2012-04-10 15:52:56 -04:00
Jacek Caban 15a1772cab Bug 686110 - TestDllInterceptor.cpp fails to compile on mingw r=glandium 2011-10-13 16:01:52 +02:00