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

14830 Коммитов

Автор SHA1 Сообщение Дата
Robert O'Callahan 6b5b9dcbc9 Bug 1236789. Avoid creating an unnecessary thread pool thread for tail-dispatch in TaskQueue. r=bholley
MozReview-Commit-ID: H1rhQPBU00L

--HG--
extra : rebase_source : beb861cec3c9587bfe466b6fd34abaa95abd9865
2016-01-05 16:35:17 +13:00
Nicholas Nethercote 334f3c9213 Bug 1249503 - Make WindowsAddressSpaceReporter bloat memory reports less. r=erahm.
The WindowsAddressSpaceReporter generates one memory report per segment, and
there can be 10,000+ segments.

This patch changes things so that one memory report is generated per segment
*kind* -- at most a couple of dozen -- rather than one per *segment*.

--HG--
extra : rebase_source : bbe86562ee486fd5fbb5d48ff2cc59a6f4c7b4c9
2016-02-23 18:39:24 +11:00
Bogdan Postelnicu ccd1e6e5c5 Bug 1021151 - avoid memory leak in NS_GENERIC_AGGREGATED_CONSTRUCTOR_INIT, use nsAutoPtr instead of naked ptr. r=Ehsan
MozReview-Commit-ID: 6iU7ikbgjEn

--HG--
extra : rebase_source : bfd77469f91e81c26532819596fa5a19f8d4a766
2016-02-23 14:12:22 +02:00
Bogdan Postelnicu e4d1a83ade Bug 1250134 - assert mJSRuntime when IsGrayJS() is true. r=mccr8
MozReview-Commit-ID: B5046aj61jx

--HG--
extra : rebase_source : 7ddc7be40030dec122643cae4d1042fe611efc2d
2016-02-23 09:28:52 +02:00
Andrew McCreight b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
Andrew McCreight c0010835a7 Bug 1247679, part 2 - Null check inside TraceCallbackFunc::Trace. r=smaug 2016-02-22 10:11:02 -08:00
Andrew McCreight 76d514e54c Bug 1247679, part 1 - Make ClearJSHolder publicly inherit from TraceCallbacks. r=smaug 2016-02-22 10:11:02 -08:00
Jeff Lu d0b0eb8c7a Bug 864842 - Show error for browsing Windows drive without media, r=michal 2016-02-22 17:00:10 +01:00
Olli Pettay cd9e373713 Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8
--HG--
extra : rebase_source : e9138c0e1c8861847af2cb8c44800973c1c9ee0d
2016-02-19 20:17:25 +02:00
Carsten "Tomcat" Book 0ed07869c5 Backed out changeset dc704cb50a24 (bug 1249451) for bustage 2016-02-19 14:18:37 +01:00
Olli Pettay 27f059ed50 Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8
--HG--
extra : rebase_source : ed241e50718cab2717d9ed42f2c46cdfa63a9d6a
2016-02-19 13:09:20 +02:00
Nicholas Nethercote 2abcf180f1 Bug 1249171 - Simplify nsCOMArray::SizeOfExcludingThis(). r=erahm.
Using explicit iteration at measurement sites is much simpler and nicer than
using callbacks.

--HG--
extra : rebase_source : 8b3f7aa702743b665383766b66a866a2c3d17240
2016-02-19 14:54:45 +11:00
Brian Birtles f646d50d07 Bug 1249212 part 2 - Fix infinity handling in StickyTimeDurationValueCalculator::Multiply; r=froydnj
This patch brings the behavior of this method into line with the comment that
describes it and other methods in this class that have a similar test.

I discovered this bug while exercising this code from animation code and was
getting test failures due to returning -Infinity instead of the expected
Infinity.
2016-02-19 08:37:31 +09:00
Andrew McCreight 8705772a81 Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug 2016-02-18 15:21:48 -08:00
Honza Bambas 06ad5a472f Bug 961430 - Allow pid be added to the log file name automatically. r=froydnj 2016-02-18 07:56:00 -05:00
Nicholas Nethercote 9eda713f8b Bug 1247850 - Shrink NameTableKey in nsStaticCaseInsensitiveNameTable. r=froydnj,erahm.
This patch removes NameTableEntry::mString. This requires adding mNameArray to
NameTableKey so that we can index off it in matchNameKeysCaseInsensitive().

This change saves 41.5 KiB per process.
2016-02-12 16:55:51 +11:00
Ben Kelly 7382b7bc31 Bug 1247580 P1 Allow old nsIX509Cert serialized objects to be read off disk. r=bz 2016-02-17 07:18:00 -08:00
Julian Seward 37bf902fe7 Bug 1136762 - TSan: data race xpcom/io/nsPipe3.cpp:1061 CloseWithStatus. r=nfroyd.
--HG--
extra : rebase_source : b29cfb05b0c942973e573871edc0f0fdf7203a15
2016-02-17 11:22:28 +01:00
Mike Shal de1e7b8d59 Bug 1241976 - port INSTALL_TARGETS in xpcom/tests to moz.build; r=glandium 2016-01-21 21:06:50 -05:00
ISHIKAWA, Chiaki be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Andrea Marchesini 4bf350a0ba Bug 1247122 - Propagate the NS_ERROR_OUT_OF_MEMORY from CycleCollectedJSRuntime CTOR, r=khuey 2016-02-14 13:30:25 +00:00
Carsten "Tomcat" Book b0531843fe merge mozilla-inbound to mozilla-central a=merge 2016-02-12 15:15:17 +01:00
Ryan VanderMeulen d05085d0b5 Backed out changeset e135879cff29 (bug 1218473) to fix various Windows startup issues being experienced by some users. a=sledru
--HG--
extra : source : fd105431c25d9c6b4a265c80bfc1208ff468ea03
extra : intermediate-source : 02156c26b928dfdb8076fd09c32ba7ca311ff360
2016-02-11 13:35:48 -05:00
Carsten "Tomcat" Book b1fb989ae0 Backed out changeset 6e4e5e584c32 (bug 1240848) for causing bug 1241921 to reappear 2016-02-11 15:12:51 +01:00
Terrence Cole 90bd4d3cee Bug 1247381 - Restore a CC optimization dropped in bug 1105069 part 7; r=mccr8
--HG--
extra : rebase_source : 1579c3b0af0563dfa5539b5360a23254451c3978
2016-02-10 12:46:52 -08:00
Andrew McCreight 55351409af Bug 1245673 - Remove useless NS_INT32_TO_PTR from DumpSerialNumbers. r=froydnj 2016-02-10 10:29:20 -08:00
Andrew McCreight da4c77b206 Bug 1243949 - Fatally assert when we fail to create an XPCOM log. r=froydnj 2016-02-10 10:29:20 -08:00
Karl Tomlinson a02ee88552 bug 1245745 include libpulse version in update URL r=glandium
--HG--
extra : rebase_source : 24c37042fb74519dd392515386f0afeec289db4e
2016-02-09 14:35:03 +13:00
Boris Zbarsky 5ba2fc1250 Bug 1243001 part 8. Tell SpiderMonkey to put its promise jobs into the CycleCollectedJSRuntime job queue. r=peterv
This will run the SpiderMonkey promise jobs more or less the same way that we
run Promise jobs right now, including using a Web IDL callback for the actual
invocation.
2016-02-09 17:40:31 -05:00
Aaron Klotz 33ea2e8a9e Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan
--HG--
extra : rebase_source : c9604e99a0741213676227cfc7f915236c6e67ee
extra : amend_source : 7f2bbe6e661ab4dffc045d24489bf40d0409b093
2016-02-03 16:21:17 -07:00
Ted Mielczarek ea6f9a1958 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper.h => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper.h
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper_unittest.cc => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper_unittest.cc
extra : histedit_source : 43e65f5432657f548cac5aa7936461e58454c3b6%2C7b56ccc79d9d58ebde0583d920f3593e25212621
extra : rebase_source : f6dbfb8fb2ba5b27e63b26d57c404962679c7a76
extra : commitid : DMQlXPms868
extra : source : 09fd4f3ab6e764016fe073efb226f03b5969af59
extra : intermediate-source : 16f9d3a6d2ef6a6efd088e3b8eff0a4723daef8f
2016-01-27 09:39:53 -05:00
Nathan Froyd 9a2523bcc3 Bug 1247359 - micro-optimize the common case of String{Begins,End}With; r=erahm
StringBeginsWith (resp. StringEndsWith) takes a defaulted
nsStringComparator object for doing comparisons.  The flexibility this
affords is great, but the cost is not: nsStringComparator has virtual
methods, so initializing that defaulted object (at every callsite)
requires a temporary object whose vtable must be initialized.

