Граф коммитов

865 Коммитов

Автор SHA1 Сообщение Дата
David Major eeaa91fc5c Bug 1359507: Replace the stack walk workaround lock with an atomic counter of suppressions. r=mstange,froydnj
This fixes a deadlock by removing one of the two sides of a mutual-wait.
2017-05-03 12:10:48 -04:00
David Major e0e90b1235 Bug 1180561: Abort stack walking if we reach a frame inside msmpeg2vdec. r=njn 2017-05-02 09:28:17 -04:00
philipp f939196196 Bug 1333486 - Add idmcchandler5.dll/idmcchandler5_64.dll to the blocklist. r=marco 2017-04-28 08:44:00 -04:00
David Major 33bad54a1c Bug 1358251: EnsureSymInitialized doesn't need to EnsureWalkThreadReady. r=mstange
--HG--
extra : rebase_source : d81dabe40ff11bce3586df0edfaccd8fa9da1e28
2017-05-01 15:34:50 -04:00
Wes Kocher c90904f9bf Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Nicholas Nethercote bc1d6a21a2 Bug 1358320 - Make TimeStamp::ProcessCreation()'s outparam optional. r=gsvelto.
TimeStamp::ProcessCreations()'s aIsInconsistent outparam is ignored by the
majority of its caller. This patch makes it optional. Notably, this makes
ProcessCreation() easier to use in a constructor's initializer list.
2017-04-26 14:55:54 +10:00
Wes Kocher 675c0065d0 Backed out changeset 31d1116ced93 (bug 1349444) for assertions on Windows a=backout
MozReview-Commit-ID: 4dOhE2GADv3
2017-04-25 15:52:10 -07:00
Wes Kocher bb10f1e55f Backed out changeset 5b18b53232b8 (bug 1355559) for assertions on Windows
MozReview-Commit-ID: G2UXc5l6b2T
2017-04-25 15:51:33 -07:00
Wes Kocher bf1d6ef1c2 Backed out changeset 8868bb11e7a8 (bug 1358251) for assertions on Windows
MozReview-Commit-ID: Laffk7TtWgP
2017-04-25 15:50:52 -07:00
David Major 23f65c763c Bug 1358251: EnsureSymInitialized doesn't need to EnsureWalkThreadReady. r=mstange 2017-04-25 16:10:14 -04:00
David Major 27bac27c90 Bug 1355559: Acquire the stack walk workaround lock in LdrResolveDelayLoadedAPI. r=mstange 2017-04-25 16:10:14 -04:00
David Major 5be9ebe23b Bug 1349444: Take the stack walk workaround lock in LdrUnloadDll. r=mstange
This will prevent the profiler from suspending a target thread while that thread holds the RtlLookupFunctionEntry lock, which the profiler itself also wants to use.
2017-04-25 16:10:14 -04:00
Eugen Sawin c281414151 Bug 1358241 - [2.1] Add mutex locking around the library handles cache. r=jchen 2017-04-25 18:05:06 +02:00
Eugen Sawin 84b446b09c Bug 1358241 - [1.2] Make direct library reference counter atomic to avoid mutex locking issues. r=jchen 2017-04-25 18:05:06 +02:00
Tom Tromey 99f4608655 Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management.  (Though after this patch there are
still a handful of spots needing SmprintfFree.)

MozReview-Commit-ID: COa4nzIX5qa

--HG--
extra : rebase_source : ab4a11b4d2e758099bd0794d5c25d799a7e42680
2017-03-03 08:17:27 -07:00
Carsten "Tomcat" Book 9c3f61e278 Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
Mike Hommey 2bd75405bc Bug 1365194 - Make `extern "C"` part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.

--HG--
extra : rebase_source : af55696262f40a9dd16a19c29edcb9bb307d4957
2017-05-16 18:46:02 +09:00
Matt Howell bf294679d0 Bug 1356637 - Blocklist a Nahimic DLL which is causing app update problems. r=bsmedberg
MozReview-Commit-ID: D9iEcuTMNRx

--HG--
extra : rebase_source : 9eb1fafa297b6cc4e1fff20344fcb1c3c1092e3d
2017-04-21 08:40:13 -07:00
David Major 3b7255411e Bug 1354611: Acquire the stack walk lock in Win64's LdrLoadDll. r=aklotz
This will prevent the profiler from suspending a target thread while that thread holds the RtlLookupFunctionEntry lock, which the profiler itself also wants to use.
2017-04-20 15:09:11 -04:00
Wes Kocher cb8ce82cca Merge inbound to m-c a=merge 2017-04-19 17:10:04 -07:00
John Lin 9fa31b9fb4 Bug 1343541 - restore signal actions changed by Android debugger. r=glandium
Android shows a dialog box when it detects app crashing. OOP decoder needs to hide that from user to resume playback gracefully.

MozReview-Commit-ID: 3cE3GiHAuQk

