Commit Graph
15875 Commits
Author SHA1 Message Date
Benjamin Smedberg bfb3212d31 Bug 1332639 followup. I apparently didn't actually remove the nsStringAPI.* files, but that was the intention, r=oops
MozReview-Commit-ID: GJBNWAmO6iy
2017-03-02 09:23:08 -05:00
Honza Bambas 6878cdeb28 Bug 1341017 - Fix XPCOM logging to work correctly with vsnprintf results. r=froydnj 2017-03-01 05:02:00 -05:00
Carsten "Tomcat" Book 3382689f96 Merge mozilla-central to mozilla-inbound 2017-03-01 16:39:27 +01:00
Carsten "Tomcat" Book f4f3d56e3d merge mozilla-inbound to mozilla-central a=merge 2017-03-01 11:40:59 +01:00
Kyle Machulis 098c8da606 Bug 1343337 - Remove IsDispatchReliable check from AbstractThread; r=bholley
MozReview-Commit-ID: JxnyAZpzIcV
2017-02-28 20:34:37 -08:00
Kyle Machulis 3eb378a2d4 Bug 1343335 - Add asserts to check for null AbstractThread targets in MozPromise; r=bholley
AbstractThread::GetCurrent() can return null if a thread isn't a
default AbstractThread (MainThread, etc). This doesn't get caught in
MozPromise until we try to check for reliability of dispatching on the
thread. Adding asserts to make things clearer on crashes.

MozReview-Commit-ID: AQJwpdTUiHZ
2017-02-28 20:34:37 -08:00
Benjamin Smedberg 59181ead76 Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
MozReview-Commit-ID: 9dZcmMAI0Vk
2017-02-27 11:41:52 -05:00
Benjamin Smedberg acbeca42d6 Bug 1332639 - Fix nsBrowserApp.cpp and related headers to compile without the external string API, r=glandium
MozReview-Commit-ID: CQjtpA2lxAM
2017-02-27 13:39:34 -05:00
JW Wang febe12b8a1 Bug 1342831 - devirtualize AssertIsDead(). r=gerald
MozReview-Commit-ID: 9dNDiTfwlLR
2017-02-25 22:56:49 +08:00
Ehsan Akhgari 7cb6285bb8 Bug 1342560 - Guarantee that the empty string atom is always static; r=froydnj 2017-02-27 10:51:43 -05:00
Wes Kocher bcedb6db4f Merge m-c to inbound, a=merge
MozReview-Commit-ID: Hh4I1wa4u49
2017-02-24 16:53:23 -08:00
Honza Bambas aa77abdc46 Bug 1340577 - Add release-grade assertions to various XPCOM string API implementations to avoid input causing an overflow. r=froydnj 2017-02-21 11:38:00 -05:00
Carsten "Tomcat" Book b156024e5f merge mozilla-inbound to mozilla-central a=merge 2017-02-24 11:46:38 +01:00
Julian Seward eb67afc06a Bug 1341255 - Profiler tidyups: remove StackEntry, rename ProfileEntry to ProfileBufferEntry (part 1: remove StackEntry). r=n.nethercote. 2017-02-23 23:04:13 +01:00
Mike Conley 6b1b0329c3 Bug 1312883 - Use MozStackWalk to gather native stacks on Windows. r=gfritzsche,jchen,liuche
MozReview-Commit-ID: A2aZAL03FG2
2017-02-16 12:05:46 -05:00
Mike Conley 872fc93e83 Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen
MozReview-Commit-ID: LpMSf6bSLy8
2017-02-17 17:13:57 -05:00
Mike Conley a2a69728c6 Bug 1312883 - MOZ_THREADSTACKHELPER_NATIVE should only be true on Windows. r=jchen
MozReview-Commit-ID: 3gf5FcnUUwa
2017-02-10 10:35:44 -05:00
Nicholas Nethercote 8d634015e3 Bug 1340928 (part 10) - Remove nested calls to profiler_{init,shutdown}(). r=mstange.
The profiler can currently handle nested calls to profiler_{init,shutdown}() --
only the first call to profiler_init() and the last call to profiler_shutdown()
do anything. And sure enough, we have the following.