Since the overwhemingly common case is to use the default comparator
anyway, we should not use defaulted arguments and instead provide the
default comparator/user-provided comparator cases as separate overloads.
This change eliminates the virtual call for the majority of callsites
and reduces codesize as well.
2016-02-10 14:31:06 -05:00
Aidin Gharibnavaz 686438c658 Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book 5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz 69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Ehsan Akhgari 05b69db9be Remove the workaround added in bug 1022420 now that clang-cl understands __declspec(novtable) 2016-02-06 16:57:58 -05:00
Valentin Gosu 52d81f715f Bug 241788 - mozilla::Tokenizer - token type for \n should whitespace if given in constructor r=honzab 2016-02-05 14:43:45 +01:00
Brian Birtles 73e4706ab3 Bug 1239889 part 1 - Throw if the animation target does not have a current document; r=heycam
This is just a temporary measure to avoid a failed assertion / crash until we
fix bug 1245748.
2016-02-05 14:11:04 +11:00
Nicholas Nethercote 5315826043 Bug 1181444 (part 2) - Remove nsBaseHashtable::Enumerate(). r=froydnj.
\o/

--HG--
extra : rebase_source : 4f4831b1feb4ee25b6adc7aeeae548e5d0df5c8d
2015-11-24 19:42:28 -08:00
Nathan Froyd 0e84188646 Bug 1245586 - add debugging aids for thread shutdown; r=khuey
These bits were helpful in debugging recent thread shutdown leaks.
2016-02-03 13:59:26 -05:00
Andrew McCreight be08af06eb Bug 1245513 - Use _exit(0) to exit in B2G debug content processes. r=froydnj
This skips destructors, so hopefully it avoids some odd behaviors.
2016-02-03 10:00:11 -08:00
Andrew McCreight 953e1016ee Bug 1242119 - Remove early exit in WinXP debug content processes. r=froydnj
This was disabled because it was causing intermittent failures in a
test, but that failure seems to have stopped.

This will cause us to start doing leak checking in content processes
on Windows XP.
2016-02-03 07:28:27 -08:00
Paul Bignier 73d69ff7c5 Bug 1245099 - Fixed uninitialized variable warning. r=bsmedberg 2016-02-02 06:41:00 +01:00
Honza Bambas 1e63bfcb77 Bug 885952 - Add thread name to MozLogging, r=froydnj 2016-02-02 07:21:00 +01:00
Birunthan Mohanathas 54720f2a75 Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas 62cff61cda Bug 1235261 - Part 5: Merge nsAutoArrayBase into AutoTArray. r=froydnj
nsAutoArrayBase is no longer needed because AutoTArray is its only subclass.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas 7104c2aaa5 Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Nicholas Nethercote 53001db0dd Bug 1244606 - Remove PL_DHASH_FASTCALL. r=froydnj.
FindFreeEntry() has one caller, so using MOZ_ALWAYS_INLINE should be good
enough for it. As for SearchTable(), NS_FASTCALL is the same as
PL_DHASH_FASTCALL and so can be used instead.

--HG--
extra : rebase_source : 814f96d4751922785358e7a4f9d64fcf522364c1
2016-02-02 06:27:57 +11:00
Kyle Huey 4e5ab143e9 Bug 1204784: Handle cases in nsThreadPool where Gecko doesn't own the thread that we're running on. r=froydnj 2016-02-01 09:44:52 -08:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas d39376e4d0 Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj 2016-01-31 17:12:13 +02:00
Birunthan Mohanathas fbff06ea09 Bug 1235261 - Part 5: Merge nsAutoArrayBase into AutoTArray. r=froydnj
nsAutoArrayBase is no longer needed because AutoTArray is its only subclass.
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 6ed751e586 Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Xidorn Quan dd6be4d4ca Bug 1241901 part 4 - Stop using nsAutoPtr for holding primitive arrays. r=froydnj
--HG--
extra : source : 683ad831dc3e7fc197cbfe1b53665c777b3158ab
2016-01-30 10:33:41 +11:00
Nathan Froyd b1bbf96de9 Backout 24dbe7da7370:a319694b46d5 (bug 1069556) for build bustage on various platforms on a CLOSED TREE
--HG--
rename : toolkit/crashreporter/google-breakpad/src/client/linux/Makefile.in => toolkit/crashreporter/google-breakpad/src/client/linux/handler/Makefile.in
rename : toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper.h => toolkit/crashreporter/google-breakpad/src/common/pathname_stripper.h
rename : toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/pathname_stripper_unittest.cc
2016-01-29 11:55:43 -05:00
Ted Mielczarek 478ab040e0 bug 1069556 - local build changes to match up with upstream Breakpad. r=benwa,glandium
This commit contains a few things:
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux

--HG--
rename : toolkit/crashreporter/google-breakpad/src/client/linux/handler/Makefile.in => toolkit/crashreporter/google-breakpad/src/client/linux/Makefile.in
extra : commitid : HeAH4kH17B1
extra : rebase_source : c9942aaca1d4e9555ecd44a23d7020a8a7ba1d77
extra : source : 31c98f5e107b9271be88e7c8543c4dbb4a2b6526
2016-01-27 09:39:53 -05:00
Chris Pearce b3256c287c Bug 1200514 - Run remaining stable state runnables after final cycle collection. r=froydnj,mccr8
--HG--
extra : amend_source : 877c598157dcef100cc139cbc62cde670f9ce16a
2016-01-13 11:37:57 +13:00
Bill McCloskey 1b1109922e Bug 1242097 - Support sync module for logging (r=erahm) 2016-01-27 15:08:56 -08:00
Wes Kocher 5648c229cc Backed out 10 changesets (bug 1242097, bug 1240985) for near-permafailing in test_plugin_focus.html
Backed out changeset 30f1acd9387f (bug 1240985)
Backed out changeset 6d7f80a057f0 (bug 1240985)
Backed out changeset c3dfc2c674ff (bug 1240985)
Backed out changeset b7f2ce03b34e (bug 1240985)
Backed out changeset 2c0c0ed35656 (bug 1240985)
Backed out changeset 85c8cb422bad (bug 1240985)
Backed out changeset 06b4cb890ab0 (bug 1240985)
Backed out changeset f10c0445c450 (bug 1240985)
Backed out changeset 62eaf89ab82f (bug 1242097)
Backed out changeset b94c1a472d46 (bug 1240985)

--HG--
extra : commitid : 2iDH7HLUMiO
2016-01-26 09:55:59 -08:00
Carsten "Tomcat" Book db55b0fa77 Backed out changeset 31c98f5e107b (bug 1069556)
--HG--
rename : toolkit/crashreporter/google-breakpad/src/client/linux/Makefile.in => toolkit/crashreporter/google-breakpad/src/client/linux/handler/Makefile.in
2016-01-26 14:53:02 +01:00
Ted Mielczarek bf718146b7 bug 1069556 - local build changes to match up with upstream Breakpad. r=benwa,glandium
This commit contains a few things:
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux

--HG--
rename : toolkit/crashreporter/google-breakpad/src/client/linux/handler/Makefile.in => toolkit/crashreporter/google-breakpad/src/client/linux/Makefile.in
extra : commitid : GR2H5y5DM7E
extra : rebase_source : 212b8f04703555658e1df026de2211ea20ac390b
2015-11-09 08:14:52 -05:00
Bill McCloskey b7d62fc246 Bug 1242097 - Support sync module for logging (r=erahm) 2016-01-25 21:49:42 -08:00
ffxbld 13bf763708 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-01-25 09:01:00 -05:00
Nicholas Nethercote 779cd4aa7b Bug 1241656 - Lazify AutoTaskDispatcher::mDirectTasks. r=bholley.
This avoids large amounts of heap churn while watching YouTube videos on Mac
and Linux.

