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

15806 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher ea31c4b64f Merge inbound to central, a=merge
MozReview-Commit-ID: CCUSdOe7w2z
2017-02-16 09:28:09 -08:00
Carsten "Tomcat" Book f3b2544de0 Merge mozilla-central to autoland 2017-02-16 13:20: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
Jon Coppeard 5dd6187a2c Bug 1336467 - Don't blacken weakmap key unless both the delegate and the map are black r=mccr8 2017-02-16 10:29:33 +00:00
Michał Górny f9a50474a4 Bug 1329798 - Include sys/sysmacros.h for major(), minor() on Linux. r=glandium
Include sys/sysmacros.h explicitly as that will be required by future
glibc versions to expose major() and minor() macros.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1329798
2017-02-15 00:49:00 +01:00
Michael Layzell 59bb3b9927 Bug 1339218 - Comment wording fixup, r=me
MozReview-Commit-ID: 8T0ibqe17Ru
2017-02-15 12:10:46 -05:00
Michael Layzell 58cab3c905 Bug 1339218 - Re-introduce the ns[C]StringRepr type for use in bindings with custom destructor logic, r=froydnj
MozReview-Commit-ID: 3VUWFA5tX1L
2017-02-15 12:02:54 -05:00
Bill McCloskey 8eb70fcb8f Bug 1339289 - Make sure labeled runnables have names (r=ehsan)
MozReview-Commit-ID: C6w8Q4NPBtt
2017-02-15 12:30:01 -08:00
Bill McCloskey 0cda76d680 Bug 1339289 - Give names to a lot of common timers (r=ehsan)
MozReview-Commit-ID: IMsv5bkyjBL
2017-02-15 12:30:01 -08:00
Bill McCloskey 194043ae97 Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Boris Zbarsky 41700419ad Bug 1339540 part 3. Use nsresult values in the ErrorResult error module in place of NS_ERROR_TYPE_ERR/NS_ERROR_RANGE_ERR in ErrorResult code. r=smaug 2017-02-15 00:02:36 -05:00
Boris Zbarsky 2816ec4748 Bug 1339540 part 2. Move the three ErrorResult-internal NS_ERROR_DOM_* values over to the ErrorResult error module. r=smaug 2017-02-15 00:02:35 -05:00
Boris Zbarsky ebf63a11ae Bug 1339540 part 1. Introduce an ErrorResult-specific nsresult module. r=smaug 2017-02-15 00:01:57 -05:00
Boris Zbarsky 9d04143631 Bug 1330699 part 1. Add a ClearElementAt API to nsTArray. r=froydnj 2017-02-14 23:59:59 -05:00
Nicholas Nethercote 334f89c567 Bug 1339327 (part 5) - Rename some profiler functions related to sleeping. r=mstange.
The new names make it clearer that these actions apply to just one thread.

- profiler_sleep_start() --> profiler_thread_sleep()
- profiler_sleep_end()   --> profiler_thread_wake()
- profiler_is_sleeping() --> profiler_thread_is_sleeping()
- GeckoProfilerSleepRAII --> GeckoProfilerThreadSleepRAII
- GeckoProfilerWakeRAII  --> GeckoProfilerThreadWakeRAII
2017-02-15 14:26:23 +11:00
Jeff Walden d7372e37d9 Bug 1338374 - Use alignas/alignof to define Variant's internal raw storage. r=froydnj
--HG--
extra : rebase_source : a75613ba7c17ceccf20e6f096a118bfedfa1eb15
2017-01-30 15:56:05 -08:00
JW Wang 51b91b868e Bug 1339677. Part 4 - check if mMutex.mLock is tampered. r=gerald
MozReview-Commit-ID: H37EnCF0V4w

--HG--
extra : rebase_source : 6637f059ab76317f05187c865faa7ea70d762609
extra : source : 2cf36fc3f2a191aafc3a0aca159ed0baf5d671af
2017-02-15 16:42:26 +08:00
JW Wang fd3595243f Bug 1339677. Part 3 - add some sanity checks. r=gerald
MozReview-Commit-ID: AXq9KQGKGni

--HG--
extra : rebase_source : e78a7339920605ee66e407e184582f80588646f8
extra : source : 53227d5296decb587aaf214c8f33875cdb2a6f2d
2017-02-16 11:43:46 +08:00
JW Wang 46381af26b Bug 1339677. Part 2 - some code cleanup and remove unnecessary scope qualifiers. r=gerald
MozReview-Commit-ID: 5h7Mv5joGHy

--HG--
extra : rebase_source : 0f81f34b6a7a78e1832c8c5e8f3f570e7e4719fc
extra : intermediate-source : 88dbebd4cfab00aa234b04c3d279ab1e3b82833f
extra : source : 66e5c1b54d22de67b9838afb790805ef8cf1f23e
2017-01-24 16:24:10 +08:00
JW Wang 51d90c702d Bug 1339677. Part 1 - assert DoResolveOrReject() is called on the target thread and use stronger assertions. r=gerald
MozReview-Commit-ID: I1wdNfjehTN