- Outer init/shutdown pairs in XRE_main()/XRE_InitChildProcess() (via
  GeckoProfilerInitRAII).

- Inner init/shutdown pairs in NS_InitXPCOM2()/NS_InitMinimalXPCOM() (both shut
  down in ShutdownXPCOM()).

This is a bit silly, so the patch removes the inner pairs, and adds a
now-needed pair in XRE_XPCShellMain. This will allow gInitCount -- which tracks
the nesting depth -- to be removed in a future patch.
2017-02-15 17:08:38 +11:00
David Parks 433eeec78e Bug 1328996 - Add ability for 64-bit MOV instructions (those with REX.W bit set) to be patched in the DLL interceptor harness. r=aklotz
Also adds some ASSERTs to catch failures in the DLL interceptor.
2017-02-03 11:58:20 -08:00
David Parks b0304bb1c8 Bug 1284897 - Add mechanism to libsandbox_s to track names of files that have been given special sandbox access permissions (PermissionsService). r=bobowen, r=glandium
Hook this into the browser via the XREAppData. This patch does not include the changes to Chromium source code.
2017-02-14 15:08:40 -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
David Parks 9383caad88 Bug 1284897 - Add opcodes to nsWindowsDllInterceptor for GetSaveFileNameW, GetOpenFileNameW and ImmReleaseContext. r=aklotz
This includes a near-jump CALL instruction in x64, which expands to a far-jump CALL with a 64-bit address as inline data. This requires us to abandon the method where we memcpy the code block into the trampoline and, instead, build the trampoline function as we go.
2017-01-20 16:03:44 -08:00
Honza Bambas 7bb34043fb Bug 1340581 - Add some release-grade assertions to mozilla::Tokenizer to catch string overflows. r=froydnj 2017-02-22 06:53:00 -05:00
Sebastian Hengst 074b17a4f0 Backed out changeset 5739a7f790f2 (bug 1333899) for failing reftest svg-image-datauri-1.html on Linux opt and pgo. r=backout 2017-02-22 10:00:50 +01:00
Andrea Marchesini 2e34ed89e2 Bug 1339710 - Remove the implementation of SlicedInputStream::ReadSegments, r=smaug 2017-02-22 09:42:27 +01:00
Andrea Marchesini 6305941d12 Bug 1339710 - SlicedInputStream should be nsISeekableStream, r=smaug 2017-02-22 09:41:59 +01:00
Andrea Marchesini 9e63830670 Bug 1339710 - SlicedInputStream should be an nsIIPCSerializableInputStream, r=smaug 2017-02-22 09:41:05 +01:00
Andrea Marchesini 919ec678d4 Bug 1339710 - SlicedInputStream should not be nsICloneableInputStream if the source stream is not, r=smaug 2017-02-22 09:40:46 +01:00
Iris Hsiao 0230dfa2c7 Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
Backed out changeset 7c0ec55b44dc (bug 1339710)
Backed out changeset cbb4e1c2aada (bug 1339710)
Backed out changeset c685dca493f5 (bug 1339710)
Backed out changeset 4761a15d45fd (bug 1339710)
Backed out changeset 7561692c1bc7 (bug 1339710)
2017-02-22 16:19:50 +08:00
Andrea Marchesini 671ef871ca Bug 1339710 - Remove the implementation of SlicedInputStream::ReadSegmenets, r=smaug 2017-02-22 07:57:54 +01:00
Andrea Marchesini 4162b26d95 Bug 1339710 - SlicedInputStream should be nsISeekableStream, r=smaug 2017-02-22 07:57:14 +01:00
Andrea Marchesini d56f4170ce Bug 1339710 - SlicedInputStream should be an nsIIPCSerializableInputStream, r=smaug 2017-02-22 07:55:50 +01:00
Andrea Marchesini e137e36420 Bug 1339710 - SlicedInputStream should not be nsICloneableInputStream if the source stream is not, r=smaug 2017-02-22 07:54:46 +01:00
Eric Rahm a20c0e770a Bug 1333899 - Part 1: Add a fallible NS_UnescapeURL. r=froydnj
This adds a fallible version of |NS_UnescapeURL| that can be used to
gracefully handle allocation failures when the string needs to be unescaped.