--HG--
extra : rebase_source : 8606947287574826c455c25336c1a42d77ce6dcc
2016-01-25 13:30:42 +11:00
Xidorn Quan f90e2e16b2 Bug 1237909 part 2 - Do not return value from task for sync dispatch. r=froydnj
--HG--
extra : source : 5ed6de4d870f5eecc24ffba3f752ad43d57cd514
2016-01-25 14:52:34 +11:00
Kyle Huey c82b64a119 Backout upgraded assertion in bug 1204784 to make it easier to star. r=me 2016-01-24 17:02:27 -08:00
Landry Breuil ac9c84f6f8 Bug 1242151: using va_list needs <stdarg.h> at least on OpenBSD r=erahm 2016-01-24 10:56:42 +01:00
Phil Ringnalda 6aeccf0426 Merge f-t to m-c, a=merge 2016-01-23 18:11:37 -08:00
Phil Ringnalda a747e7e178 Merge m-i to m-c, a=merge 2016-01-23 17:42:50 -08:00
Ryan VanderMeulen 3b54dc9561 Backed out changeset 9f34b95fa1d0 (bug 1240977) and changeset a786af9186eb (bug 1240848) for suspicion of causing the topcrashes in bug 1241921. a=topcrash 2016-01-22 18:27:10 -05:00
Sylvestre Ledru ab4e3a0d42 Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
--HG--
extra : rebase_source : 7d2cc56b6553cd7a8d848d3c660f30735bd82eec
2016-01-22 16:58:49 +01:00
Tom Tromey 5412728905 Bug 757969 - use __thread in ThreadLocal; r=froydnj 2016-01-22 10:33:44 -07:00
Eugen Sawin e8d1a957e9 Bug 1205649 - [2.4] Add AbsoluteDeviceOrientation DOM event for compass heading orientation data. r=smaug 2016-01-21 18:14:33 +01:00
Vladan Djeric 9ca47b0dff Bug 1241507 - Enable BHR reporting on 100% of the Beta population. r=rvitillo 2016-01-21 10:37:33 -05:00
Aaron Klotz 096c338869 Bug 1240977 - DLL interceptor improvements for Windows 10 x64 ntdll APIs; r=ehsan 2016-01-20 10:44:17 -07:00
David Rajchenbach-Teller 583ca7286d Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 39e94507c0288863e495322a6899ff009840870d
2016-01-15 11:38:03 +01:00
Bogdan Postelnicu cc15f7a738 Bug 1240484 - fixed control flow patch issue by adding brackets. r=mccr8
--HG--
extra : rebase_source : 7335287c2a5654186bc4e75b5cdf32dcbfcc848c
2016-01-18 13:01:06 +02:00
Aaron Klotz 5c9b0e3676 Bug 1240848: Adds additional instructions to x64 detour patcher; r=ehsan
--HG--
extra : rebase_source : 7c050d496e5cf09343dece8a8bb12551eafc7928
extra : amend_source : 68d46effe9b2b7925eff419b14492f399c55b667
2016-01-19 15:14:24 -07:00
Nick Fitzgerald e5ed8f47ec Bug 1233831 - Part 3: Install a callback to trace nursery collections; r=mccr8
This commit makes CycleCollectedJSRuntime install a nursery collection callback
which traces nursery collections with a new `mozilla::TimelineMarker` subclass.
2016-01-19 12:48:22 -08:00
Sebastian Hengst d8d4a2d1a5 Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller 2d53758d08 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 51d39d6f88bf58ccb29f5897c3dbbe71007ee842
2016-01-15 11:38:03 +01:00
Vladan Djeric 0322615ac1 Bug 1228437 - Add BHR stats from e10s child process. B2G fix by Ting-Yu Chou. r=nchen 2015-12-26 19:34:11 -05:00
Kyle Huey a80e57e854 Bug 1204784: Do not shut the main thread down before all outstanding asynchronous thread shutdowns complete. r=froydnj
--HG--
extra : rebase_source : 9f4c8a219e2fa6dfbfec78f9f390726f2f07f683
2016-01-18 09:34:38 -08:00
Nicholas Nethercote add2713c12 Bug 1239888 - Inline PLDHashTable::{Done,Get}(). r=froydnj.
They're trivial and very hot. This reduces binary size in a 64-bit Linux opt build by 20 KiB and avoiding the calls can only help performance.

--HG--
extra : rebase_source : 774e6ffff9c787fa5444f939d1236d994ac8cf5b
2016-01-14 21:39:11 -08:00
Jeff Muizelaar bb453ca522 Bug 1228641. Add a initializer_list constructor to nsTArray. r=froydnj
This also adds a couple of users of the new pattern.
2016-01-17 22:11:25 -05:00
Ehsan Akhgari dd54eef6fa Bug 1240053 - Consider the order of methods, their params, and constant important when comparing XPT interfaces to decide whether to relink XPT files; r=khuey 2016-01-15 14:58:52 -05:00
Eric Rahm 1bf5b93a21 Bug 1239941 - Copy va_list before using it in LogModuleManager::Print. r=froydnj 2016-01-15 10:14:26 -08:00
Randell Jesup 5cb8d2ec15 Bug 1237794: Extend ClearOnShutdown() to allow specifying the shutdown phase r=froyd 2016-01-15 13:12:07 -05:00
Kyle Huey dc668298f3 Bug 1204784: Upgrade the 'event queue is empty' assertion to a fatal one. r=froydnj 2016-01-15 10:04:14 -08:00
Ehsan Akhgari 4f66b1c12b Bug 977464 follow-up: Fix the indentation to use 4 spaces 2016-01-15 10:40:13 -05:00
Mats Palmgren 3f054f833d Bug 1239516 - Use nsDependentCSubstring for wrapping a slice of a char buffer. r=karlt 2016-01-14 23:11:44 +01:00
Ehsan Akhgari a859788b87 Bug 977464 - Always relink XPT files for all changed XPIDL interfaces without requiring the IID to be revved; r=khuey
Since we no longer support binary extensions, revving an interface's IID
is not necessary for binary compatibility.  However, we currently skip
relinking XPT files if a change to an interface doesn't update its IID.

This patch fixes that requirement by comparing full interfaces against
each other, so that updating an XPIDL interface without rvving its IID
works well with incremental builds.

This paves the way to remove the requirement on revving interface IIDs
when making a change to an XPIDL interface.
2016-01-14 14:40:29 -05:00
Jan de Mooij 366cd49655 Bug 1237201 part 7 - Handle Vector OOM in nsPerformanceStats, telemetry. r=Yoric 2016-01-14 15:19:37 +01:00
Jan Beich b99a9577ea Bug 1235610 - Add xpctall support for Bitrig and DragonFly. r=glandium
--HG--
extra : transplant_source : %AD%3E%B5E%09%15%D7%CF%86%E37%FA%09%BF%E1%40%AF%E8%DCK
2015-12-29 18:06:20 +00:00
Jeff Muizelaar 66564e8cb3 Bug 1239125. Add operator!=(char_type*) to nsTSubstring. r=froydnj 2016-01-13 15:59:09 -05:00
Eric Rahm ad494f87fa Bug 1239212 - Append missing newlines to log messages. r=froydnj
--HG--
extra : rebase_source : 35ef04d2c4362d79d1d03d53fc7cce2459ef9437
2016-01-13 10:58:44 -08:00
Terrence Cole 3a07971436 Bug 1238786 - Part 2: We no longer need to null check before using trace APIs; r=smaug
--HG--
extra : rebase_source : 5fdbdaa7be739afd93294b729d878ed33c55b5ce
2016-01-12 13:07:54 -08:00
Wilmer Paulino 99af515866 Bug 1237668 - Remove nsSimpleUnicharStreamFactory r=froydnj 2016-01-11 19:31:29 -05:00
Eric Rahm 1828042c1f Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Xidorn Quan f569fa65f9 Bug 1238404 - Use 'using' directive instead of having separate Dispatch impl in subclasses of nsIEventTarget. r=froydnj
--HG--
extra : source : 76255b192a7d6dae74f19c68653537d5f8f39775
2016-01-12 15:18:47 +11:00
Phil Ringnalda 52aade6b43 Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm f8d0e8949c Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Mike Hommey 8810bde2ef Bug 1235099 - Remove the NS_APP_BOOKMARKS_50_FILE directory service key. r=dolske
Nothing in mozilla-central uses the NS_APP_BOOKMARKS_50_FILE/BMarks key except
tests. It's also not been very useful since the switch to places in ... Firefox
3? so even if addons use it, it's not doing them much good.
BookmarkHTMLUtils.defaultPath returns the same thing anyways for those that
really do insist on getting the equivalent thing (but I'd argue
BookmarkHTMLUtils.defaultPath, as well as the browser.bookmarks.file pref could
just go away as well).