--HG--
extra : rebase_source : e1e3d336b3df10bd3257983a3d34275df0fe8048
extra : intermediate-source : fc357179510cd164c66a391ca67d6b32af85566c
extra : source : bcb07a4f12acb396406fec2d368507a45312ecfa
2017-01-24 16:13:23 +08:00
Sylvestre Ledru 5bedb078f1 Bug 1338086 - Remove useless else blocks in order to reduce complexity in xpcom/ r=froydnj
MozReview-Commit-ID: JUJARn5Nspp

--HG--
extra : rebase_source : c719d19215fb26ace822269c2a28faf5cf35ffbb
2017-02-09 15:31:35 +01:00
Bill McCloskey 70d043f2ab Bug 1337537 - Workarounds to avoid TabGroup assertions in edge cases (r=smaug)
MozReview-Commit-ID: LVTgyivcA7V
2017-02-13 17:03:03 -08:00
Bill McCloskey c6b9c4a0bf Bug 1337575 - Use SystemGroup for GC/CC (r=mccr8)
MozReview-Commit-ID: 9vLuFnuHS9U
2017-02-13 17:02:59 -08:00
Bill McCloskey 1ae37fef66 Bug 1337537 - Assert that runnables labeled with a given TabGroup never touch other TabGroups (r=ehsan)
MozReview-Commit-ID: sOdn9e5f57
2017-02-13 17:02:57 -08:00
Bill McCloskey e1b2f2ef09 Bug 1337537 - Make a SystemGroup singleton (r=ehsan)
MozReview-Commit-ID: Jnwrr49daeM
2017-02-13 17:02:52 -08:00
Bill McCloskey 9b20275aa5 Bug 1337537 - Move some TabGroup code to ValidatingDispatcher (r=ehsan)
MozReview-Commit-ID: EUqZKx2rAOt
2017-02-13 17:02:50 -08:00
Bill McCloskey bea9c4205c Bug 1337537 - Move Dispatcher.{cpp,h} to xpcom/threads (r=froydnj)
MozReview-Commit-ID: AYyKynUv4bX
2017-02-13 17:02:48 -08:00
Brian Hackett 01a649c197 Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00
Bevis Tseng 1ebeb1002b Bug 1333997 - Part 3: Add Test Coverage for Named NewRunnable APIs. r=froydnj
--HG--
extra : rebase_source : 7038228e2744072d1b64f903ab6ae9ca2f053bef
2017-02-07 16:45:45 +08:00
Bevis Tseng 2128d8e3a2 Bug 1333997 - Part 2: Overload the NewRunnable APIs with a 'Name' as 1st Parameter. r=froydnj
--HG--
extra : rebase_source : b7aaaf3acf2edd6cfaff467db6436d5f2d1addb0
2017-02-07 13:02:57 +08:00
Bevis Tseng a9f9ffc077 Bug 1333997 - Part 1: Add Type Aliases for NewRunnable Templates. r=froydnj
--HG--
extra : rebase_source : d2f41c2afd2da1a27b15d03be11f2d76c439734a
2017-02-06 18:08:01 +08:00
David Major 65625866dd Bug 1335896 - Shrink maxPatchedFns in WindowsDllInterceptor. r=aklotz
MozReview-Commit-ID: HLHC2l9ElA0
2017-02-10 14:20:43 +13:00
Vincent Lequertier 5864a38dc4 Bug 1329243 - Fix nsAdoptingString -Wextra copy constructor warning; r=froydnj
MozReview-Commit-ID: DEicxRecJUu

--HG--
extra : rebase_source : 612fa3d002ed906102ab24b3d338eb0087ca5f60
2017-01-23 20:50:01 +01:00
Michael Layzell 81d9f8ac2c Bug 1316696 - Eliminate ns{Fixed,}{C,}StringRepr from the rust bindings, r=froydnj for being the wrong commit backed out a=backout
MozReview-Commit-ID: AMwAUq82vMo
2017-02-08 16:18:58 -08:00
Wes Kocher 250e123173 Backed out changeset 4e259fa04f68 (bug 1316696) for asserts in DocAccessibleParent.cpp a=backout
MozReview-Commit-ID: Eo2Kbxoy1EN
2017-02-08 16:18:02 -08:00
Michael Layzell c3093f17b8 Bug 1316696 - Eliminate ns{Fixed,}{C,}StringRepr from the rust bindings, r=froydnj
MozReview-Commit-ID: AMwAUq82vMo
2017-02-08 14:17:42 -05:00
Olli Pettay 09f425273a Bug 1336957, use diagnostic assert for wrapper existence, r=baku 2017-02-08 15:21:05 +02:00
Nicholas Nethercote d6624d0e50 Bug 816598 - Add a memory reporter for the Gecko Profiler. r=mstange,jseward.
It's fairly straightforward, and measures the important parts of:

