Alphan Chen
a7f16b9ea6
Bug 1154435 - [nsDumpUtil] Refine nsDumpUtils::OpenTempFile to make this function more flexible. r=dhylands
...
- Add one more mode in this function (CREATE/CREATE_UNIQUE)
- export the header file for the usage of other components
2015-06-04 14:47:09 +08:00
Miko Mynttinen
ba173ae5e4
Bug 1197316 - Remove PR_snprintf calls in xpcom/. r=froydnj
2015-08-22 17:57:52 -07:00
Kyle Huey
e5b6091772
Bug 1195755: Don't assert recursion depth sanity on Mac, because there is none. r=me
...
--HG--
extra : rebase_source : 6c0c24ead27200b30302828dea22c50219c79a2c
2015-08-21 19:56:56 -07:00
David Major
521d956cba
Bug 1196370 - Remove the clang assembly workaround from bug 1028613. r=ehsan
2015-08-20 14:34:57 -07:00
Nicholas Nethercote
c8578157c2
Bug 1194061 - Implement "system-heap-allocated" reporter for Windows. r=dmajor.
...
--HG--
extra : rebase_source : a0f31c1ca1c6671d592c73d2473dcc5669022077
2015-08-19 20:35:17 -07:00
Xidorn Quan
9960d37ffb
Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj
...
--HG--
extra : source : 9c567ed00fcf2433e484325bab9a18322718b0da
2015-08-20 10:30:10 +10:00
Bobby Holley
ef08c1794f
Bug 1188976 - Improve MozPromise.h comment. r=me DONTBUILD
2015-08-19 17:13:45 -07:00
Honza Bambas
c0030e0da9
Bug 1188983 - mozilla::Tokenizer improvements, r=nfroyd
...
--HG--
extra : rebase_source : 8cfe594e6c320a9330f09b34d7d7018e023938da
2015-08-19 15:14:25 -07:00
Chris Manchester
f2dcab6039
Bug 1131325 - Move system country code from nsIGfxInfo2 to a more appropriate location. r=aklotz,smichaud
...
--HG--
extra : commitid : Jglg9X6ykB1
2015-07-28 15:45:34 -07:00
Xidorn Quan
9602783f5f
Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj
2015-08-19 11:06:05 -07:00
Nigel Babu
0005d3bf06
Backed out changeset 20c6f74296e2 (bug 1195154) for causing Bug 1196115
...
--HG--
extra : rebase_source : 59356f3ff488b4000e4f3034f9c676d4afe8b49f
2015-08-19 20:43:11 +05:30
Nathan Froyd
5588065ae9
Bug 1189829 - fix quadratic behavior in nsConsoleService; r=erahm
2015-08-17 21:05:48 -04:00
Xidorn Quan
aedc156767
Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj
...
--HG--
extra : source : 3303e551336985eca8b501dcc12cf6f2dddbdec3
2015-08-19 09:09:08 +10:00
Bobby Holley
4ad57e8274
Bug 1195867 - Hoist StateWatching and StateMirroring into XPCOM. r=froydnj
...
--HG--
rename : dom/media/StateMirroring.h => xpcom/threads/StateMirroring.h
rename : dom/media/StateWatching.h => xpcom/threads/StateWatching.h
2015-08-18 15:37:06 -07:00
Michael Layzell
945c9a35f4
Bug 1195415 - Add asciiHostPort field to nsIURI, and use it in the implementation of nsPrincipal::GetOriginForURI, r=bholley
2015-08-18 14:52:24 -04:00
Arnaud Bienner
2755fa9a57
Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
...
--HG--
extra : rebase_source : 81df1495200d3734ea1c4c13818ae764a445f4b3
2015-08-14 00:49:15 +02:00
Bobby Holley
a663591994
Bug 1188976 - Hoist MozPromise into xpcom. r=froydnj
...
--HG--
rename : dom/media/MozPromise.h => xpcom/threads/MozPromise.h
2015-08-17 14:54:45 -07:00
Andrew McCreight
2da6cab23a
Bug 1190483 - Followup to address review comment.
2015-08-14 10:04:41 -07:00
Andrew McCreight
066918123c
Bug 1190483 - Add a way to record a DMD log late in shutdown. r=erahm
2015-08-14 10:00:04 -07:00
Andrew McCreight
d6c5ff450f
Bug 1193564 - Check result of Read32 in nsSupportsArray::Read. r=erahm
2015-08-13 14:24:59 -07:00
Mike Conley
7421d14843
Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm
...
--HG--
extra : commitid : IhjNJOOtmms
extra : rebase_source : 6b0ba29e866dcf63a3054eb955ece082cbbeda13
extra : amend_source : 70bcf59b1f4b1d7a3a8ec4183b3b9710eedfb5f9
2015-08-06 17:36:54 -04:00
Nicholas Nethercote
01a073b5a2
Bug 828844 - Add a "system-heap-allocated" memory report on Linux. r=glandium.
...
This gives zero when jemalloc is enabled and non-zero when jemalloc is disabled
(e.g. I got 83 MiB at start-up, which sounds plausible).
--HG--
extra : rebase_source : f39a15472d48643f57a77f1df03e4a29543d0867
2015-08-12 17:44:00 -07:00
Francois Marier
34de332db0
Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
...
Code changes
2015-08-12 20:19:11 -07:00
David Major
789b31656d
Bug 1192844: Accept 0xCC padding in WindowsDllDetourPatcher::CreateTrampoline. r=m_kato
...
--HG--
extra : rebase_source : 6711e475036ea3fe98bb054b79e10ad8d54692fb
2015-08-12 13:10:04 -04:00
Aryeh Gregor
f29bc4307b
Bug 1010756 - Helpful errors for using nsCOMPtr on non-XPCOM types; r=froydnj
2015-08-12 18:43:10 +03:00
Nicholas Nethercote
5b76d8f3b7
Bug 1181443 (part 3, attempt 2) - Remove nsTHashtable::EnumerateEntries(), which is no longer used. r=froydnj.
...
--HG--
extra : rebase_source : 232b65e93556a311efaf1f2e0b1aee0449b3838d
2015-07-23 02:37:26 -07:00
Nathan Froyd
3b0a318c70
Bug 1192230 - clean up reference-counting in xpcom/; r=erahm
2015-07-01 12:27:43 -04:00
Terrence Cole
2c05aff66d
Bug 1193032 - Part 2: Make unlimited SliceBudget initialization explicit; r=ehoogeveen,r=mccr8
2015-08-11 08:42:24 -07:00
Birunthan Mohanathas
0527ccb54c
Bug 1185763 - Part 4: Swap elements if possible in r-value version of nsTArray::AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
2b4a52cf2e
Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
5528f2d07d
Bug 1185763 - Part 2: Remove non-rvalue version of nsTArray::MoveElementsFrom. r=froydnj
2015-08-11 08:29:46 -07:00
Kyle Huey
76e3009ab8
Bug 1179909: Refactor stable state handling. r=smaug
...
This is motivated by three separate but related problems:
1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).
2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).
3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.
The solve this, this patch does the following:
1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Bobby Holley
f97159c6b7
Bug 1190495 - Hoist TaskQueue into xpcom. r=froydnj
...
--HG--
rename : dom/media/TaskQueue.cpp => xpcom/threads/TaskQueue.cpp
rename : dom/media/TaskQueue.h => xpcom/threads/TaskQueue.h
2015-08-11 08:55:22 -04:00
Alfredo Yang
8c59fda383
Bug 1146086: use promise to Init() in PlatformDecoderModule. r=jya,r=cpearce
2015-08-11 14:09:12 +10:00
ffxbld
3188a80526
Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
2015-08-10 12:20:42 -07:00
Bobby Holley
5bb15d3a58
Bug 1190492 - Hoist AbstractThread and TaskDispatcher to xpcom. r=froydnj
...
--HG--
rename : dom/media/AbstractThread.cpp => xpcom/threads/AbstractThread.cpp
rename : dom/media/AbstractThread.h => xpcom/threads/AbstractThread.h
rename : dom/media/TaskDispatcher.h => xpcom/threads/TaskDispatcher.h
2015-08-07 16:38:35 -07:00
Bobby Holley
a6c9a6255e
Bug 1190492 - Init AbstractThread statics from XPCOM. r=froydnj
2015-08-07 16:38:34 -07:00
Nicholas Nethercote
0a97485195
Bug 1190735 - Remove nsITimer.TYPE_REPEATING_PRECISE. r=froydnj.
...
--HG--
extra : rebase_source : e4424bde52b0f90adbd328071f62b89193098d34
2015-08-04 17:30:53 -07:00
Nicholas Nethercote
deb1dc5d6b
Backout 04a196339ca4 (bug 1181443, part 3) so that bug 1182961's patches can be backed out.
...
--HG--
extra : rebase_source : c2f49d0bfd6a82b35eeed73c0a88f60661c1defd
2015-08-06 16:28:13 -07:00
Andrew McCreight
12b6a0a427
Bug 1189423 - part 2 - Remove superfluous |new| result check. r=froydnj
2015-07-30 15:06:00 +02:00
Andrew McCreight
0869c89dae
Bug 1189423 - part 1 - Add MOZ_COUNT_CTOR/DTOR for nsXPTCStubBase. r=froydnj
2015-08-04 14:30:00 +02:00
Nicholas Nethercote
2c850da1f5
Bug 1181443 (part 3) - Remove nsTHashtable::EnumerateEntries(), which is no longer used. r=froydnj.
...
--HG--
extra : rebase_source : f16a883725371524f0c63d72b09ae69df688673f
2015-07-23 02:37:26 -07:00
Botond Ballo
1ad5e05028
Bug 1056356 - Add support for nsRefPtr<const T>. r=froydnj
...
--HG--
extra : rebase_source : 7b86c6e7bc47c7b3ebc19075559cf0f7d24ededf
2015-08-05 13:52:06 -04:00
Aryeh Gregor
80ea0a3e53
Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
...
--HG--
rename : dom/bindings/OwningNonNull.h => xpcom/base/OwningNonNull.h
2015-08-05 15:28:27 +03:00
Bobby Holley
ad1880d040
Bug 1191063 - Followup comments. r=me DONTBUILD
2015-08-04 17:36:06 -07:00
Birunthan Mohanathas
7315345693
Bug 1191100
- Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Bobby Holley
b5a26b0b15
Bug 1190496 - Hoist SharedThreadPool into xpcom. r=froydnj
...
--HG--
rename : dom/media/SharedThreadPool.cpp => xpcom/threads/SharedThreadPool.cpp
rename : dom/media/SharedThreadPool.h => xpcom/threads/SharedThreadPool.h
2015-08-04 14:00:58 -07:00
Bobby Holley
e7a16a397c
Bug 1190496 - Init SharedThreadPool from XPCOM rather than MediaDecoder. r=froydnj
2015-08-04 14:00:52 -07:00
James Cheng
315911c26e
Bug 1189231 - Impl operator->* to nsAutoPtr. r=nfroyd
2015-07-30 21:02:00 -04:00
Nicholas Nethercote
d98d14fa1e
Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
--HG--
extra : rebase_source : f98420176f50990bbc5a25e35788328154cfeb00
2015-07-30 21:19:57 -07:00
Nicholas Nethercote
1059c1de13
Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().
--HG--
extra : rebase_source : f93de9b789c21b1b148bed9de795f663f77c9dd9
2015-07-29 01:50:52 -07:00
Nicholas Hurley
16407ea724
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
...
--HG--
extra : rebase_source : 24dd37c6eaec83a1776d77632b97106e8abb8015
2015-07-31 13:50:08 -07:00
Arnaud Bienner
52ee71547c
Bug 1186603 - Add a "Contains" method for string classes and use it in HTMLInputElement. r=nfroyd
2015-07-30 19:45:25 +02:00
Jesse Ruderman
7ed9e0fe1b
Bug 1024259: Use NS_FREE_PERMANENT_DATA more consistently. r=mccr8
2015-07-31 12:11:48 -07:00
Kyle Huey
8f1d6bf154
Bug 1152574: Fix console service discarding to run when it is actually safe to do so (off of inner-window-destroyed). Also add a backstop at xpcom-shutdown to discard any cycle collected messages before it is too late. r=froydnj
...
--HG--
extra : rebase_source : 689ed129fd8df604385dde4fe9d9477f14f2fced
2015-07-31 06:49:27 -07:00
Andrew McCreight
3127d66102
Bug 1189122 - Assert when we Suspect() when a CC scan is in progress. r=smaug
...
This can cause leaks that are invisible to our XPCOM leak detection system.
To avoid this, classes should not addref or release in their Traverse methods.
--HG--
extra : rebase_source : acd0b070c63cbb4111c165d6b131b8e3b822773a
2015-07-29 20:48:00 +02:00
Nicholas Nethercote
2d56c1f52e
Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
...
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)
This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.
Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.
--HG--
extra : rebase_source : b1d51096a8e7dcac29d7efd92e28938836ff5481
2015-07-29 22:28:20 -07:00
James Cheng
9aed940662
Bug 975246 - Part2- Test Invoking via operator->*. r=nfroyd
2015-07-29 02:52:00 +02:00
Nicholas Nethercote
87b80f8c66
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Byron Campen [:bwc]
309a57122b
Bug 1059572 - Part 2: Make absolutely sure a timer is removed before reinitting it. r=nfroyd
...
--HG--
extra : rebase_source : 9a952241e046321a25adf52167bd7a538d25f37a
2015-07-28 10:10:54 -05:00
Byron Campen [:bwc]
e145322168
Bug 1059572 - Part 1: Move PostTimerEvent to TimerThread to allow TimerThread's monitor to protect it. r=nfroyd
...
--HG--
extra : rebase_source : ec9623818cd1a5f3a2665a1c4af4be7869c0dec3
2015-07-22 12:39:34 -05:00
Byron Campen [:bwc]
0978da8e2c
Bug 1059572 - Part 0.5: Fixes for pre-existing problems in TestTimers. r=nfroyd
...
--HG--
extra : rebase_source : c1b7e705e4a46f69f2567469ae54f866768de0a4
2015-07-29 11:43:40 -05:00
Byron Campen [:bwc]
e9930c8020
Bug 1059572 - Part 0: Fuzz test for timers. r=nfroyd
...
--HG--
extra : rebase_source : ca1e13f6b60ed61b190f8ace90d28f78e531e90b
2015-07-29 11:16:14 -05:00
Aidin Gharibnavaz
99b2a37529
Bug 108603 - Remove NS_IMPL_QUERY_INTERFACE_INHERITED0. r=mccr8, r=froydnj
...
--HG--
extra : rebase_source : 98a86a1ff5d023aa74800de8feb1cfe1846edf03
2015-07-24 12:13:00 -04:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Bobby Holley
4762225b99
Bug 1188696
- Remove the XPCOM dependencies in nsRefPtr.h. r=froydnj
2015-07-29 10:44:58 -07:00
Nathan Froyd
c6d5ee54fb
Bug 1179787 - part 2 - add template logic for smart pointer template arguments in NS_NewRunnableMethod*; r=botond
2015-07-02 11:17:49 -04:00
Nathan Froyd
8ddd161b85
Bug 1179787 - part 1 - forward StorensRefPtrPassByPtr's constructor argument; r=botond
...
StorensRefPtrPassByPtr is currently used for storing reference-counted
types passed as T* template arguments to NS_NewRunnableMethodWith*.
We'd also like to use it to store nsRefPtr<T> template arguments. While
it could be used in its current form, it'd be better for its constructor
to support forwarding, so that something like:
NS_NewRunnableMethodWithArg<nsRefPtr<T>>(..., nsRefPtr<T>(local));
doesn't cause unnecessary reference counting.
2015-07-02 11:05:52 -04:00
Ryan VanderMeulen
fb6b2747d5
Bug 1180017 - Fix up the badly-horked backout and re-land.
...
CLOSED TREE
--HG--
extra : amend_source : 0b7ac18429b248cf05cfe33f6b2f6efdf1602c38
extra : histedit_source : bdb11dafa100809ec17491e5711fb0b507e023c6%2C5e4134650a804859dc8b3078688fa4655052263f
2015-07-29 12:31:47 -04:00
Jim Blandy
4e8fc0bdcb
Bug 1180017 - Give GCCellPtr is<T> and to<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
2015-07-03 15:06:23 -07:00
Carsten "Tomcat" Book
25a2a75a56
Backed out changeset 465793bc6fcf (bug 1180017) for suspicion of causing bug 1188799
2015-07-29 15:27:12 +02:00
Jacek Caban
1febc8154e
Bug 1188431 - Fixed length argument handling in char16ptr_t variant of NS_ConvertUTF16toUTF8 constructor. r=nfroyd
2015-07-29 12:26:40 +02:00
Jim Blandy
ff7cc06ef6
Bug 1180017: Give GCCellPtr is<T> and as<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
...
--HG--
extra : rebase_source : 4a381c5d8427ad2995426e65c69af1597b1557c2
2015-07-07 09:52:01 -07:00
Ehsan Akhgari
7a81d59cb2
Bug 1188203 - Fix more constructors in XPCOM; r=froydnj
2015-07-28 12:24:37 -04:00
Kyle Huey
6dad638eb2
Bug 1186780: Replace EnumerateRead with new iterators in cycle collection code. r=mccr8
2015-07-26 19:29:52 -07:00
Nicholas Nethercote
dbc67380bd
Bug 1187767 - Ensure PLDHashTable's generation is always updated when the entry store is modified. r=froydnj.
...
--HG--
extra : rebase_source : e70d253257eac422a454d20de0fb94d2ac736e84
2015-07-26 19:57:23 -07:00
Honza Bambas
61aeafa22b
Bug 1024056 - Simple ASCII lexical analyzer. r=nfroyd
2015-07-27 05:07:00 -04:00
Carsten "Tomcat" Book
c9839dd8f9
Backed out changeset 1ca5723f69d4 (bug 1186780) for dom crashes
2015-07-27 08:01:09 +02:00
Kyle Huey
6758447d5d
Bug 1186780: Replace EnumerateRead with new iterators in cycle collection code. r=mccr8
2015-07-26 19:29:52 -07:00
Nicholas Nethercote
10da8efa1c
Bug 1187197 (part 3) - Convert pldhash.{cpp,h} to C++ style comments. r=froydnj.
...
--HG--
extra : rebase_source : 4615862ad586e24050a6f5571b8d21689ba3fdf3
2015-07-23 23:13:11 -07:00
Nicholas Nethercote
42e338fc52
Bug 1187197 (part 2) - Put function return types on their own line. r=froydnj.
...
--HG--
extra : rebase_source : 58e81c134c321faa28e6ab46ed4c6c583a846ab5
2015-07-23 23:13:10 -07:00
Nicholas Nethercote
49a82c55c8
Bug 1187197 (part 1) - Move comments from PL_DHashTable* functions to the equivalent methods. r=froydnj.
...
Because the PL_DHashTable* functions will go away eventually (bug 1121760).
--HG--
extra : rebase_source : 6bd5aedf71c162102f4a7e06347c868d5dd78dbd
2015-07-23 21:43:48 -07:00
Michael Layzell
660f381a2f
Bug 1159433 - Part 4: Mark nsTAutoString_CharT and nsAutoArrayBase as non-memmovable; r=froydnj
2015-07-24 19:15:40 -04:00
Michael Layzell
66a04cf80f
Bug 1159433 - Part 3: Make nsTArray_CopyChooser only accept memmovable argument types by default; r=froydnj
2015-07-24 19:15:23 -04:00
Michael Layzell
69cc6fcb31
Bug 1123907 - Part 2: Add MOZ_NEEDS_NO_VTABLE_TYPE to Attributes.h, and use it to verify the EntryType argument of nsTHashtable; r=ehsan
2015-07-24 19:14:09 -04:00
Xidorn Quan
658cb19c1f
Bug 1187201 - Add char16 wrapper constructor for NS_ConvertUTF16toUTF8 in external string API. r=froydnj
...
--HG--
extra : source : 0facdb6085164a2f5a1674f795fc7a2df4332ca3
2015-07-24 23:06:50 +10:00
Julian Seward
41efe494ad
Bug 1183093 - Uninitialised value use in Probe::Trigger. r=dteller.
2015-07-24 11:45:50 +02:00
Nate Hughes
94f8966c4b
Bug 986302 - Add memory reporting for HPACK tables r=hurley r=njn
2015-07-17 14:38:10 -07:00
Nicholas Nethercote
50600e08a2
Bug 1181443 (part 2) - Use nsTHashtable::Iterator in TestHashtables.cpp. r=froydnj.
...
--HG--
extra : rebase_source : 8af9bef1f1f474555f09b41ec3d985add6d9d728
2015-07-23 02:36:13 -07:00
Nicholas Nethercote
3e2de4702c
Bug 1181443 (part 1) - Use nsTHashtable::Iterator in nsCheapSet. r=froydnj.
...
nsCheapSet is used little enough that I didn't bother creating an iterator for
it.
I removed the dependency on PLDHashOperator by introducing nsCheapSetOperator,
which is equivalent.
--HG--
extra : rebase_source : 8a15ae2ee0949a241f6417bfab614affbec2987c
2015-07-23 02:35:27 -07:00
Andrew McCreight
18401c9409
Bug 931571, part 15 - Remove extra spaces in nsVariant macros. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
14b12fbcf9
Bug 931571, part 14 - Delete various ways to copy or move nsDiscriminatedUnion. r=froydnj
...
nsDiscriminatedUnion owns memory without using smart pointers, so implementing anything
that would copy or move around one of these will require some care. Just forbid these
for now.
2015-07-23 12:28:30 -07:00
Andrew McCreight
13e2d3a560
Bug 931571, part 13 - Add a destructor for nsDiscriminatedUnion. r=froydnj
...
The existing nsDiscriminateUnions either always call Cleanup() when they
are about to go away, or they only handle scalar values so it is safe to
call Cleanup() on them without worrying about another discriminated union
having taken over any memory owned by this union.
2015-07-23 12:28:30 -07:00
Andrew McCreight
0994e4e4ed
Bug 931571, part 12 - Add nsDiscriminatedUnion::GetType(). r=froydnj
...
This is not quite enough to make the data members private because
XPCVariant pokes around to do some JS array stuff.
2015-07-23 12:28:30 -07:00
Andrew McCreight
4bdbcd2020
Bug 931571, part 11 - Turn nsDiscriminatedUnion's Traverse function into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
2cca253ff3
Bug 931571, part 10 - Turn SetFromVariant into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cb922209d3
Bug 931571, part 9 - Turn most of the nsVariant setters into nsDiscriminated methods. r=froydnj
...
This also adds a new nsDiscriminatedUnion method SetFromDOMString, as somebody added an nsVariant method without the corresponding helper.
2015-07-23 12:28:30 -07:00
Andrew McCreight
8c28737b59
Bug 931571, part 8 - Turn ConvertToISupports, ConvertToInterface and ConvertToArray to methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
219f81d45f
Bug 931571, part 7 - Turn ConvertTo*String and ToString into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
83b488957d
Bug 931571, part 6 - Make ConvertToID and String2ID into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
6c297a19d4
Bug 931571, part 5 - Turn basic ConvertTo functions into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cadbb45b7f
Bug 931571, part 4 - Fix some spacing inside macros.
...
There's more that could be done to fix the style, but this was bothering me.
2015-07-23 12:28:30 -07:00
Andrew McCreight
79e1884b62
Bug 931571, part 3 - Rename return value of macro generated methods. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
ca92d9ebc0
Bug 931571, part 2 - Convert Cleanup() and FreeArray() to methods. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
7b7d1a30b8
Bug 931571, part 1 - Use a constructor for nsDiscriminatedUnion. r=froydnj
2015-07-23 12:28:29 -07:00
Bobby Holley
4f18eeb505
Bug 1161831 - Generate an extra macro to declare a non-virtual variant of an interface. r=billm
...
This allows us to have a shared superclass that implements the guts of a shared
superinterface, without having the superclass actually inherit the superinterface
(which leads to annoying and unnecessary diamond-inheritance).
2015-07-21 12:57:20 -07:00
Andrew McCreight
7c34797069
Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug
2015-07-21 11:31:44 -07:00
Birunthan Mohanathas
4db7ee5707
Bug 1185589 - Properly handle self-assignment in nsTArray::operator=. r=mccr8
2015-07-21 09:42:58 -07:00
Andrew McCreight
6ea0227583
Bug 1185144 - nsConsoleService::LogMessageWithMode() should release the retired message on the main thread. r=froydnj
...
Also, add release asserts that the other methods that addref or release console messages are only run on the main thread.
Finally, add an assert that nsScriptErrorWithStack is only created on the main thread.
2015-07-21 07:50:09 -07:00
Carsten "Tomcat" Book
f7531b86f7
Backed out changeset 8b90b21e0c64 (bug 986302) for static build failures
2015-07-21 08:53:37 +02:00
Nate Hughes
3f6e8d3da5
Bug 986302 - Add memory reporting for HPACK tables. r=hurley r=njn
2015-07-17 14:38:10 -07:00
Nicholas Nethercote
4ade448a75
Bug 1185399 (part 2) - Remove macros from pldhash.cpp. r=froydnj.
2015-07-20 17:15:00 -07:00
Nicholas Nethercote
954e563acc
Bug 1185399 (part 1) - Remove macros from pldhash.h. r=froydnj.
2015-07-20 17:06:38 -07:00
Kyle Huey
ee4f5ba9fb
Bug 1185470: Remove 'Get' prefixes from hashtable iterator methods. r=froydnj
2015-07-20 20:21:28 +08:00
Carsten "Tomcat" Book
0551dfb053
merge mozilla-inbound to mozilla-central a=merge
2015-07-20 11:36:42 +02:00
Victor Porof
f11ae1a898
Bug 1183228 - Use separate files for AutoTimelineMarker and AutoGlobalTimelineMarker, r=smaug
2015-07-17 15:51:39 -04:00
Andrew McCreight
74d0ecbbd9
Bug 1184695 - Fix some indentation in nsHashPropertyBag. r=poiru
2015-07-16 17:50:43 -07:00
Ehsan Akhgari
29d8c3e504
Bug 1123386 - Part 3: Mark DoNothingCallback::Callback as override in order to fix a build issue in warnings as errors mode
2015-07-17 22:19:57 -04:00
Wes Kocher
c3eedd62ae
Merge m-c to inbound, a=merge CLOSED TREE
2015-07-15 16:41:49 -07:00
Wes Kocher
59e6297180
Merge fx-team to central, a=merge
2015-07-15 16:33:58 -07:00
Benoit Girard
819a9fd767
Bug 1182516 - Fix mid-air conflict with 3fd2ab6cb762 on a CLOSED TREE. r=bustage
...
--HG--
extra : commitid : Adcu7H4oTQG
2015-07-15 18:08:25 -04:00
Ryan VanderMeulen
fa5776b708
Merge m-c to fx-team. a=merge
2015-07-15 13:30:09 -04:00
Ryan VanderMeulen
2d600228e7
Merge b2g-inbound to m-c. a=merge
2015-07-15 13:25:56 -04:00
Kan-Ru Chen
c825f41c31
Bug 1181518 - Change the reason for memory-pressure fired during priority change. r=gsvelto
2015-07-15 17:07:39 +08:00
Benoit Girard
fe3dfcf5b2
Bug 1182516 - Add Chaos Mode environment variable MOZ_CHAOSMODE. r=roc
...
--HG--
extra : commitid : qfYBMvxZ7k
extra : rebase_source : 4c7098464712d7e5fa88ba1d8fba7c044772b0d6
2015-07-14 17:29:23 -04:00
Ben Kelly
1d8798cbc9
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-14 13:11:26 -07:00
Ben Kelly
e2321797dc
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-14 13:11:26 -07:00
Ryan VanderMeulen
551c0cccfc
Merge m-c to inbound. a=merge
2015-07-15 13:26:44 -04:00
Peter Elmers
f0de749c69
Bug 1183291 - Factor idl-parser into a Python package. r=khuey
...
Move Python code into an xpidl subdirectory, and include a setup.py to allow
inclusion from pip install or requirements files. Change build directory
variables appropriately.
--HG--
rename : xpcom/idl-parser/Makefile.in => xpcom/idl-parser/xpidl/Makefile.in
rename : xpcom/idl-parser/header.py => xpcom/idl-parser/xpidl/header.py
rename : xpcom/idl-parser/moz.build => xpcom/idl-parser/xpidl/moz.build
rename : xpcom/idl-parser/runtests.py => xpcom/idl-parser/xpidl/runtests.py
rename : xpcom/idl-parser/typelib.py => xpcom/idl-parser/xpidl/typelib.py
rename : xpcom/idl-parser/xpidl.py => xpcom/idl-parser/xpidl/xpidl.py
2015-07-13 13:09:11 -07:00
Jeff Muizelaar
7bc6837af6
Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
...
--HG--
extra : rebase_source : b18fb78fa6b7d86fbb9496861938bfde21b3c6e6
2015-07-08 16:51:09 -04:00
Andrew McCreight
807cd2fbe2
Bug 1182318 - Part 2: Remove Closure from CycleCollectedJSRuntime. r=smaug
...
Closure is now just a wrapper around a single boolean, so instead pass a pointer to the boolean.
2015-07-14 08:01:00 -04:00
Andrew McCreight
ee6ab85145
Bug 1182318 - Part 1: Remove Closure::mCb. r=smaug
...
This field no longer needs to be passed in the closure thanks to the iterator.
2015-07-14 08:01:00 -04:00
Olli Pettay
bf12e17af3
Bug 1182277, don't leak when using nsAutoTArray inside nsTArray, r=nfroyd
...
--HG--
extra : rebase_source : f2ef5f9be86461490ad87e4862e1f77f88b33ade
2015-07-14 17:05:10 +03:00
Nicholas Nethercote
4aa7305199
Bug 1180122 - Make Chaos Mode affect PLDHashTable's iterators. r=froydnj.
...
This makes the code less elegant, but that's unavoidable.
--HG--
extra : rebase_source : 585034bcd8383102669caf2378d705234410d8a9
2015-07-03 00:27:27 -07:00
Alexandre Poirot
5fb7a23ea0
Bug 814497 - Cleanup console service cache when a window is destroyed. r=nfroyd
2015-07-09 06:49:00 -04:00
Ehsan Akhgari
68e13b0044
Bug 1123323 - Ensure that xptiTypelibGuts cannot have a vtable; r=froydnj
2015-09-03 18:54:19 -04:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Michael Layzell
fafaf07b01
Bug 1028132 - Remove mozilla::HasDangerousPublicDestructor<T>. r=mccr8
2015-07-07 18:45:00 -04:00
Nicholas Nethercote
a122bb402c
Bug 1182926 - Fix "observer-service-suspect" bustage. r=poiru.
...
--HG--
extra : rebase_source : 3bc89688488a8b0f4c22dd10a7c2a24babd07733
2015-07-12 15:55:27 -07:00
Nicholas Nethercote
e1824580b7
Bug 1181411 - Test some expected aborts in PLDHashTable. r=glandium.
2015-07-12 18:50:21 -07:00
Wes Kocher
aec62d3dc0
Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
...
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Wes Kocher
14b97c87b1
Backed out changeset df6593df027b (bug 1173912)
2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-10 14:28:32 -07:00
Ben Kelly
2a31a01e4b
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-10 14:28:32 -07:00
Wes Kocher
a44c7080e6
Backed out changeset 9814f77d258b (bug 1179924) for frequent random serviceworkers failures CLOSED TREE
2015-07-10 12:48:34 -07:00
Andrew McCreight
3f09fa3f0f
Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug
2015-07-10 07:41:33 -07:00
Nicholas Nethercote
3aa4ed90e3
Bug 1181445 (part 13) - Use nsBaseHashTable::Iterator in xpcom/ds/. r=froydnj.
...
--HG--
extra : rebase_source : 0c143d4bb6de75d133984b41400cd612e4d1064e
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
f32a629f7d
Bug 1181445 (part 12) - Use nsBaseHashTable::Iterator in xpcom/threads/. r=froydnj.
...
--HG--
extra : rebase_source : 76f747c7ac22df28cc78a8afea0e25f3b4b2aa07
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
d367971294
Bug 1181445 (part 11) - Use nsBaseHashTable::Iterator in xpcom/glue/. r=froydnj.
...
--HG--
extra : rebase_source : 5b6fe9813c08627f626fa8da66a8e724baa274aa
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
70347ce8c5
Bug 1181445 (part 10) - Use nsBaseHashTable::Iterator in CycleCollectedJSRuntime. r=mccr8.
...
--HG--
extra : rebase_source : 04841562dbe03e48b37c941b540ade0c493ba4e6
2015-07-09 16:54:59 -07:00