Seamonkey does use NS_APP_BOOKMARKS_50_FILE/BMarks, but they really only need
the #define, which they can add in their source.
2016-01-12 08:01:52 +09:00
Christoph Kerschbaumer 71921c1eac Bug 1232803 - Convert JS callsites to use open2 within xpcom/ (r=sicking) 2016-01-11 12:17:10 -08:00
Mike Hommey 63439e34f6 Bug 1234012 - Remove the NS_APP_PROFILE_DEFAULTS_{NLOC_,}50_DIR directory keys. r=bsmedberg
Nothing apart the code that was just removed uses those keys, so remove them.
Actually, there is a use in Seamonkey, but considering they're shipping with
omnijar, the code expecting the directory has not been working as designed for
a while, so they can fixup and remove that use as well.
2016-01-09 07:30:32 +09:00
Michael Layzell d7f055a623 Bug 1226376 - Part 2: Annotate StaticMutex with MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS, r=nfroyd 2016-01-08 15:34:24 -05:00
Terrence Cole fd0fcea703 Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug 2015-12-30 11:31:16 -08:00
Nicholas Nethercote ec89bbf7f2 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Chris Manchester a58dc78ade Bug 1237447 - Disable the crashreporter when crashing intentionally in TestPLDHash. r=njn
--HG--
extra : commitid : BIAIgGAkCYL
2016-01-07 12:27:10 -08:00
Eric Rahm 03ab641f88 Bug 1223222 - Part 3: Remove usage of PR_NewLogModule in mozilla LogModule code. r=froydnj 2016-01-05 12:16:03 -08:00
Eric Rahm 77c03426ad Bug 1223222 - Part 2: Add tests for NSPRLogModulesParser. r=froydnj 2016-01-05 12:15:59 -08:00
Eric Rahm b22e370676 Bug 1223222 - Part 1: Add NSPRLogModulesParser. r=froydnj
Adds basic parser for handling of the NSPR log module env var format.
2015-12-21 17:10:26 -08:00
Eric Rahm 9664d9a74d Bug 1233881 - Support dynamically setting log levels at runtime via prefs. r=froydnj
Adds support for changing log levels at runtime via 'logging.*' preferences.
2015-12-22 15:09:41 -08:00
Aaron Klotz 007abcfb31 Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
--HG--
extra : rebase_source : 69a2905a9cb631b3f66418d46dcfc6fbd189baaa
2016-01-06 12:54:48 -07:00
Eugen Sawin c927fec54a Bug 1073224 - [1.2] Use SENSOR_ROTATION_VECTOR for DOM DeviceOrientation events on Android. r=vlad 2016-01-07 15:23:33 +01:00
Shu-yu Guo 1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Nicholas Nethercote 5a752050c8 Bug 1237169 (follow-up) - Fix static analysis bustage. r=me. 2016-01-06 15:31:46 -08:00
Nicholas Nethercote 3074545c18 Bug 1237169 - Remove some unused parameters in and around xpcom/base/. r=mccr8.
--HG--
extra : rebase_source : a3fd151aaecc1a21d14d51ce85c25413a6c3df5f
2016-01-05 19:32:28 -08:00
Terrence Cole 97c4c6520f Backout 7621c3ea95cb11e1c376a9f705accc0f90057c0a (bug 1235923) for build bustage on a CLOSED TREE.
--HG--
extra : rebase_source : 6c54aa7e1af75c270ab2b6833b56c780c537e297
2016-01-06 12:05:06 -08:00
Terrence Cole d38e840e6f Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug 2015-12-30 11:31:16 -08:00
Wes Kocher 9b5c90690e Merge inbound to m-c a=merge
--HG--
extra : commitid : I44HufYdnXT
2016-01-05 16:02:49 -08:00
Carsten "Tomcat" Book d92e3c9113 Merge mozilla-central to b2g-inbound 2016-01-05 12:03:29 +01:00
Gabriele Svelto c7edb0ffaf Bug 1234176 - Introduce and use the WriteSysFile() helper function. r=dhylands
--HG--
extra : rebase_source : c976b7434f660bc7b5fdc19bce800990c96443cb
2015-12-29 11:49:50 +01:00
Terrence Cole bb224242a8 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Felix Janda c40483da3d Bug 1203272 - Fix build of nsMemoryReporterManager on linux systems without mallinfo(). r=glandium,njn.
--HG--
extra : rebase_source : 704d0eb36b63810b890361b1785b5bf3f6e8e324
2016-01-01 11:10:54 +01:00
Bogdan Postelnicu a2071162e7 Bug 1234542 - Don't use fallible Add in SetStringProperty. r=froydnj
--HG--
extra : rebase_source : 697c493e0150953f6a8fb152109ef228673f15a0
2016-01-04 07:14:00 -05:00
Nicholas Nethercote a9f31c44eb Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium.
--HG--
extra : rebase_source : febc9aac7ec5e3699742e728065c370dcee4f0f3
2015-12-16 22:59:42 -08:00
Nathan Froyd cedf0dc1a3 No bug - remove tab from xpcom/test/gtest/moz.build file; r=me
DONTBUILD because whitespace only changes are always green.
2016-01-04 16:17:53 -05:00
Mike Conley e62894147e Bug 1221846 - Get Task Tracer building on desktop r=cyu.
--HG--
extra : rebase_source : 0666526a249c106274a4c764e325cd9810e9a2e7
2015-12-02 20:55:38 -05:00
Nathan Froyd 0fe98fa9ef Bug 1234860 - move win32 NS_InvokeByIndex implementation to a separate assembly file; r=aklotz,ted.m
On win32, NS_InvokeByIndex is implemented with inline assembly.  This
inline assembly assumes that it is wrapped by the compiler with the
standard x86 prologue and epilogue:

    push ebp
    mov ebp, esp
    [inline assembly that manipulates the stack pointer]
    pop ebp
    ret

In particular, the last instruction of the inline assembly is:

    mov esp, ebp

which cancels out the effects of the stack manipulation performed by all
the inline assembly that proceeds the instruction.

When compiling with clang-cl, however, the above assumption does not
hold, as clang-cl inserts a more complex prologue and epilogue,
something like:

    push ebp
    mov ebp, esp
    sub esp, frame_size
    [save registers into stack frame]
    [inline assembly that manipulates the stack pointer]
    [restore registers from stack frame]
    add esp, frame_size
    mov esp, ebp
    pop ebp
    ret

Combining this more extensive prologue and epilogue with the assumptions
of the inline assembly leads to interesting crashes when
NS_InvokeByIndex is called: the inline assembly effectively deallocates
the stack allocated by the inline assembly *and* the stack frame
allocated by the compiler itself.  The compiler-generated code then
attemptes to deallocate the stack frame, leading to the crash, as the
code now returns to an unspecified address.

To avoid these sorts of problems in clang-cl and make the code more
robust generally, let's move the NS_InvokeByIndex implementation to a
separate assembly file.  We can then write exactly what we need to have
happen, safe from any manipulations of the compiler.

Since we don't compile much (any?) code in Gecko with MASM, we need to
add the /SAFESEH flag to the assembler invocation so that the object
file with be appropriately marked as not containing exception handlers;
the linker (which is invoked with the /SAFESEH flag itself) will then
consent to link it into libxul.
2015-12-23 11:45:38 -05:00
Wes Kocher a69ea37914 Backed out 2 changesets (bug 1235598) for linux reftest bustage
Backed out changeset 3bcd3c276785 (bug 1235598)
Backed out changeset 80cd10a8b3d7 (bug 1235598)

--HG--
extra : commitid : DZRlFy6bH2m
extra : rebase_source : 3479cd1146e58115883f2329861647a962d162cc
2015-12-31 15:51:13 -08:00
Terrence Cole 9d97726f6c Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : c18f7e97d09f0cd91d0d837d2cdc65926cd3de64
2015-12-30 08:52:14 -08:00
Olli Pettay 5ca565690e Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence 2015-12-31 15:21:49 +02:00
Makoto Kato 41219d5981 Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Wes Kocher 792ca14825 Backed out changeset 0d55a6e4e98e (bug 1120016) for 980 b2g hazards
--HG--
extra : commitid : 27OIHVsa17S
2015-12-30 16:34:18 -08:00
Terrence Cole 2d98949f4f Backout Bug 1235598 Part 2 because of merge bustage on a CLOSED TREE 2015-12-30 15:05:24 -08:00
Terrence Cole 4710ce6d97 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : fba9dbd3f6bc7b36074f58d11c411deb84c1ff1e
2015-12-30 08:52:14 -08:00
Jeff Walden 5be7be38a1 Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence
--HG--
extra : rebase_source : f08c380ae247d3308d4c36788ac765de1b75af50
2015-12-28 16:15:52 -06:00
Olli Pettay 2066f6d7b3 Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
--HG--
extra : rebase_source : 3d51b7fc9962a93eb6071328db84b5b327225246
2015-12-30 19:16:13 +02:00
Sebastian Hengst e082884d78 Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato a4309e941a Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Sebastian Hengst 5a0c92b331 Backed out changeset 6daddfb64d72 (bug 1228437) for timing out in test_NuwaProcessCreation.html on B2G ICS emulator debug. r=backout 2015-12-27 23:33:02 +01:00
Vladan Djeric 8a014a7505 Bug 1228437 - Add BHR stats from e10s child process. r=nchen 2015-12-26 19:34:11 -05:00
Jeff Muizelaar e041883a02 Bug 1234618. Fix misdetected BHR hangs. r=jchen
A bunch of threads have their wait time set to PR_INTERVAL_NO_TIMEOUT and so
we divide this by 4 and set waitTime to that. This causes us to wait a very
long but not PR_INTERVAL_NO_TIMEOUT amount of time and so we still update
mIntervalNow and think that we've been hung for a long time when comparing
to the mInterval in the current thread which is set to the previous value of
mIntervalNow.
2015-12-22 18:33:51 -05:00
Chris Peterson 72a9d3bf1f Bug 1234126 - Add Chaos Mode support for setting thread affinity on OS X and Windows. r=froydnj 2015-11-30 19:16:40 -08:00
Geoff Brown c0573a940f Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
Kit Cambridge 1c0dc1a969 Bug 1205137 - Add a `PushSubscription` serializer. r=mt,smaug
--HG--
extra : commitid : F5xjqIFcach
extra : rebase_source : 61b0a0cbae318f7afc51752fc31a7133b8abd15c
2015-12-14 16:28:19 -08:00
Andrew McCreight 84e0c59589 Bug 1231964 - Move CC participant code that touches JS out of mozglue. r=smaug
The JS engine does not export symbols outside of XUL, so having these
defined inside mozglue apparently causes linking errors on some
platforms with the patches in bug 1120016.