--HG--
extra : rebase_source : 67bec5dfda1e878fa7dea877ef58d485b4e17944
2017-04-12 17:34:17 +08:00
Mike Hommey 33a7e408ce Bug 1357323 - Remove the gonk code that was referenced by the build system. r=gps
--HG--
extra : rebase_source : 1d30ebcbdbcf596c944e1eec981f85db341485e5
2017-04-18 17:46:39 +09:00
Mike Hommey 34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Eugen Sawin 4b956de40e Bug 1346042 - [1.0] Mutex-lock LibHandle direct reference management. r=glandium 2017-04-18 16:08:40 +02:00
David Major fc18ed5283 Bug 1354292: Let the stack walker unwind leaf functions without a function entry. r=njn 2017-04-18 18:52:06 -04:00
David Major e97b534db7 Bug 1353420: Register the JIT region with mozglue so it can avoid stack-walking that code. r=luke 2017-04-18 18:52:04 -04:00
Nathan Froyd 997e7cec82 Backout e824f50f5ca6 (bug 1353787) for massive OS X test bustage on a CLOSED TREE 2017-04-07 16:35:45 -04:00
Nathan Froyd 51d8c87bbb Bug 1353787 - use first-fit mutexes on OS X; r=erahm
Changing the fairness policy makes OS X mutexes roughly an order of
magnitude faster in the contended case.
2017-04-07 15:42:19 -04:00
Phil Ringnalda 8ff3505864 Merge m-c to a CLOSED TREE m-i 2017-04-06 21:16:43 -07:00
Phil Ringnalda 607ccd57d2 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 08fc406af4 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
James Willcox 224324d56d Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV


--HG--
rename : mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/FormatParam.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodec.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaManager.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaManager.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/Sample.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/Sample.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodecFactory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodecFactory.java
rename : mobile/android/base/java/org/mozilla/gecko/media/Codec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/Codec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/CodecProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/CodecProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/FormatParam.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/FormatParam.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrm.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrm.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java
rename : mobile/android/base/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaDrmProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaManager.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaManager.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SamplePool.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SamplePool.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SessionKeyInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SessionKeyInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/mozglue/SharedMemory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
2017-04-06 14:32:58 -05:00
Tom Tromey 8e0d0b9741 Bug 1350097 - handle very long floating point output in cvt_f; r=froydnj
Bug 1350097 points out a case where the assertion in cvt_f, added in
https://bugzilla.mozilla.org/show_bug.cgi?id=1060419#c127, triggers.
Before this addition, code calling this printf variant would end up just
printing something invalid, as the truncated value would be emitted.
This patch increases the buffer size to be sufficient for DBL_MAX.

MozReview-Commit-ID: AVphURGa6jL

--HG--
extra : rebase_source : c7a2dad8e496434a631441ccc25dfee2db1ea71a
2017-03-24 08:18:51 -06:00
philipp 18cfe68b0f Bug 1333486 - Blocklist Internet Download Manager .dll crashing on Firefox 53+. r=bsmedberg
--HG--
extra : rebase_source : 74dab10773221de563e6d8ae87b22014e747ba09
2017-03-30 12:21:00 -04:00
Sebastian Hengst f7bdfd47a4 Backed out changeset 23de710cae6f (bug 1322554) for breaking at least Windows 8 x64 builds (likely all Windows builds). r=backout on a CLOSED TREE 2017-03-30 18:47:15 +02:00
Carl Corcoran d2c868be48 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=dmajor
MozReview-Commit-ID: I1P2I2um76i

--HG--
extra : rebase_source : 338201fd00986c228f4dd21a4f56fd500fa80984
2017-03-29 17:07:37 +02:00
Tom Ritter 57460e3e5e Bug 1344921 relocate initialization (and declaration) of variable to not allow a jump to bypass it r=froydnj
MozReview-Commit-ID: LouiRkuCAqb

--HG--
extra : rebase_source : 4a0006743e894d151c3f67439c57818a460d942c
2017-03-23 14:56:54 -05:00
Jim Mathies 3eba9a35c8 Bug 1339908 - Blocklist goobzo associated dlls. r=bsmedberg
MozReview-Commit-ID: GFfdAGL1LeG

--HG--
extra : rebase_source : 380f5482ab9c485688b452fede292ed72cfb8d79
2017-03-28 09:02:04 -05:00
Jan Beich ff86fa2735 Bug 1350955 - Enable adaptive mutex usage on FreeBSD. r=froydnj
MozReview-Commit-ID: 7bfgK4TfZsH

--HG--
extra : rebase_source : f369497ac3b907b3f05cb78ce8567cbe4016fda4
2017-03-27 15:14:00 +00:00
Nathan Froyd 5b67a265dc Bug 1312087 - part 0 - use PTHREAD_MUTEX_ADAPTIVE_NP mutexes on Linux/glibc; r=erahm
This matches NSPR's behavior for its PRLock type.
2017-03-21 11:20:36 -04:00
John Lin 106b6939c6 Bug 1346235 - part 1: translate native error to Java exception. r=jchen
MozReview-Commit-ID: BcpfJLSzTvk