- Sampler, PseudoStack, ProfileBuffer, ThreadInfo.

- LUL, PriMap, SecMap

Coverage isn't perfect, but it gets the major things I found via DMD on Linux.

Example output in about:memory:

├──151.21 MB (49.73%) -- profiler
│  ├──141.49 MB (46.53%) ── lul
│  └────9.72 MB (03.20%) ── sampler

--HG--
extra : rebase_source : 67d2ada42aead43f68f5100a08204a1d1f1cfceb
2017-01-30 12:37:26 +11:00
Sebastian Hengst 0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Carsten "Tomcat" Book 092e5dc5f1 merge mozilla-inbound to mozilla-central a=merge 2017-02-07 14:08:46 +01:00
Wes Kocher 2c901c4bcb Merge m-c to inbound, a=merge
MozReview-Commit-ID: FrOiBMr2DHX
2017-02-06 17:51:48 -08:00
Honza Bambas 3a39b6dbee Bug 1322825 - Incremental tokenizer. r=froydnj 2017-02-06 10:49:00 -05:00
Gerald Squelart 213ba5c515 Bug 1336215 - Optimize iterator if nsDeque is const - r=froydnj
Handling potential nsDeque size changes means a bit of extra work.

But if the nsDeque is const, we can assume that it shouldn't get modified, so
we can provide a more optimized iterator that doesn't need to handle size
changes.

Optimizing a range-for loop in which the deque is not modified, can be done
by writing: `for (void* item : const_cast<const nsDeque&>(deque)) {...}`

MozReview-Commit-ID: AFupjoTsoH3

--HG--
extra : rebase_source : a71b09c9cb73787ce686c7c762f92ef0c208e76a
2017-02-03 13:08:10 +11:00
Gerald Squelart dade4b9e6e Bug 1336215 - Make nsDeque::ConstIterator resistant to size changes - r=froydnj
Note that iterators stay at the same index if the deque size changes
(including end-iterators staying at the end).
This means that after front operations, iterators will effectively point at
different elements! (Possibly skipping or re-visiting some.)
But this is consistent with ForEach and hand-crafted index-based for loops.

MozReview-Commit-ID: 5IvazJR68dG

--HG--
extra : rebase_source : c574fd2d2642d784482698c0fc861269200d1059
2017-02-03 09:19:47 +11:00
Gerald Squelart d109b21181 Bug 1336215 - More complete and consistent nsDeque doc, deleted special copy members - r=froydnj
MozReview-Commit-ID: GvjFPiX6lii

--HG--
extra : rebase_source : 1ffc8392106757743f0718aa5cf68d03aa16e384
2017-02-03 12:43:13 +11:00
Byron Campen [:bwc] 276d12bcef Bug 1328643: Add some locking to prevent races caused by Cancel/Init from threads other than the target. r=froydnj
MozReview-Commit-ID: FdAPTGDNKup

--HG--
extra : rebase_source : f0b04c73f0867708750fb9022e07f929ec221e84
2017-01-11 13:59:19 -06:00
Jean-Yves Avenard c64edca1b9 Bug 1319987: P4. Refactor H264 Converter. r=cpearce
We can make some assumptions now that the Input method is only called once and never again while a decode is pending.

MozReview-Commit-ID: EmzKEcwNY2J

--HG--
extra : rebase_source : 42ae59878962b425970a60abe25d98c023ef4fdf
2016-12-30 21:51:42 +11:00
Nathan Froyd 168a1fcbdc Bug 1336086 - remove mozilla::services::_external_Get*Service; r=bsmedberg,jesup
Removing the exported symbols is straightforward enough.

The only wrinkle is that PeerConnectionCtx.cpp gets compiled with and
without MOZILLA_INTERNAL_API.  When compiling without
MOZILLA_INTERNAL_API, mozilla::services::Get*Service was redirected to
the _external_* symbol variants.  But as the _external_* symbols no
longer exist, PeerConnectionCtx.cpp's code no longer worked.

Fortunately, PeerConnectionCtx.cpp already contains a few #ifdef
MOZILLA_INTERNAL_API blocks to handle internal/external compilation;
fixing this newest issue was just a matter of extending existing blocks
and adding new ones.  The key observation is that we never added any
observers when compiling without MOZILLA_INTERNAL_API, so we can #ifdef
out the removals of observers, as those would have no effect, and simply
skip getting the observer service for the observer additions if we're
compiling without MOZILLA_INTERNAL_API.
2017-02-03 11:52:02 -05:00
Gerald Squelart d5ce43788f Bug 1322700 - Enable range-for with nsDeque - r=froydnj
It's now possible to write:
  for (void* item : deque) { ... }

MozReview-Commit-ID: FLoczCZd77y

--HG--
extra : rebase_source : 237293e94b478beb2bf352c1179d42c289dda145
2017-02-02 12:28:35 +11:00