This patch moves enough methods outside of mozglue that the patch in
that other bug will still link on all platforms, without moving so
much out that there are other linking errors.

--HG--
rename : xpcom/glue/nsCycleCollectionParticipant.cpp => xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
2015-12-18 14:22:01 -08:00
Birunthan Mohanathas 1cc56207d5 Bug 1227569 - Remove unsupported OpenVMS code. r=mccr8 2015-12-18 15:02:50 +02:00
Andrea Marchesini f2f6c3be20 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-18 08:44:00 +00:00
Daniel Holbert 31284e2a5e Bug 1233566: Drop unnecessary newline character from NS_WARNING in nsPersistentProperties. r=froydnj 2015-12-17 15:07:08 -08:00
Sebastian Hengst fe800f661e Backed out changeset 30839ee209e8 (bug 901097) for mochitest failures on Android and Mulet. r=backout 2015-12-17 14:13:59 +01:00
Andrea Marchesini 35ff8e160c Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-17 12:00:35 +00:00
Makoto Kato 385785d472 Bug 1233283 - Remove unless tmp from ReadDir in nsLocalFileWin. r=froydnj 2015-12-17 13:55:38 +09:00
Aaron Klotz ce7e5fad6d Bug 1233208: Disable IOInterposer on Beta and Release; r=froydnj
--HG--
extra : rebase_source : 9b82f5eaf56f5952d85488a39b872643e684190f
2015-12-16 14:36:44 -07:00
Wes Kocher e23593462a Backed out changeset 84c8783b8518 (bug 901097) for test_fileReader.html crashes CLOSED TREE
--HG--
extra : commitid : crWlUUwg6J
2015-12-16 09:43:42 -08:00
Andrea Marchesini 7a681c85f9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-16 12:37:31 +00:00
Carsten "Tomcat" Book af9ca82bf2 Backed out changeset d74d1e794421 (bug 901097) for bustage on a CLOSED TREE 2015-12-16 11:48:40 +01:00
Andrea Marchesini 97ccffac37 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-16 10:15:03 +00:00
ffxbld 1d2b3f2fb6 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2015-12-14 15:15:51 -05:00
Jim Mathies 114d93fb4c Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde
--HG--
extra : transplant_source : %A0R%E2Nhk%25%F7%BE%9D%E1%96W_%AD%27%DEC%F2%AC
2015-12-10 14:28:33 -05:00
Carsten "Tomcat" Book 8431613ae5 Backed out changeset bcb4ebf6ffac (bug 1198459) for bustage 2015-12-10 11:14:27 +01:00
Jim Mathies 33f95db847 Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde
--HG--
extra : transplant_source : %BA%D2uF7%D5%C1jg%0E%BA%9B%84u%3D%10n%C0%93%8B
2015-12-09 08:35:06 -05:00
Andrea Marchesini c2230f21f8 Bug 1231100 - Get rid of nsIDOMFileReader - patch 1, r=sicking 2015-12-09 15:52:15 -05:00
Jonathan Kew 19215680b3 Backout changeset aad9086f8efd (bug 1226376) for breaking Opt static-analysis build. 2015-12-09 13:21:42 -05:00
Michael Layzell 872327c4ab Bug 1226376 - Annotate StaticMutex with MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS, r=nfroyd 2015-12-09 11:34:29 -05:00
Andrea Marchesini ebc5b1a50f iBug 1122788 - patch 2 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz 2015-12-05 09:36:51 +00:00
Andrea Marchesini c018e81125 Bug 1122788 - patch 1 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz 2015-12-05 09:35:49 +00:00
Mike Hommey 6e154bf9b9 Bug 1227023 - Include the Gtk+3 version in update URL if available on Gtk+2 builds. r=karlt
Instead of giving the Gtk+2 version.
2015-12-05 11:04:21 +09:00
Wes Kocher 18c24e60a0 Backed out changeset d271b9e473fd (bug 1122788) for being a possible cause of test_fileapi.html bustage CLOSED TREE
--HG--
extra : commitid : JtZfexvrBDK
2015-12-04 15:21:24 -08:00
Andrea Marchesini 17ff0fc26a Bug 1122788 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz 2015-12-04 21:17:44 +00:00
Chris Peterson 46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Boris Zbarsky 29345faced Bug 1229664. Drop the concept of inner exceptions from Exception/DOMException. r=bholley 2015-12-02 13:52:59 -05:00
Lars T Hansen f6742410f9 Bug 1176214 - Part 15: Changes to xpcom. r=nfroyd
--HG--
extra : rebase_source : 661ab7ca0fe93d626257525cb7b6f4663a3d19ba
2015-11-13 15:08:30 +01:00
Nicholas Nethercote ddc78c3b0c Bug 1229458 - Remove SizeOfIncludingThisMustBeUnshared() from string classes. r=mccr8.
The patch changes all uses of SizeOfIncludingThisMustBeUnshared() to
SizeOfIncludingThisIfUnshared(). This incurs the (tiny) cost of an unnecessary
IsReadonly() check for guaranteed-unshared strings, but avoids the possible
assertion failures that would occur when MustBeUnshared() was used incorrectly
on shared strings, which is an easy mistake to make.

--HG--
extra : rebase_source : b1e91f1c19bcbe0521b0ce461d6c90512ca938ef
2015-12-01 15:36:26 -08:00
Jean-Yves Avenard b9f3760d8a Bug 1229299: Use tail dispatch to notify the mirror of new value. r=bholley
This ensures that tasks are run in the proper order.
2015-12-02 10:41:17 +11:00
Nathan Froyd 8a2948e596 Bug 1225923 - part 1 - convert all needs-to-copy instances of AppendElement(nsDependentString(...)); r=erahm
When people write:

  array.AppendElement(nsDependentString(...));

(resp. nsDependentCString), it's not clear whether they expect the newly
constructed dependent string to live in the array, or whether they're
just making a nsString-like holder whose contents can be freely copied
into the array's newly-created nsString.  Sometimes the latter is what
you prefer, and sometimes the former.  In all cases, however, the latter
behavior is what you get.

Let's try to make that behavior more explicit by pre-constructing
nsString elements and then using Assign to show that copying is taking
place.  This patch involves no functional change in behavior (it ought
to be epsilon faster due to using AppendElements, rather than repeatedly
calling AppendElement).
2015-11-18 10:25:19 -05:00
Nathan Froyd 319ac39f93 Bug 1229099 - use snprintf instead of JS_snprintf in xpcom/; r=mccr8 2015-11-30 13:54:03 -05:00
Nicholas Nethercote d180cd4a92 Bug 1181444 (part 1) - Remove nsBaseHashtable::EnumerateRead(). r=froydnj.
--HG--
extra : rebase_source : c07a83a2984ca4e67f3441d9e18b6bbac772495d
2015-11-22 14:39:01 -08:00
Phil Ringnalda 2ad5117d1a Back out a25efba616ac (bug 1218473) on suspicion of causing Windows 8 shutdown crashes "with exit code 3221225477" 2015-11-29 12:38:30 -08:00
Aaron Klotz 9162a0feda Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
--HG--
extra : rebase_source : f179d1f950faccf71415c9a694160bc65d014fbb
2015-11-27 13:01:23 -07:00
Mike Hommey 0cc838448f Backout changeset 0104f1c911ca (bug 1223530) because it breaks running on Windows XP on a CLOSED TREE
--HG--
rename : toolkit/components/maintenanceservice/Makefile.in => xpcom/windbgdlg/Makefile.in
2015-11-26 08:38:16 +09:00
Ted Mielczarek 879065de9d bug 1223530 - Move MOZ_WINCONSOLE to configure. r=glandium
This patch moves the logic for selecting MOZ_WINCONSOLE out of individual
Makefile.in files and into configure. It also changes config.mk to only
pass -SUBSYSTEM:CONSOLE if MOZ_WINCONSOLE=1. The MSDN docs state that
in the absence of -SUBSYSTEM, the linker will select the proper subsystem
based on whether the program contains [w]main or [w]WinMain, so let it
do that.

