Eric Rahm
095679bd51
Bug 1354613 - Part 3: Stop mutating the pref branch name when retrieving it. r=froydnj
...
This adds a PrefName wrapper that allows use to avoid copying the pref name
string in the fast root pref branch case, but also allows to create a new
string in the slower non-root pref branch case. By creating a new string we
avoid the odd behavior of mutating the pref branch name with each retrieval.
MozReview-Commit-ID: HGCLbpGmKrr
2017-04-11 14:00:19 -07:00
Eric Rahm
9674fa11ad
Bug 1354613 - Part 2: Fix GetFloatPref on non-root branches. r=bsmedberg
...
MozReview-Commit-ID: 1NLBQQ40sae
2017-04-11 14:00:17 -07:00
Florian Quèze
01cf885a20
Bug 1345294 - nsIPrefBranch should have methods to get/set unicode strings, r=bsmedberg.
2017-03-16 19:26:01 +01:00
Florian Quèze
35c91a3a12
Bug 1338306 - nsIPrefBranch.get*Pref should support providing a default value, r=bsmedberg.
2017-03-01 13:15:35 +01:00
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Andrew McCreight
10b3af16c8
Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg
...
Don't send any preferences that have a string value that is longer
than MAX_ADVISABLE_PREF_LENGTH. This is intended to mitigate OOM
issues, as I've seen a parent process crash trying to create a 100mb
message to send to the child. Such users likely cannot use e10s at
all.
This has a test for all combinations of setting the default and user
values of a preference to large or small string values, or not setting
them at all.
I manually verified that filtering out preferences reduces the size of
the IPC::Message that is sent to the child by printing out the size of
the reply message in PContentParent::OnMessageReceived().
2016-05-17 07:55:49 -07:00
Milan Sreckovic
cd2ff937bd
Bug 278878: Send preference parsing errors to browser console. r=bsmedberg
...
MozReview-Commit-ID: 61mi71dZbO8
2016-04-22 15:35:01 -04:00
Milan Sreckovic
11e493fbf0
Bug 1249157 - prefapi enums into class enums, explicit conversion, cleanup. r=bsmedberg
2016-02-22 09:15:00 +01:00
Wes Kocher
ae635353f0
Backed out changeset dd911452e3f7 (bug 1249157) for build bustage CLOSED TREE
2016-02-22 09:05:21 -08:00
Milan Sreckovic
99fb6d585a
Bug 1249157: prefapi enums into class enums, explicit conversion, cleanup. r=bsmedberg
...
MozReview-Commit-ID: nvvOD8ajV4
2016-02-18 13:27:06 -05:00
Nicholas Nethercote
d92d4e2f85
Bug 1245393 - Measure s{,Default}RootBranch in the Preferences memory reporter. r=froydnj.
2016-02-03 17:30:54 +11:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
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
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Nicholas Nethercote
e1f552d4b6
Bug 1187152 (part 2) - Replace nsBaseHashtable::Enumerate() calls in modules/ with iterators. r=froydnj.
2015-11-22 18:52:40 -08:00
Nicholas Nethercote
2087a666fc
Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
2015-09-15 20:49:53 -07:00
Birunthan Mohanathas
a0f7c73250
Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Juan Gomez
89035d527e
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Nicholas Nethercote
94740b1d75
Bug 1176159 (part 2) - Remove uses of PL_DHashTableEnumerate() from libpref. r=bsmedberg.
2015-06-18 17:58:24 -07:00
Ryan VanderMeulen
7aba9d7002
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-06-24 14:11:00 -04:00
Nicholas Nethercote
920bcd7199
Bug 1170416 (part 5) - Remove PLDHashTable::IsInitialized(). r=froydnj.
...
|mOps| is always non-null now, and there's no longer any distinction between
and uninitialized and initialized table. Yay.
2015-05-20 21:23:55 -07:00
Nicholas Nethercote
dab477d3b3
Bug 1165768 (part 7) - Convert |gHashTable| to |PLDHashTable2*|. r=froydnj.
2015-05-18 00:52:08 -07:00
Nicholas Nethercote
594f872fe6
Back out all four patches from bug 1161377. r=me.
...
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).
2015-05-14 21:48:43 -07:00
Nicholas Nethercote
35cc1f7af7
Bug 1161377 (part 2.5) - Move all static PLDHashTable instances onto the heap to avoid static constructors. r=froydnj.
2015-05-12 17:33:22 -07:00
Mike Kaply
b27c3f996d
Bug 916101 - Show entire pref name when wanring about size, r=mossop
2015-04-21 13:31:09 -05:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Nicholas Nethercote
4604f714c6
Bug 1123151 (part 2) - Add PLDHashTable::IsInitialized(). r=froydnj.
...
This encapsulates most of the uses of PLDHashTable::ops.
2015-01-19 16:11:34 -08:00
Nicholas Nethercote
c9cbbdc34d
Bug 1057912 - Privatize most of PLDHashTable's fields. r=roc.
2014-08-25 16:56:33 -07:00
Birunthan Mohanathas
12b79e6293
Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg
2014-08-07 21:52:04 -07:00