MozReview-Commit-ID: 1eXPzeB2yrI
2017-02-21 17:56:34 -08:00
Marco Castelluccio 04e83173db Bug 1341023 - Take module name encoding into account for late writes and hangs. r=Dexter 2017-02-21 22:44:42 +00:00
Sebastian Hengst a73e872d71 Backed out changeset a176abd99d2b (bug 1284897) for "Unknown sync IPC message PPluginModule::GetFileName"; needs review from an IPC peer now. r=backout on a CLOSED TREE 2017-02-21 23:15:11 +01:00
Sebastian Hengst 2e7a11784b Backed out changeset 4e81ec8850dc (bug 1284897) 2017-02-21 23:13:34 +01:00
Sebastian Hengst 736fb3a64b Backed out changeset 71b9ac06a60a (bug 1284897) 2017-02-21 23:13:29 +01:00
David Parks a8f0f4ecaf Bug 1284897 - Add mechanism to libsandbox_s to track names of files that have been given special sandbox access permissions (PermissionsService). r=bobowen, r=glandium
Hook this into the browser via the XREAppData. This patch does not include the changes to Chromium source code.
2017-02-14 15:08:40 -08: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
David Parks 6d3ee3fe72 Bug 1284897 - Add opcodes to nsWindowsDllInterceptor for GetSaveFileNameW, GetOpenFileNameW and ImmReleaseContext. r=aklotz
This includes a near-jump CALL instruction in x64, which expands to a far-jump CALL with a 64-bit address as inline data. This requires us to abandon the method where we memcpy the code block into the trampoline and, instead, build the trampoline function as we go.
2017-01-20 16:03:44 -08:00
Emanuel Hoogeveen b82f0c203b Bug 1338574 - Part 7: Use MOZ_CRASH_UNSAFE_PRINTF in XPCOM. r=froydnj 2017-02-21 18:02:03 +01:00
Sebastian Hengst 0f11349b9f Backed out changeset 42f0a217197d (bug 1312883) for build bustage Windows due to unknown identifiers. r=backout on a CLOSED TREE 2017-02-24 14:26:08 +01:00
Sebastian Hengst d2fda297ce Backed out changeset d6b3328c9573 (bug 1312883) 2017-02-24 14:25:20 +01:00
Sebastian Hengst 08f2233e92 Backed out changeset fddfc0739043 (bug 1312883) 2017-02-24 14:25:15 +01:00
Mike Conley a194e7116b Bug 1312883 - Use MozStackWalk to gather native stacks on Windows. r=gfritzsche,jchen,liuche
MozReview-Commit-ID: A2aZAL03FG2
2017-02-16 12:05:46 -05:00
Mike Conley 39eb226f83 Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen
MozReview-Commit-ID: LpMSf6bSLy8
2017-02-17 17:13:57 -05:00
Mike Conley 688bbbe5d3 Bug 1312883 - MOZ_THREADSTACKHELPER_NATIVE should only be true on Windows. r=jchen
MozReview-Commit-ID: 3gf5FcnUUwa
2017-02-10 10:35:44 -05:00
Carsten "Tomcat" Book edbc6dc7ca Merge mozilla-central to autoland 2017-02-24 11:54:01 +01:00
Dimi Lee 7545e85763 Bug 1335974 - Add more error codes to URLCLASSIFIER_UPDATE_ERROR. r=francois
MozReview-Commit-ID: AAd6Yu0AuUO
2017-02-22 16:25:04 +08:00