One program (windbgdlg) needed a tweak to add a wmain for when MOZ_WINCONSOLE
is defined.

This patch leaves one instance in security/sandbox/win/wow_helper/Makefile.in,
that Makefile has its own separate bug.

--HG--
extra : commitid : 8acDjmfKivj
extra : rebase_source : 03b4fa4c8ae077a894b08f3762ef93541e34ac1a
2015-11-11 06:24:39 -05:00
Mike Hommey 70a5b9589d Bug 1227388 - Finish removing dehydra support. r=mshal
Dehydra/Treehydra is unmaintained, broken (iirc), and obsoleted by clang
static analysis. We've removed parts of the build system support for it, but
not all. This is meant to remove the remains.
2015-11-25 08:23:25 +09:00
Nick Fitzgerald b8340cdc7c Bug 1225618 - Do not capture stacks for cycle collection timeline markers; r=vporof 2015-11-23 16:50:56 +01:00
Nicholas Nethercote d63cd22524 Bug 1221376 - Remove PL_DHASH_STOP. r=froydnj.
All uses of it have been removed.
2015-11-03 17:22:15 -08:00
Francois Marier 67506f65a6 Bug 1216723 - Add a new -forbid- Safe Browsing list type. r=gcp,r=smaug 2015-11-20 20:24:50 -08:00
Gijs Kruitbosch 161662dac8 Bug 1191468 - always load app dir add-ons irrespective of enabledScopes, r=Mossop,froydnj
--HG--
extra : commitid : 4O0JNbchonb
extra : rebase_source : f218722dd70f74a45e4dbb461a7faaa3ef1d1d81
extra : amend_source : 538b86815da89ccf5b3e7e42412019064123ccfe
2015-11-17 13:55:31 +00:00
Randell Jesup edaa76fc23 Bug 1211602: Never timeout if timeout == UINT32_MAX r=jib,froydnj 2015-11-18 15:03:17 -05:00
Valentin Gosu 67b179e6f9 Bug 412457 - should unescape hostname first, then perform IDNA r=mcmanus 2015-11-18 15:25:27 +01:00
Nicholas Nethercote 4e44ab2954 Bug 1225365 - Fix assertion in the nsScriptNameSpaceManager memory reporter. r=bz.
Also, use a fatal assertion in
nsStringBuffer::SizeOfIncludingThisMustBeUnshared().