--HG--
extra : rebase_source : 53d6e9efa064b4a5ab32676d349a5c0cadb78ea7
2017-03-17 14:21:27 +08:00
Dylan Roeh df9b1b5528 Bug 1305815 - Fix false positives for x86 devices. r=snorp 2017-03-13 10:25:12 -05:00
Tom Ritter bdf4234dd1 Bug 1344809 Move function definition to cpp to fix mingw 'definition is marked dllimport' error r=froydnj
MozReview-Commit-ID: 8iAaa3FXvDq

--HG--
extra : rebase_source : aa2b14a00127c87853ebbc9961393e8c82ea0882
2017-03-13 11:51:10 -05:00
Joel Maher 8646492091 Bug 1344837 - add BUG_COMPONENT to mozglue/* files. r=glandium
MozReview-Commit-ID: 5Z9N3L0hVsY
2017-03-09 05:33:30 -05:00
Jim Chen 53a1107cd1 Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin
Bug 1343075 - 1a. Add TextEventDispatcherListener::GetIMEUpdatePreference; r=masayuki

Add a GetIMEUpdatePreference method to TextEventDispatcherListener to
optionally control which IME notifications are received by NotifyIME.
This patch also makes nsBaseWidget forward its GetIMEUpdatePreference
call to the widget's native TextEventDispatcherListener.

Bug 1343075 - 1b. Implement GetIMEUpdatePreference for all TextEventDispatcherListener; r=masayuki

This patch implements GetIMEUpdatePreference for all
TextEventDispatcherListener implementations, by moving previous
implementations of nsIWidget::GetIMEUpdatePreference.

Bug 1343075 - 2. Allow setting a PuppetWidget's native TextEventDispatcherListener; r=masayuki

In PuppetWidget, add getter and setter for the widget's native
TextEventDispatcherListener. This allows overriding of PuppetWidget's
default IME handling. For example, on Android, the PuppetWidget's native
TextEventDispatcherListener will communicate directly with Java IME code
in the main process.

Bug 1343075 - 3. Add AIDL interface for main process; r=rbarker

Add AIDL definition and implementation for an interface for the main
process that child processes can access.

Bug 1343075 - 4. Set Gecko thread JNIEnv for child process; r=snorp

Add a JNIEnv* parameter to XRE_SetAndroidChildFds, which is used to set
the Gecko thread JNIEnv for child processes. XRE_SetAndroidChildFds is
the only Android-specific entry point for child processes, so I think
it's the most logical place to initialize JNI.

Bug 1343075 - 5. Support multiple remote GeckoEditableChild; r=esawin

Support remote GeckoEditableChild instances that are created in the
content processes and connect to the parent process GeckoEditableParent
through binders.

Support having multiple GeckoEditableChild instances in GeckoEditable by
keeping track of which child is currently focused, and only allow
calls to/from the focused child by using access tokens.

Bug 1343075 - 6. Add method to get GeckoEditableParent instance; r=esawin

Add IProcessManager.getEditableParent, which a content process can call
to get the GeckoEditableParent instance that corresponds to a given
content process tab, from the main process.

Bug 1343075 - 7. Support GeckoEditableSupport in content processes; r=esawin

Support creating and running GeckoEditableSupport attached to a
PuppetWidget in content processes.

Because we don't know PuppetWidget's lifetime as well as nsWindow's,
when attached to PuppetWidget, we need to attach/detach our native
object on focus/blur, respectively.

Bug 1343075 - 8. Connect GeckoEditableSupport on PuppetWidget creation; r=esawin

Listen to the "tab-child-created" notification and attach our content
process GeckoEditableSupport to the new PuppetWidget.

Bug 1343075 - 9. Update auto-generated bindings; r=me
2017-03-07 22:34:39 -05:00
Aaron Klotz 7dba35d193 Bug 1344827: Only disable critical section debug info on beta and release; r=fitzgen
--HG--
extra : amend_source : 764d4a20231a3262bda1dd463d82fc018815ab7b
2017-03-06 12:11:45 -07:00
Tom Tromey 3f70992816 Bug 1341880 - do not emit trailing \0 in PrintfState; r=glandium
MozReview-Commit-ID: 2di7CsDCWLF

--HG--
extra : rebase_source : f5469d4b3e818204848123ea163c7f0f08563f7c
2017-02-27 13:29:54 -07:00
Dylan Roeh a21a7f8f67 Bug 1305815 - Issue EOL warning if non-NEON-compatible device detected. r=glandium 2017-03-01 13:26:12 -06:00
Nathan Froyd 8828af4759 Bug 1336344 - use sizeof(pthread_mutex_t) to size MutexImpl's platformData_; r=fitzgen
For pthreads platforms, we have a terribly large condition for the size
of a MutexImpl that attempts to hardcode the number of words that
pthread_mutex_t takes.  This hardcoding isn't always correct.  We
originally did this to try and keep <pthread.h> includes out of the
headers, but the PlatformConditionVariable.h header already includes
<pthread.h> anyway, and <pthread.h> isn't so namespace-invasive as
<windows.h>.  So go ahead and include <pthread.h> and use the actual
definition of pthread_mutex_t to size the platformData_ member.
2017-02-22 16:41:35 -05:00
Makoto Kato a5d634db34 Bug 1256565 - Part 1. Implement GetEventTimeStamp(). r=jchen,karlt
Android uses android.os.SystemClock.uptimeMilles for event time and SystemClock.uptimeMilles uses SYSTEM_TIME_MONOTONIC.

So since TimeStamp posix impelemetation uses SYSTEM_TIME_MONOTONIC too, so we can use event time on FromSystemTime.

MozReview-Commit-ID: 5Qb5kmnHHCI

--HG--
extra : rebase_source : 26d1554fa60e3216edfd4b149380910fe2a9d845
2017-02-20 12:34:44 +09:00
Wes Kocher 8c4ce17711 Merge inbound to m-c a=merge
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Jan de Mooij 7c17ed23c6 Bug 1337499 - Take the Win64 stackwalk lock in WalkStackMain64 to avoid deadlocks. r=mstange 2017-02-17 10:51:11 +01:00
Wes Kocher 3797956aa6 Merge m-c to inbound a=merge
MozReview-Commit-ID: BemR756HJnR
2017-02-15 16:33:03 -08:00
Wes Kocher 017c515285 Merge inbound to m-c a=merge
MozReview-Commit-ID: IKI0zVtF1n9
2017-02-15 16:18:13 -08:00
Marco Castelluccio 170093d6d9 Bug 1339083 - Blocklist old K7TotalSecurity versions. r=aklotz
--HG--
extra : rebase_source : bba08ee37b47bd8893732e8617bfde77d9d40753
2017-02-14 08:01:00 -05:00
Jim Chen 60a646160e Bug 1339160 - 4. Use GeckoService to extract libs on update; r=esawin
Use the GeckoService load-libs action to load and extract new libraries
when we receive the update broadcast. This makes us not block the UI
thread to extract libs, and lets Fennec run normally if the user
launches Fennec right after updating.
2017-02-15 17:13:05 -05:00
Tom Tromey 410b2299d0 Bug 1060419 - update comments in Printf.h; r=froydnj
MozReview-Commit-ID: H1njGy5JJ6f

--HG--
extra : rebase_source : c8874a1e13fa4e12790fa4ba909671ba9c2da01b
2017-01-05 15:43:45 -07:00
Tom Tromey f0b5bc050d Bug 1060419 - use result of SprintfLiteral in Printf.cpp; r=froydnj
MozReview-Commit-ID: HSHAeKVu6PU

--HG--
extra : rebase_source : ad15e1e0e13cf3974a1116f796b7a201fcfb36fd
2017-01-05 08:15:48 -07:00
Sylvestre Ledru 6d892b8f7f Bug 1338086 - Remove useless else blocks in order to reduce complexity in mozglue/misc/ r=froydnj
MozReview-Commit-ID: Btyl5N6EsUY

--HG--
extra : rebase_source : 087a18c13a70801bf8417478654b125665e3f2ec
2017-02-09 10:55:26 +01:00
Tom Tromey f6321565d2 Bug 1060419 - convert mozglue/linker to use the mfbt-provided printf format defines, r=froydnj
MozReview-Commit-ID: LW6eDUxWXrp

--HG--
extra : rebase_source : 1d06ec765b30201f6cfc427006fa56384a61b38b
2016-12-14 14:22:49 -07:00
Tom Tromey 6c09e4eb63 Bug 1060419 - add %S and %ls support to Smprintf; r=froydnj
MozReview-Commit-ID: CQMZCkCOXDV

--HG--
extra : rebase_source : 6b4ca87528cf820c71d62c50b734e3a4c06139ff
2017-01-19 15:56:09 -07:00
Tom Tromey 1610a7b7cb Bug 1060419 - move Smprintf et al to mozglue, r=froydnj
MozReview-Commit-ID: 4U23r6JhLls

--HG--
extra : rebase_source : 8e020d5d26d31b95f5b2c0e729ec27540c123b01
2017-01-13 10:25:59 -07:00
Nathan Froyd bf582d23fa Bug 1312086 - part 3 - move js::{Mutex,ConditionVariable}Impl to mozglue; r=fitzgen,glandium 2017-02-08 20:52:55 -05:00
Wes Kocher 6ff8201ffe Merge inbound to central, a=merge
MozReview-Commit-ID: 4mN7daXzULJ
2017-02-08 16:08:42 -08:00
Jim Chen 21dfb2d432 Bug 1337304. r=snorp
--HG--
extra : rebase_source : 7306160ece787ed98fb98ec1bcecbb0466d98093
2017-02-08 13:49:20 -05:00
Christian Holler 9a15050921 Bug 1335446 - Add allocator_may_return_null=1 to default ASan options. r=glandium
MozReview-Commit-ID: AM9EdKngmMB

--HG--
extra : rebase_source : b3430bf8f8e7495ca5d6955d97922fe5f383d4ad
2017-02-06 14:23:55 +01:00
Jan Beich 9358862c72 Bug 1334777 - Hide unused has_avx() if CXXFLAGS have -mavx. r=glandium
MozReview-Commit-ID: 1IWEU8HrmtW

--HG--
extra : rebase_source : b7f6e088a0b500ee77dd344a16aacc3f0dcaac29
2017-01-28 10:51:06 +00: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
Benjamin Smedberg ca77995f5d Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal
MozReview-Commit-ID: 52vPyDXdFte

--HG--
extra : rebase_source : c3217730bb70eb7319152dd07536b12f49d6a597
2017-01-30 11:24:10 -05:00
Botond Ballo c57de18781 Bug 1331495 - Add an operator<< overload for TimeDuration. r=froydnj
MozReview-Commit-ID: dYKdlKI8Le

--HG--
extra : rebase_source : a56ed17f1c505ca50e3a9bb9ad0e34a1060ef1ac
2017-01-16 16:55:58 -05:00
Mike Hommey 11a4734e0d Bug 1332523 - Remove nsXPCOMGlue.h. r=bsmedberg
--HG--
extra : rebase_source : 7a0b2441f768cbdef1a5b51139f8ecd4a6fde0c1
2017-01-13 07:56:05 +09:00
Mike Hommey 9d2b3754b7 Bug 1332523 - Move message indicating when the blocklist is initialized after user32.dll was loaded to the blocklist itself. r=dmajor
--HG--
extra : rebase_source : 4aea579104d2bad56a91f67e66d0af8c4ada9c3d
2017-01-12 11:13:40 +09:00
Mike Hommey bebd095c4c Bug 1306327 - Use the new XRE Bootstrap API in Firefox for Android. r=bsmedberg
Here, we also modify APKOpen to use the XPCOM glue loading process
instead of custom symbol resolution, so that the Bootstrap API can be
used in a more straightforward manner.

--HG--
extra : rebase_source : 55037ba30ca66a090b73923a3ce8df5b054bf47a
2016-12-17 06:48:01 +09:00
Eric Rahm 87cfbc1b65 Bug 1322735 - Remove MOZ_STACKWALKING define. r=glandium
With frame pointer omission disabled we should always have usable stacks on Windows. This allows us to remove the MOZ_STACKWALKING define as it will always be enabled.

MozReview-Commit-ID: 54xs3Hf1r4P

--HG--
extra : rebase_source : dfaf13fb4c2185985f4f074c338ccf1fef8f3c94
2016-12-20 15:11:36 -08:00
Chris Peterson ae18f9a8b4 Bug 1329563 - Remove DLL blocklist checks for Windows XP. r=aklotz
MozReview-Commit-ID: 3zZDsjQii3o

--HG--
extra : rebase_source : 8880c393ee1a205c6221deeee416429a5272b48c
2017-01-08 20:55:05 -08:00
Ehsan Akhgari 1c687043f1 Bug 1251936 - Mark AutoSetXPCOMLoadOnMainThread's constructor as explicit 2016-12-23 21:03:21 -05:00
Jan de Mooij cad14cbd6e Bug 1313351 followup - Also back out the ElfLoader changes from bug 1320905 on a CLOSED TREE. r=red
--HG--
extra : rebase_source : 5ce387a5d813752957733c46381ea85245bc8eda
2016-12-23 21:27:57 +01:00
Ting-Yu Chou 9b4a42ffed Bug 1322465 part 9 - Use explicit/MOZ_IMPLICIT for the unary constructors in mozglue/. r=Ehsan
MozReview-Commit-ID: MHgGyQGRdM

--HG--
extra : rebase_source : 9b5cb97c0264a734cd166393a49252db22af4bf1
2016-12-16 15:57:53 +08:00
Botond Ballo 71a6962e97 Bug 1321885 - Add Max() and Min() methods to TimeDuration. r=froydnj
MozReview-Commit-ID: 4WvRa3ZSrmP

--HG--
extra : rebase_source : d7433ab7cdb949194e494568f0bf94b91639e27e
extra : source : bac442a609767fbb21b266dbd719d6eb968fbf3d
2016-07-27 14:07:57 -04:00
Phil Ringnalda ce9ad65e4e Merge m-c to autoland
--HG--
rename : xpcom/build/nsXREAppData.h => xpcom/build/XREAppData.h
rename : xpcom/glue/AppData.cpp => xpcom/glue/XREAppData.cpp
extra : rebase_source : 84774ad3fb5a596ad5c105cc0f3b269371c4308e
2016-12-13 19:28:57 -08:00
Ting-Yu Chou 19a9104684 Bug 1322463 - Replace snprintf/vsnprintf by SprintfLiteral/VsprintfLiteral for what clang plugin reports on Windows. r=Ehsan
MozReview-Commit-ID: 2bFcM53uEPb

--HG--
extra : rebase_source : 4e69d3f3f95c18bcbf731a17cb98fa456ddaa118
2016-12-09 09:47:19 +08:00
Sebastian Hengst 27bd22acd7 Backed out changeset eae2252a519f (bug 1321593) for leaks, e.g. in clipboard and jetpack tests. r=backout
--HG--
rename : xpcom/build/XREAppData.h => xpcom/build/nsXREAppData.h
rename : xpcom/glue/XREAppData.cpp => xpcom/glue/AppData.cpp
2016-12-12 22:10:17 +01:00
Benjamin Smedberg 835aaa0cad Bug 1306327 part A - NS_EXPORT macro in APKOpen.h can conflict with nscore.h: rename it to APKOPEN_EXPORT to avoid build issues on a CLOSED TREE, r=glandium
MozReview-Commit-ID: 5Y08hwtc7s2

--HG--
extra : source : b1a3d2e42a4e38ca49f7316bef5ac5de9340f940
extra : amend_source : 7858b1690ccf42619c88dd3c9a2984dedebd4e65
2016-11-29 14:27:30 -05:00
Benjamin Smedberg 4df1abc2c0 Bug 1321593 part A - Refactor nsXREAppData: 1) make nsXREAppData strongly own its members 2) rename it to mozilla::XREAppData 3) separate out the static compiled data into StaticXREAppData 4) Remove XRE_CreateAppData and XRE_FreeAppData 5) remove the struct size and related size-checking code which was only ever useful for cross-version compatibility, r=glandium
MozReview-Commit-ID: CQv1UrSaw4D

--HG--
rename : xpcom/build/nsXREAppData.h => xpcom/build/XREAppData.h
rename : xpcom/glue/AppData.cpp => xpcom/glue/XREAppData.cpp
extra : rebase_source : c909ee206d31b110c6a38cc466ef24a465ee2ae5
extra : histedit_source : e86c3900412229f99ade29c5b8e3943d943ec718
2016-12-02 09:07:24 -05:00
Benjamin Smedberg d37894f60d Bug 1321593 part A - Refactor nsXREAppData: 1) make nsXREAppData strongly own its members 2) rename it to mozilla::XREAppData 3) separate out the static compiled data into StaticXREAppData 4) Remove XRE_CreateAppData and XRE_FreeAppData 5) remove the struct size and related size-checking code which was only ever useful for cross-version compatibility, r=glandium
MozReview-Commit-ID: CQv1UrSaw4D

--HG--
rename : xpcom/build/nsXREAppData.h => xpcom/build/XREAppData.h
rename : xpcom/glue/AppData.cpp => xpcom/glue/XREAppData.cpp
extra : source : eae2252a519f3ac5850f5110a6a1be45891ea5e9
2016-12-02 09:07:24 -05:00
Luke Wagner 549d7571b3 Bug 1320905 - Add js::RefCounted that uses js_delete (r=waldo) 2016-12-05 15:59:18 -08:00
Andrew Halberstadt 6adcf5b456 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D

--HG--
extra : rebase_source : 11a92a2bc544d067946bbd774975140147458caa
2016-11-16 09:59:22 -05:00
Carsten "Tomcat" Book e7ca75286b Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Carsten "Tomcat" Book f28942ae47 Merge mozilla-central to autoland 2016-11-15 12:34:47 +01:00
Cervantes Yu daacdebe95 Bug 1317259 - Prevent double init in mozilla::TimeStamp::Startup() on Windows. r=froydnj
MozReview-Commit-ID: JKfEFqo5qHj

--HG--
extra : rebase_source : 730f9a969215d559dbcc3c2b4126fa543de5dbbe
2016-11-14 19:01:17 +08:00
Eugen Sawin 5196420c32 Bug 1283629 - [1.1] Check for cached library file availability before reusing it. r=glandium 2016-11-15 15:19:25 +01:00
Randall Barker de17af98b5 Bug 1314466 - part 5, Add service process manager r=snorp 2016-11-14 16:45:23 -08:00
Eugen Sawin 8f140cc639 Bug 1313451 - [1.1] Make Zip thread-safe. r=glandium 2016-11-11 14:26:08 +01:00
Eugen Sawin 73f2949cad Bug 1309708 - [1.2] Delete reported library mapping on close. r=glandium 2016-11-10 15:47:59 +01:00
Emanuel Hoogeveen e0a81d7503 Bug 1309573 - Part 2: Define MOZ_HAS_MOZGLUE in various places so that the crash reason gets used. r=glandium
--HG--
extra : rebase_source : d55e8dd75469759f333366bdf9662178ff0a2474
2016-11-08 03:53:00 -05:00
Aaron Klotz 4e2ad82fdd Bug 1311969: Add nzbrcom.dll to blocklist; r=bsmedberg
MozReview-Commit-ID: BFVajNJNUdw

--HG--
extra : rebase_source : c5edc09b343b03bf722acd75995ce86388170071
2016-11-03 14:22:20 -06:00
Nathan Froyd 014c62a607 Bug 1314762 - move #includes of system-y headers out of anonymous namespace in SSE.cpp; r=erahm
#include'ing system headers inside anonymous namespaces seems to work
OK with GCC and MSVC, but it does not work well with clang-cl in some
compilation modes.  Moving them out of the anonymous namespace makes
everybody happy.

MozReview-Commit-ID: K8AkYZEznzm

--HG--
extra : rebase_source : fe0dc2498253dab96c0f1b03a051d7e347fb13af
2016-11-02 16:19:35 -04:00
Phil Ringnalda 8377010e6a Merge m-c to m-i
MozReview-Commit-ID: Ihd0iacfcIW

--HG--
rename : devtools/.eslintrc => devtools/.eslintrc.js
2016-10-18 19:45:02 -07:00
Phil Ringnalda 6c91017f20 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Eugen Sawin 5b99355518 Bug 1307570 - [1.4] Add XZ Embedded support configuration, scripts and the initial library version. r=glandium 2016-10-18 15:11:02 +02:00
John Lin ce9e7de84b Bug 1295106 - Part 4: implement JNI methods for shared memory buffers. r=nalexander
MozReview-Commit-ID: 7tXhV6KHzO8

--HG--
extra : rebase_source : c3f97ff1b31011e67c13dbc72a382b0f8bcd53fd
2016-10-06 16:21:24 +08:00
Eugen Sawin 940c54d37b Bug 1294736 - [5.0] Switch to CRC64 integrity checking. r=glandium 2016-10-18 20:53:33 +02:00
Eugen Sawin c1ad292ceb Bug 1294736 - [3.2] Detect and decode XZ streams when extracting files. r=glandium,snorp 2016-10-18 20:53:33 +02:00
Eugen Sawin 45ea103938 Bug 1294736 - [2.3] Implement XZStream interface for decoding with XZ Embedded. r=glandium,snorp 2016-10-18 20:53:33 +02:00
Eugen Sawin 06c47357d2 Bug 1298090 - [1.6] Extract and cache native libraries on APK update. r=glandium,snorp 2016-10-10 22:59:27 +02:00
Sebastian Hengst cdcc9e20da Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Eugen Sawin 18f563fd04 Bug 1305745 - [1.1] Free the zip path intermediate variable. r=glandium 2016-10-04 15:21:22 +02:00
Chris Pearce f5797cb124 Bug 1239690 - Add vorbis.acm version 0.0.3.6 to the DLL blocklist. r=aklotz
Vorbis.acm seems to be somehow injecting itself into our process, and also the
Flash process, and intercepting the system audio APIs. Version 0.0.3.6 seems to
be crashing, and it's an obsolete version, so we should block it to stop it
crashing us.


MozReview-Commit-ID: Hk93kG0Ly4Q

--HG--
extra : rebase_source : b16dd8decdc8a767bd84f28a009667b4d79677d8
2016-09-23 14:18:04 +12:00
Eric Faust 121151ec67 Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Wes Kocher 611fb66887 Backed out changeset 39da44265946 (bug 1263595) for build bustage a=backout CLOSED TREE 2016-09-16 14:19:22 -07:00
Eric Faust db0cfdc6bc Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Phil Ringnalda 6beabc555f Backed out changeset 48694b762a84 (bug 1263595) for -Werror bustage
CLOSED TREE
2016-09-15 22:04:50 -07:00
Eric Faust c725e729c5 Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Eugen Sawin 1b8ab7ef74 Bug 1302516 - [1.2] Add mutex locking to ZipCollection zip vector access. r=glandium 2016-09-14 12:47:06 +02:00
Eugen Sawin 06a7828be2 Bug 1301665 - [1.1] Statically initialize lib mapping array. r=glandium 2016-09-13 14:11:30 +02:00
Jim Mathies 954d619dbb Bug 1286306 - Remove temporary assertion now that we have a test. r=aklotz
MozReview-Commit-ID: Cg2MjRGIjCO
2016-08-11 09:11:16 -05:00
Jim Chen 984436a532 Bug 1297807 - Remove old JNI stubs; r=snorp 2016-08-26 12:26:46 -04:00
Jim Chen cb7a422ffa Bug 1296744 - Update auto-generated bindings; r=me 2016-08-26 12:26:46 -04:00
Jim Chen da50d1a62c Bug 1297462 - Combine Java exception stack code paths; r=snorp
Right now we report Java exception stacks through two code paths:
- GeckoAppShell.reportJavaCrash for exceptions caught by Java code
- jni::HandleUncaughtException for exceptions caught by native code

This patch combines the code for reporting the Java stack trace into
ReportException, to make it easier to add new features such as reporting
OOM exceptions.
2016-08-26 12:25:57 -04:00
Emanuel Hoogeveen 8210833803 Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium 2016-08-23 08:45:00 -04:00
Eugen Sawin 91a9a08ed7 Bug 1294731 - [4.3] Don't unlink cached extracted files on shutdown. r=glandium 2016-08-25 12:51:44 +02:00
Eugen Sawin 6dfe56fd0a Bug 1294731 - [2.8] Validate cached libraries based on checksums. r=glandium 2016-08-25 12:51:44 +02:00
Ryan VanderMeulen 69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Sylvestre Ledru 51b6dcc500 Bug 1297534 - Revert the blocklist introduced to fix the startup crash in nsPrefBranch::GetIntPref (Websense Endpoint) r=aklotz
MozReview-Commit-ID: EMkHwgvwLyt

--HG--
extra : rebase_source : 381ee90bc8be7f9db6166b8434fdc740110dded5
2016-08-24 00:03:00 +02:00
Jim Chen adde79eb82 Bug 1294481 - Update auto-generated bindings; r=me 2016-08-23 18:52:30 -04:00
Jim Chen 7b67a45c6a Bug 1294479 - Update auto-generated bindings; r=me 2016-08-19 17:17:25 -04:00
Ryan VanderMeulen 01c4e8cc1b Merge inbound to m-c. a=merge 2016-08-19 09:52:53 -04:00
Mike Hommey c6f04b053b Bug 1291768 - Avoid SIGSEGV trying to read ELF headers of libraries with a non-null base virtual address. r=froydnj
--HG--
extra : rebase_source : ff8b269f2e0a69253ff5277f71a5b3f48cc7d55e
2016-08-18 07:16:40 +09:00
Jim Chen f78bb41597 Bug 1294482 - Move onFullScreenPluginHidden out of AndroidJNI.cpp; r=snorp
Move onFullScreenPluginHidden out of AndroidJNI.cpp and into a new-style
native method in nsAppShell.cpp.
2016-08-18 18:04:11 -04:00
Jim Chen 16c96d39f8 Bug 1294071 - Move dispatchMemoryPressure out of GeckoAppShell; r=snorp
Move dispatchMemoryPressure out of GeckoAppShell and AndroidJNI.cpp
2016-08-18 18:04:11 -04:00
Jim Chen ef76c29f7a Bug 1294069 - Move notifyBatteryChange out of GeckoAppShell; r=snorp
Move notifyBatteryChange out of GeckoAppShell and AndroidJNI.cpp.
2016-08-18 18:04:11 -04:00
Jim Chen f76d27da14 Bug 1294710 - Move UI thread methods out of GeckoAppShell; r=snorp
Move methods to run callbacks on UI thread out of GeckoAppShell and into
GeckoThread.
2016-08-18 18:04:11 -04:00
Wes Kocher c84ec3b3f3 Merge m-c to inbound, a=merge 2016-08-16 22:06:58 -07:00
Wes Kocher 48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Sylvestre Ledru 4d1e5235dd Bug 1294650 - Block the version of websense crashing 48 & 49. Followup, we already had this dll r=aklotz
MozReview-Commit-ID: re4nqi94vk

--HG--
extra : rebase_source : b7df4f51335da611b29c0bf94801e748d0b38ecb
2016-08-12 10:45:37 +02:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Randall Barker 983cc6b2d1 Bug 1291373 - [geckoview] part 4, Remove GeckoEvent and AndroidGeckoEvent r=jchen 2016-08-16 14:33:43 -07:00
Emanuel Hoogeveen 57b1d1e8f2 Bug 1271165 - Part 2: Hook the new functions up and provide dummy implementations where needed. r=ehoogeveen 2016-08-12 07:37:00 -04:00
Jim Chen 7b6a176b60 Bug 1292323 - Update auto-generated bindings; r=me 2016-08-12 23:15:52 -04:00
Jim Chen 75ce4d9aaa Bug 1292323 - Move Java UI thread registration to mozglue; r=snorp
We need to register the Java UI thread in native code very early in the
startup process, before libxul registers its JNI entry points. So it
makes sense to register the Java UI thread in mozglue.
2016-08-12 23:15:52 -04: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
Sylvestre Ledru f3c3f575ef Bug 1291738 - Block the version of websense crashing 48 & 49 r=bsmedberg
MozReview-Commit-ID: F1cbCFYYVcU

--HG--
extra : rebase_source : 8b7cdf19fd938f24968c34e6b3b25a99f881f576
2016-08-05 18:19:44 +02:00
Carsten "Tomcat" Book 1f5f6ac888 Merge mozilla-central to fx-team 2016-08-04 16:06:09 +02:00
Carsten "Tomcat" Book 389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Jim Chen 2dbcd17eca Bug 1288821 - Update auto-generated bindings; r=me 2016-08-04 09:17:54 -04:00
Alexandre Lissy 0af5b943b6 Bug 1284674 - Remove NUWA r=cyu
MozReview-Commit-ID: GyMRNzOBKw6

--HG--
extra : rebase_source : 293af1cd55f2035ce6a99f4ebf144059c32a2b8f
2016-08-02 14:54:00 +02:00
Kartikaya Gupta 6962e151a2 Bug 1273356 - Remove the unused and incorrect ComputeRenderIntegrity codepath for computing checkerboard. r=rbarker
MozReview-Commit-ID: 4i1rmeqrkZ1
2016-08-03 11:59:08 -04:00
Iris Hsiao 08f30bd9aa Backed out changeset 238564059ef3 (bug 1273356) for Android 4.3 debug failed to load manufest file 2016-08-03 11:55:35 +08:00
Kartikaya Gupta ae07f3795d Bug 1273356 - Remove the unused and incorrect ComputeRenderIntegrity codepath for computing checkerboard. r=rbarker
MozReview-Commit-ID: 9lwASRAobar

--HG--
extra : rebase_source : b10f236a2f9c7b366876b955b8ffeee95a2d9f74
2016-08-02 15:42:41 -04:00