gecko-dev/modules/libpref
Andrew McCreight f9c73e6cf3 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
..
init Bug 1271484 - Follow-up, remove space from list - r=me 2016-05-16 16:53:01 +10:00
test Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg 2016-05-17 07:55:49 -07:00
greprefs.js Bug 1234526 - Remove services/healthreport. r=gfritzsche 2016-01-06 09:07:00 +01:00
moz.build Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
nsIPrefBranch2.idl
nsIPrefBranch.idl
nsIPrefBranchInternal.idl
nsIPrefLocalizedString.idl
nsIPrefService.idl
nsIRelativeFilePref.idl
nsPrefBranch.cpp Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg 2016-05-17 07:55:49 -07:00
nsPrefBranch.h Bug 278878: Send preference parsing errors to browser console. r=bsmedberg 2016-04-22 15:35:01 -04:00
nsPrefsFactory.cpp
prefapi_private_data.h Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg 2016-05-17 07:55:49 -07:00
prefapi.cpp Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg 2016-05-17 07:55:49 -07:00
prefapi.h Bug 1249157 - prefapi enums into class enums, explicit conversion, cleanup. r=bsmedberg 2016-02-22 09:15:00 +01:00
Preferences.cpp Bug 1272707, part 2 - Limit the size of preference values sent to child processes. r=bsmedberg 2016-05-17 07:55:49 -07:00
Preferences.h Bug 1267868 - Make AddXXXVarCache only match exact prefs, not prefixes. r=froydnj 2016-05-04 12:26:04 +12:00
prefread.cpp Bug 278878: Send preference parsing errors to browser console. r=bsmedberg 2016-04-22 15:35:01 -04:00
prefread.h Bug 278878: Send preference parsing errors to browser console. r=bsmedberg 2016-04-22 15:35:01 -04:00