--HG--
extra : rebase_source : ba35e67fa00dab55e509970e567116f52aee17ee
2015-11-17 14:46:46 -08:00
Eric Rahm 0ac3743813 Bug 1224685 - Add |resident-unique| measurement to Windows. r=njn 2015-11-13 13:44:48 -08:00
Wes Kocher 187dd319f1 Merge m-c to inbound, a=merge
--HG--
extra : commitid : DGwcWNlrDUA
2015-11-16 17:27:08 -08:00
Wes Kocher c4f40f5dfc Merge inbound to m-c a=merge
--HG--
extra : commitid : 8FO2ow49CX2
2015-11-16 17:20:42 -08:00
Cameron McCormack fa1a36783a Bug 1225004 - Record reason for NS_ERROR_FILE_CORRUPTED in nsLayoutStylesheetCache::LoadSheet in crash reports. r=roc 2015-11-16 19:18:45 +11:00
Chris H-C f474e96ad9 Bug 1223800 - Accept BHR reports from 50% of beta clients. Up from 1%. r=vladan 2015-11-13 12:09:54 -05:00
Wes Kocher 12532a74a8 Backed out changeset 4efb6cc4fd5d (bug 1225004) for build bustage CLOSED TREE
--HG--
extra : commitid : 4eYsywoFekg
2015-11-16 14:51:17 -08:00
Chris H-C 68d9730223 Bug 1198196 - rework EVENTLOOP_UI_LAG_EXP_MS to record all lag. r=vladan
Previously we were only logging if we accumulated 50ms of lag. Start logging
all lag so we can use this measure to compare smaller changes in UI
responsiveness.
2015-11-11 14:01:00 +01:00
Nigel Babu ef1ce5e989 Backed out changeset 6d47b0590988 (bug 1225004) for ASAN build bustage on a CLOSED TREE
--HG--
extra : amend_source : e082a4a17e47eac5922bcec3059999fae6798cb1
2015-11-16 14:46:58 +05:30
Cameron McCormack fa99a8cc59 Bug 1225004 - Record reason for NS_ERROR_FILE_CORRUPTED in nsLayoutStylesheetCache::LoadSheet in crash reports. r=roc 2015-11-16 19:18:45 +11:00
sajitk 8eb3a68c9e Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn 2015-11-15 14:48:08 +01:00
sajitk e97680a76a Bug 1201997 - Part 3 - Make internally used methods private. r=froydn 2015-11-15 14:48:02 +01:00
sajitk fa8035029e Bug 1201997 - Part 2 - Removing unused methods from the nsDeque class. r=froydn 2015-11-15 14:47:55 +01:00
sajitk 6418c52357 Bug 1201997 - Part 1 - Converted compiled test to gtest for nsDeque class. Added tests to test untested methods. r=froydn
--HG--
rename : xpcom/tests/TestDeque.cpp => xpcom/glue/tests/gtest/TestNsDeque.cpp
2015-11-15 14:47:49 +01:00
Nathan Froyd 4acd4505dd Bug 1217047 - try harder in IsContractIDRegistered to return a reasonable answer; r=bsmedberg,f=yury 2015-10-20 15:06:42 -04:00
Cameron McCormack 6087c6d62a Bug 1225004 - Record reason for NS_ERROR_FILE_CORRUPTED in nsLayoutStylesheetCache::LoadSheet in crash reports. r=roc 2015-11-16 19:18:45 +11:00
Eric Rahm 53da6e4ad3 Bug 1223927 - Add resident-unique measurement to OS X. r=njn 2015-11-11 14:07:30 -08:00
Gijs Kruitbosch 463f87d708 Bug 1223142 - make XPIDL set default nullptrs for optional out parameters, r=bz
--HG--
extra : commitid : 8pSPKD5AdOY
extra : transplant_source : %F2%8D%0D%20D4%98%7C%2A%16L%04%C0%88%24%AB%19%19%B2s
2015-11-05 22:45:25 +00:00
Gijs Kruitbosch 35bed1c0ce Bug 1209591 - allow loadURI consumers to expose whether an error page was immediately loaded as result of an error, r=smaug,mak
--HG--
extra : commitid : 9tlkWrUKl12
extra : rebase_source : bb5b476dc28cebc66a99d23934a5214530e9a008
extra : amend_source : f62e5a91df5af9eea893fbb9a13980e9fdd56a38
2015-10-27 16:44:24 +01:00
Boris Zbarsky 2c6c586ca9 Bug 1219749. Add a way to faithfully propagate the "exception is already on JSContext" state through an ErrorResult. r=peterv 2015-11-09 20:47:05 -05:00
Wes Kocher e943bc8e33 Merge m-c to inbound a=merge
--HG--
extra : commitid : IcbfYN5aCjt
2015-11-06 15:13:35 -08:00
Carsten "Tomcat" Book f2961bc526 Merge mozilla-central to b2g-inbound 2015-11-06 14:00:33 +01:00
Fabrice Desré a76d9cfc62 Bug 1220344 - remote some of nsSystemInfo to make it e10s ready on Android r=nchen,froydnj 2015-11-04 11:08:14 -08:00
Carsten "Tomcat" Book 8bb69a1d1d Backed out changeset 8d3ff1d1a809 (bug 1220344) for failing android tests
--HG--
extra : rebase_source : a1d9f59c12c44ccf24af88566c6531e08a11db4e
2015-11-05 11:48:06 +01:00
Botond Ballo 5bf85e9f9d Bug 1220923 - Make nsIntRegion a typedef for IntRegionTyped<UnknownUnits>. r=nical
--HG--
extra : source : 1f371f014048ed4c3c25095233fea927311a7e23
2015-11-04 11:49:49 -05:00
Mike Hommey 762aba02cd Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Fabrice Desré 04ce4a4632 Bug 1220344 - remote some of nsSystemInfo to make it e10s ready on Android r=nchen,froydnj 2015-11-04 11:08:14 -08:00
Kit Cambridge 1a2d174fbf Bug 1206302 - Use `DOMException` for Push errors. r=mt
--HG--
extra : commitid : 12nCKPtERml
extra : rebase_source : 1d59f113235a98ca30653d2c935e0cc2e7bc8931
2015-11-05 10:38:35 -08:00
Jan de Mooij a84c33ecb0 Bug 1125423 part 1 - Attach WindowProxies to globals instead of using innerObject/outerObject hooks. r=bz,luke 2015-11-06 19:03:51 +01:00
Chris Peterson 4a9be99fc7 Bug 1220544 - Fix -Wunreachable-code warnings in xpcom. r=mccr8
xpcom/glue/PLDHashTable.cpp:471:10 [-Wunreachable-code-return] 'return' will never be executed
xpcom/tests/TestAutoPtr.cpp:324:9 [-Wunreachable-code] code will never be executed
xpcom/tests/TestBlockingProcess.cpp:6:11 [-Wunreachable-code-return] 'return' will never be executed
2015-11-02 21:03:03 -08:00
Nathan Froyd a5557d1390 Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm 2015-10-31 13:47:14 -04:00
Valentin Gosu f4d3791247 Bug 1163030 - URL: stop escaping ` in query r=mcmanus 2015-11-02 13:55:24 +01:00
Valentin Gosu e96a491a5d Bug 1163028 - URL: stop escaping [ and ] in path r=mcmanus 2015-11-02 13:54:10 +01:00
Birunthan Mohanathas e968844794 Bug 968520 - Always use fallible allocator with nsTArray_base::ShrinkCapacity. r=froydnj
We don't need infallible allocation here because failure to shrink the
capacity will leave the array unchanged.
2015-11-02 07:53:27 +02:00
Birunthan Mohanathas c6fdc8821b Bug 968520 - Explicitly use infallible allocator for ShiftData call in nsTArray::RemoveElementsAt. r=froydnj
This call will never fail so this merely makes the intent clear.
2015-11-02 07:53:27 +02:00
Birunthan Mohanathas d72daf8147 Bug 1185763 - Part 7: Add test for r-value nsTArray::AppendElements. r=froydnj 2015-11-02 07:53:26 +02:00
Birunthan Mohanathas ec6faa8712 Bug 1185763 - Part 6: Add fallible variant of r-value nsTArray::AppendElements. r=froydnj 2015-11-02 07:53:26 +02:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Jeff Walden 790d87d4be Bug 1208808 - Move time zone adjustment information out of JSRuntime, into global state protected by a spinlock. r=till
--HG--
extra : rebase_source : b412e298217a2857bf34b73b1128c97cc047e6af
2015-10-30 16:14:32 -07:00
Nathan Froyd 78c64c0cde Backout 5649b6b8cec3 (bug 1219246) for Linux xpcshell bustage 2015-10-31 13:34:06 -04:00
Nathan Froyd a5bf910f3f Bug 1219246 - use UniquePtr instead of nsAutoArrayPtr in xpcom/; r=erahm 2015-10-28 09:50:29 -04:00
Phil Ringnalda b79efb4eaf Back out changeset 6e21339a66ed (bug 1208808) for bustage in the mislabelled and deceptive arm64 simulator
CLOSED TREE
2015-10-31 01:44:22 -07:00
Jeff Walden 1b692c0c1a Bug 1208808 - Move time zone adjustment information out of JSRuntime, into global state protected by a spinlock. r=till
--HG--
extra : rebase_source : 1c59ffd1509c52791ab737df338962cf2c68dbc0
2015-10-30 16:14:32 -07:00
Chris Peterson 4cbe614b32 Bug 1220035 - Fix -Wimplicit-fallthrough warnings in xpcom. r=mccr8
xpcom/base/nsDebugImpl.cpp:458:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsCheapSets.h:139:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsPersistentProperties.cpp:232:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:360:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:766:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1658:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1661:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:355:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:362:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:85:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:401:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-29 21:31:32 -07:00
Wes Kocher d31ed2617b Merge inbound to central, a=merge
--HG--
extra : commitid : GwjoFY5dx7Q
2015-10-30 16:35:46 -07:00
Alessio Placitelli 756ef8e1ff Bug 1219751 - Change the the depth limit of the thread hangs stack to use the 99th percentile. r=gfritzsche 2015-10-29 08:05:00 +01:00
Carsten "Tomcat" Book 6d8a42769f Backed out changeset d84d5faa4852 (bug 1201997) for m2 perma failures
--HG--
rename : xpcom/glue/tests/gtest/TestNsDeque.cpp => xpcom/tests/TestDeque.cpp
extra : rebase_source : 689453beeca1b317d9b2f57889ba1b133b628821
2015-10-30 15:53:22 +01:00
Carsten "Tomcat" Book c6da644f91 Backed out changeset 9390b1ece0ad (bug 1201997)
--HG--
extra : rebase_source : 68e7e60c942c44905f4c9bd5f36977a9e8a9c5b0
2015-10-30 15:52:23 +01:00
Carsten "Tomcat" Book eb7db9ff93 Backed out changeset 91536bfeff0f (bug 1201997)
--HG--
extra : rebase_source : 6f11d67034e876738ecda6f1e32c8e655252660f
2015-10-30 15:52:21 +01:00
Carsten "Tomcat" Book 4c0ed54e29 Backed out changeset 9093e927a247 (bug 1201997)
--HG--
extra : rebase_source : c47b13e37a7756243a68cf15555bf176c0de8600
2015-10-30 15:52:18 +01:00
Honza Bambas ba03a4f818 Bug 1219726 - Nit: Tokenizer.ShortcutChecks gtest should use nsDependentCSubstring. r=nfroyd 2015-10-29 05:58:00 +01:00
sajitk fe2a36f981 Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn
--HG--
extra : rebase_source : 0fd59eb6513e1af0162a9a02c6041182e556b9e7
2015-10-29 19:58:00 +01:00
sajitk 346dbc9c43 Bug 1201997 - Part 3 - Make internally used methods private. r=froydn
--HG--
extra : rebase_source : 0cf8b2f60b98f6853d495b8caad87117b3e5b9cb
2015-10-29 19:57:00 +01:00
sajitk c6255f9679 Bug 1201997: Part 2 - Removing unused methods from the nsDeque class. r=froydn
--HG--
extra : rebase_source : 1e6115ce85d19a25f59310863365586e669affef
2015-10-29 19:56:00 +01:00
sajitk d4bc9904dc Bug 1201997: Part 1 - Converted compiled test to gtest for nsDeque class. Added tests to test untested methods. r=froydn
--HG--
rename : xpcom/tests/TestDeque.cpp => xpcom/glue/tests/gtest/TestNsDeque.cpp
extra : rebase_source : 76fe6e0468ad1e0402a536bcb313bd4bb83f9c17
2015-10-29 19:55:00 +01:00
Ben Kelly a4dd10345e Bug 1215140 P8 Remove now unnecessary interception values from ErrorList.h. r=bz 2015-10-29 19:53:25 -07:00
Wes Kocher 76452b103c Merge m-c to fx-team, a=merge CLOSED TREE
--HG--
extra : commitid : 7i8epxLlM7z
2015-10-29 15:30:24 -07:00
Alessio Placitelli 24467c91c6 Bug 1219216 - Fix a wrong comment in BackgroundHangMonitor.h. r=gfritzsche 2015-10-28 05:47:00 +01:00
ffxbld ec6c8fefef Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2015-10-29 07:45:54 -04:00
Makoto Kato e5153e1c2b Bug 1218315 - Use L"..." instead of MOZ_UTF16(...) for MSVS2015. r=nfroyd 2015-10-28 22:36:40 +09:00
Makoto Kato 0298c31d73 Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on xpcom. r=nfroyd 2015-10-28 14:29:49 +09:00
Birunthan Mohanathas 44936aabb2 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Nathan Froyd 4c29b7694f Bug 1217940 - remove BindingUtils.h from CycleCollectedJSRuntime.cpp; r=mccr8 2015-10-23 14:01:02 -04:00
Tooru Fujisawa 1619a85fbf Bug 1217424 - Remove for-each from xpcom/. r=bholley
--HG--
extra : commitid : 6mnwhyI2pYK
2015-10-19 05:43:45 +09:00
Cameron McCormack 235db06383 Bug 1208951 - Part 9: Implement KeyframeEffectReadOnly constructor. r=bzbarsky r=birtles 2015-10-22 19:22:38 +11:00
Nathan Froyd 9a687fd23b Bug 1217125 - remove pointless includes from nsTHashtable.h; r=mccr8 2015-10-03 00:47:14 -04:00
Eric Rahm 5b38c55967 Bug 1174785 - Part 2: Convert xpcom over to LogModule. r=froydnj
--HG--
extra : rebase_source : 58d3b32bd0174f2540512cef810cafdd3556ef6b
2015-10-19 12:50:14 -07:00
Eric Rahm e6f7a67577 Bug 1174785 - Part 1: Add LogModule, LogModuleManager, and LazyLogModule. r=froydnj
The logging interface is moved to xpcom/base, a LogModule wrapper for PR_Log is
added, a thread-safe LogModuleManager is added, and a LazyLogModule class used
to lazily load log modules in a thread-safe manner is added.

--HG--
rename : xpcom/glue/Logging.h => xpcom/base/Logging.h
extra : rebase_source : 89b76664d9477e2c894448cdea4dae1c61f8ca24
2015-10-19 12:22:11 -07:00
Eric Rahm c0ca405938 Bug 1215629 - Remove nsDebug logger. r=froydnj 2015-10-16 16:23:49 -07:00
Ehsan Akhgari ecda739d3e Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Cervantes Yu 072315fb98 Bug 1213795, Part 1: Don't fire timers in the Nuwa process to fix test case test_NuwaProcessDeadlock.html. r=khuey 2015-10-19 14:32:12 +08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Phil Ringnalda 9ea53214d8 Merge f-t to m-c, a=merge 2015-10-17 11:19:46 -07:00
Wes Kocher 1662b03a4f Merge m-c to inbound, a=merge 2015-10-16 12:30:35 -07:00
Wes Kocher 3d38a5df68 Merge b2ginbound to central, a=merge 2015-10-16 12:27:10 -07:00
Wes Kocher cdd2c2c263 Merge m-c to fx-team, a=merge 2015-10-16 12:31:52 -07:00
Alessio Placitelli cf4ad8cd56 Bug 1211411 - Limit the number of thread hang stats reported to Telemetry. r=vladan 2015-10-16 07:04:00 +02:00
Nathan Froyd 932187b05a Bug 1212027 - part 6 - add an IsEmpty method to nsTHashtable; r=erahm
It's a little more convenient than checking Count(), and also gives
nsTHashtable the same interface as nsTArray (for this operation, at
least), which seems worthwhile.
2015-10-07 23:31:17 -04:00
Shih-Chiang Chien e50f7091ee Bug 1199592 - support TV device type in UA string. r=fabrice.
--HG--
extra : rebase_source : 7999c1a81fd7e297b88d3b780c252b70bf265d23
2015-10-05 19:58:00 +02:00
Eric Rahm 80fca20565 Bug 1194555 - Part 6: Run reporters asynchronously. r=njn,jld,ted 2015-10-14 16:52:59 -07:00
Eric Rahm e93f0f86a3 Bug 1194555 - Part 5: Add option for async memory reporters. r=njn 2015-10-14 16:52:58 -07:00
Eric Rahm 9feffe31c7 Bug 1194555 - Part 4: Rename GetReportsState PendingProcessesState. r=njn 2015-10-14 16:52:57 -07:00
Eric Rahm b257c6378a Bug 1194555 - Part 3: Remove |getReportsForThisProcess| from the nsIMemoryReporterManager interface. r=njn
|getReportsForThisProcess| differs from |getReports| in that it is limited to current process and is synchronous. When asynchronous memory reporters are added the function will no longer be able tobe synchronous. There isn't much utility in only measuring the current process, so we can remove the function and switch existing users to |getReports|.
2015-10-14 16:52:55 -07:00
Eric Rahm acd4358a2a Bug 1194555 - Part 2: Remove |explicit| attribute from nsIMemoryReporterManager. r=njn
The calculation of |explicit| relies on the synchronous |getReportsForThisProcess|, once we have asynchronous reporters this will no longer work. As it is currently referenced in the about::memory tests we can just remove it.
2015-10-14 16:52:54 -07:00
Eric Rahm 61d0f893cd Bug 1194555 - Part 1: Remove RunReportersForThisProcess. r=njn
RunReportersForThisProcess is no longer used and will no longer work once we have async reporters.
2015-10-14 16:52:53 -07:00
Eric Rahm 45097b163a Bug 1194555 - Part 0: Cleanup GetReportsState constructor. r=njn
Move GetReportsState ctor to the impl so that mChildrenPending doesn't have
to be heap allocated.
2015-10-14 16:52:52 -07:00
sajitk b564e1db32 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg
--HG--
extra : amend_source : 8b78a62b071a515f3652e77c2abd37561ebf3380
2015-10-14 11:17:07 +05:30
Mike Hommey 9af046b5b4 Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg
The configure option has explicitly thrown an error for more than a year now,
and it happens that the remaining way to still forcefully use it has been
broken for more than 8 months.
2015-10-14 08:02:34 +09:00
Nathan Froyd 0a799593e9 Bug 1207245 - part 5 - rename template parameters for nsRefPtrHashtable; r=ehsan
Having a template parameter conflict with a global name is terribly
inconvenient, so let's try to avoid that by renaming the 'RefPtr'
template parameter to something else.
2015-10-12 22:40:08 -04:00
Nigel Babu 640106b762 Backed out changeset 7077589b174c (bug 996105) for failing its own tests ON A CLOSED TREE 2015-10-13 16:10:39 +05:30
sajitk 5491f00db4 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg 2015-09-27 17:16:00 +02:00
Aryeh Gregor c48c61128c Bug 1213862 - Align nsString whitespace handling with web specs; r=froydnj 2015-10-12 20:47:57 +03:00
Hiroyuki Ikezoe 00b0491dd0 Bug 1167627 - Part 3: Use mozinfo in xpcom/. r=bsmedberg 2015-10-11 21:48:00 +02:00
Xidorn Quan 6ab3d4ccd1 Bug 1213130 - Make several string function to accept char16ptr_t instead of char16_t*, and remove redundant overloads. rs=froydnj
--HG--
extra : source : d2dbd4e5316efb888335c92950d32ce77abc41e5
2015-10-10 12:19:23 +11:00
Boris Zbarsky af065c06f0 Bug 1213289 part 3. Add a way to throw a DOMException with a custom message on ErrorResult. r=bkelly 2015-10-09 16:48:10 -04:00
Andrew McCreight c97953414d Bug 931283, part 3 - Implement a cycle collected version of nsVariant. r=froydnj
Also, use this class for the component manager etc. in XPCOM.
2015-10-09 10:24:23 -07:00
Andrew McCreight 642c4344e2 Bug 931283, part 2 - Split out nsVariant into a subclass. r=froydnj 2015-10-09 10:24:23 -07:00
Andrew McCreight 747f1dd47c Bug 931283, part 1 - Rename nsVariant to nsVariantBase. r=froydnj
Leave a typedef for compatibility. nsVariant will be defined as a
separate class in the next patch.

Also, remove an obsolete comment and fix some whitespace.
2015-10-09 10:24:23 -07:00
c947ee6806 Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj
commit 7d4543037c618cc0e95b6f1801c2187e3361c82a (HEAD, explicit)
Author: Ehsan Akhgari <ehsan@mozilla.com>
    Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj

--HG--
rename : xpcom/tests/TestAtoms.cpp => xpcom/tests/gtest/TestAtoms.cpp
2015-01-27 09:28:45 -05:00
Ehsan Akhgari 1869e89340 Bug 1212636 - Add a better error message for the content corrupcted error caused by the Promise being passed to FetchEvent.respondWith; r=bkelly 2015-10-07 18:06:26 -04:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Wes Kocher a69f1f52e7 Backed out 7 changesets (bug 1194555) for xpcshell failures
Backed out changeset e77be333f4fb (bug 1194555)
Backed out changeset 11951462a37c (bug 1194555)
Backed out changeset 99b27aa952c5 (bug 1194555)
Backed out changeset 70a8ed3b6a45 (bug 1194555)
Backed out changeset 748bfebe81e7 (bug 1194555)
Backed out changeset cbaac05a2934 (bug 1194555)
Backed out changeset fcbfd1379fcd (bug 1194555)
2015-10-06 14:40:51 -07:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Eric Rahm f2e4cb7dfe Bug 1194555 - Part 6: Run reporters asynchronously. r=njn,jld 2015-10-06 11:23:36 -07:00