Commit Graph
16096 Commits
Author SHA1 Message Date
Nicholas Nethercote 1593b67319 Bug 1568869 - Disallow double definitions in StaticPrefList.yaml. r=glandium
Some double definitions would have caused C++ compile errors, but some would
not, and I'm not even sure what the runtime behaviour would have been in those
latter cases...

The patch also removes a duplicated definition of privacy.resistFingerprinting,
which snuck in recently.

Differential Revision: https://phabricator.services.mozilla.com/D39431
2019-07-30 22:48:41 +00:00
Dylan Roeh 0de07492da Bug 1553603 - Support "capture" attribute in Gecko and expose in GV. r=geckoview-reviewers,smaug,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D38746
2019-07-30 18:13:05 +00:00
Daniel Varga 05081ead08 Backed out 9 changesets (bug 1387894) for wpt failures at /web-animations/timing-model/animations/finishing-an-animation.html on a CLOSED TREE
Backed out changeset 998582bf083d (bug 1387894)
Backed out changeset cd58aae7d47b (bug 1387894)
Backed out changeset a51919fb2062 (bug 1387894)
Backed out changeset ef7b589d751b (bug 1387894)
Backed out changeset 75c0249b594a (bug 1387894)
Backed out changeset 4a75f2556242 (bug 1387894)
Backed out changeset 0bff9ba4237c (bug 1387894)
Backed out changeset 80040c0a275e (bug 1387894)
Backed out changeset 02814f69872d (bug 1387894)
2019-07-30 21:05:59 +03:00
Tom Ritter 8fc9f63814 Bug 1387894 - Resolve timer intermittents when reduceTimerPrecision is disabled r=smaug
We unconditionally clamp all times to 20us and not just performance.now()
This will consistently apply a 'safe' minimal clamping (it's not safe but
I guess it's safer than ns-level precision) to all timestamps, and remove
intermittents that are caused by comparing a clamped performance.now() to
an unclamped [something else].

Differential Revision: https://phabricator.services.mozilla.com/D38806
2019-07-30 15:11:41 +00:00
Tom Ritter da17b1e61a Bug 1387894 - Move all Resist Fingerprinting/Reduce Time Precision prefs to StaticPrefs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39212
2019-07-30 15:11:32 +00:00
Andreea Pavel a929f957f0 Backed out 8 changesets (bug 1387894) for build bustages on a CLOSED TREE
Backed out changeset 09785dc4c5aa (bug 1387894)
Backed out changeset 05728160b89e (bug 1387894)
Backed out changeset 01e5b31bcc17 (bug 1387894)
Backed out changeset c5e16646ddb1 (bug 1387894)
Backed out changeset d1f09b772bac (bug 1387894)
Backed out changeset de538a48f455 (bug 1387894)
Backed out changeset d49cd8ef0825 (bug 1387894)
Backed out changeset fcfe77fab0ec (bug 1387894)
2019-07-30 17:17:39 +03:00
Tom Ritter 144462f57c Bug 1387894 - Resolve timer intermittents when reduceTimerPrecision is disabled r=smaug
We unconditionally clamp all times to 20us and not just performance.now()
This will consistently apply a 'safe' minimal clamping (it's not safe but
I guess it's safer than ns-level precision) to all timestamps, and remove
intermittents that are caused by comparing a clamped performance.now() to
an unclamped [something else].

Differential Revision: https://phabricator.services.mozilla.com/D38806
2019-07-30 13:19:05 +00:00
Tom Ritter a7db58e47f Bug 1387894 - Move all Resist Fingerprinting/Reduce Time Precision prefs to StaticPrefs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39212
2019-07-30 13:37:28 +00:00
Christoph Kerschbaumer 3bc99c2060 Bug 1567877: Apply Meta CSP to about:devtools-toolbox. r=jdescottes,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D39328
2019-07-30 07:14:09 +00:00
Nicholas Nethercote 3968b47d7e Bug 1569526 - Remove return values from Add*VarCache(). r=KrisWright
They're infallible in practice and always `NS_OK`. (This stems from
`AddVarCacheNoAssignment()` always returning `NS_OK`.)

As a result, the commit removes lots of unnecessary checks.

Differential Revision: https://phabricator.services.mozilla.com/D39804
2019-07-30 06:19:46 +00:00
Nicholas Nethercote 3d94e967b6 Bug 1569526 - Rename PreferencesInternalMethods. r=KrisWright
It's an annoyingly long name that causes lots of line breaking, and it's not
exposed outside of libpref.

Differential Revision: https://phabricator.services.mozilla.com/D39803
2019-07-30 06:14:48 +00:00
Nicholas Nethercote eb18791846 Bug 1569526 - Remove PrefsIter::Remove. r=KrisWright
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D39651
2019-07-30 06:14:29 +00:00
Nicholas Nethercote c0014abb9c Bug 1569526 - Rename SetPref_*() as InitPref_*(). r=KrisWright
This makes it clear that these run when prefs are initialized (like
`InitVarCache()`) rather than being vanilla `set` calls that happen at any
point during runtime.

Differential Revision: https://phabricator.services.mozilla.com/D39650
2019-07-30 06:14:17 +00:00
Nicholas Nethercote 72268fd4e6 Bug 1569526 - Add more thread/process assertions to libpref. r=KrisWright
Lots of operations in Preferences.cpp can only occur in the parent process
and/or on the main thread. It has a bunch of assertions to enforce/document
this. This commit adds some more, because they're really useful for
understanding the code.

The commit also removes an unnecessary `XRE_IsParentProcess()` check in
`pref_SetPref()` (because that condition is always true, as the added assertion
indicates), and renames a parameter in `InitVarCachePrefs()`.

Differential Revision: https://phabricator.services.mozilla.com/D39649
2019-07-30 06:14:05 +00:00
Kristen Wright 49997456db Bug 1569004 - Convert dom.timeout.enable_budget_timer_throttling to static pref. r=njn
Converts dom.timeout.enable_budget_timer_throttling from varcache pref to static pref, removes entry from all.js, adds entry to StaticPrefList.yaml. Uses the all.js value and not the value declared in TimeoutManager.cpp. Since this removes the last varcache pref from TimeoutManager::Initialize(), I also removed the Initialize() function and its call in nsGlobalWindowInner.

Differential Revision: https://phabricator.services.mozilla.com/D39455
2019-07-26 20:14:48 +00:00
Kristen Wright a5a1c36595 Bug 1569004 - Convert dom.timeout.budget_throttling_max_delay to static pref. r=njn
Converts dom.timeout.budget_throttling_max_delay varcache pref to static pref, removes entry from all.js, and adds entry to StaticPrefList.yaml

Differential Revision: https://phabricator.services.mozilla.com/D39451
2019-07-26 21:11:41 +00:00
kriswright e7710fd74b Bug 1569004 - Convert dom.timeout.foreground_throttling_max_budget to static pref. r=njn
Converts dom.timeout.foreground_throttling_max_budget to static pref, removes all.js entry, updates usage, adds entry to StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39439
2019-07-26 20:09:34 +00:00
kriswright 069f6354e4 Bug 1569004 - Convert dom.timeout.background_throttling_max_budget to static pref. r=njn
Converts dom.timeout.background_throttling_max_budget varcache pref to static pref, removes all.js entry, adds entry to StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39438
2019-07-26 20:06:08 +00:00
kriswright 493b721e98 Bug 1569004 - Convert dom.timeout.foreground_budget_regeneration_rate to StaticPref. r=njn
Converts dom.timeout.foreground_budget_regeneration_rate varcache pref in TimeoutManager.cpp to static pref, removes entry in all.js, adds entry in StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39436
2019-07-26 20:32:25 +00:00
kriswright e12b9c4d16 Bug 1569004 - Convert dom.timeout.background_budget_regeneration_rate to StaticPref. r=njn
Converts dom.timeout.background_budget_regeneration_rate varcache pref in TimeoutManager.cpp to static pref, removes entry in all.js, adds entry to StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39435
2019-07-26 03:07:42 +00:00
kriswright 972be3944a Bug 1569004 - convert dom.disable_open_click_delay to StaticPref. r=njn
Converts dom.disable_open_click_delay from a VarCache pref in TimeoutManager.cpp to StaticPref, removes all.js entry, and corrects a typo where the value was mentioned in nsGlobalWindowInner.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D39424
2019-07-26 19:28:30 +00:00
kriswright b7061e993f Bug 1569004 - Convert dom.timeout.max_consecutive_callbacks_ms to static pref. r=njn
Converts dom.timeout.max_consecutive_callbacks_ms varcache pref in TimeoutManager.cpp to static pref, removes associated variables and all.js entry, and adds entry to StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39425
2019-07-26 03:07:41 +00:00
kriswright 221aaa7fd6 Bug 1569004 - Convert dom.timeout.throttling_delay to static pref. r=njn
Converts dom.timeout.throttling_delay in TimeoutManager.cpp from varcache pref to static pref, removes entry in all.js, and adds entry in StaticPrefList.yaml. Favors the all.js value over the declared value in TimeoutManager.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D39426
2019-07-26 03:07:41 +00:00
kriswright 4d717df5bb Bug 1569004 - Remove dom.min_tracking_timeout_value and dom.min_tracking_background_timeout_value varcache prefs. r=njn
Removes dom.min_tracking_timeout_value and dom.min_tracking_background_timeout_value, because they are never used.

Differential Revision: https://phabricator.services.mozilla.com/D39429
2019-07-26 03:07:41 +00:00
kriswright 8c42f9d706 Bug 1569004 - Convert dom.min_background_timeout_value to StaticPref. r=njn
Converts dom.min_background_timeout_value in TimeoutManager.cpp to static pref, removes entry in all.js, adds entry to StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D39430
2019-07-26 19:21:47 +00:00
kriswright 62b5812dd5 Bug 1569004 - Convert dom.min_timeout_value to StaticPref r=njn
Converts dom.min_timeout_value varcache pref from TimeoutManager::Initialize() to a static pref, and removes its entry and associated constants from TimeoutManager.cpp and all.js

Differential Revision: https://phabricator.services.mozilla.com/D39416
2019-07-26 19:15:44 +00:00
Jonathan Kew 9a72249bbf Bug 1437367 - Remove the layout.css.paint-order.enabled pref, this feature is always enabled. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D39340
2019-07-26 14:07:17 +00:00
Andrea Marchesini 69c25090e0 Bug 1566961 - Integrate SocialTracking and ETP, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38451
2019-07-29 12:20:39 +00:00
Dragana Damjanovic c11b937cc3 Bug 1567133 - Call ForceRecv if there is data in the tunnel buffer. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D38989
2019-07-29 10:58:08 +00:00
Csoregi Natalia 295527f92f Backed out 3 changesets (bug 1566961) for eslint failure on browser_socialtracking.js. CLOSED TREE
Backed out changeset a85686cb5dfa (bug 1566961)
Backed out changeset 9cb916e52712 (bug 1566961)
Backed out changeset 4c747eb1c370 (bug 1566961)
2019-07-29 15:17:28 +03:00
Andrea Marchesini d04bc5b152 Bug 1566961 - Integrate SocialTracking and ETP, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38451
2019-07-29 11:27:23 +00:00
Tom Schuster 4f127dfe56 Bug 1569122 - Limit Worker/SharedWorker MIME type blocking to Beta/Nightly. r=ckerschb
Depends on D39634

Differential Revision: https://phabricator.services.mozilla.com/D39635
2019-07-29 07:25:37 +00:00
Tom Schuster 2939cf74a2 Bug 1569122 - Use StaticPrefs for our MIME type script blocking prefs. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D39634
2019-07-29 07:25:05 +00:00
Nicholas Nethercote c0ba974463 Bug 1569036 - Remove all the aSkipAssignment parameters. r=KrisWright
`AddVarCache()` has a `bool aSkipAssignment` parameter. This patch removes that
parameter by splitting the function in two: `AddVarCache()` and
`AddVarCacheNoAssignment()`. (The former calls the latter.)

There are also tons of `Add*VarCache()` functions with `aSkipAssignment`
parameters that default to `false`. These defaults are never overridden, so
this patch removes the unnecessary arguments.

Differential Revision: https://phabricator.services.mozilla.com/D39433
2019-07-26 21:11:18 +00:00
Nicholas Nethercote c4aacd8403 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

Differential Revision: https://phabricator.services.mozilla.com/D39138
2019-07-26 01:10:23 +00:00
Nicholas Nethercote 5cdb9729c9 Bug 1563139 - Generate multiple pref list headers instead of just one. r=glandium
Instead of generating a single `init/StaticPrefList.h`, we now generate:
- `init/StaticPrefListAll.h`;
- `StaticPrefsAll.h`;
- one `init/StaticPrefList_*.h` file for each pref group;
- one `StaticPrefs_*.h` file for each pref group.

`StaticPrefs.h` still exists -- it's equivalent to all the `StaticPrefs_*.h`
files combined -- so no `.cpp` files are changed by this commit. The next
commit will remove that file and replace inclusions of it with inclusions of
the new files.

The patch also adds checking of the type of the `do_not_use_directly` field.

Differential Revision: https://phabricator.services.mozilla.com/D39134
2019-07-25 23:16:08 +00:00
Jim Porter 52367e23bd Bug 1562782 - Enable "cancel content JS" by default r=smaug,nalexander
For background information on what "cancel content JS" does, see bug 1493225.

Differential Revision: https://phabricator.services.mozilla.com/D38264
2019-07-25 17:38:28 +00:00
Jan de Mooij cba007d037 Bug 1565807 - Bump Baseline JIT threshold from 50 to 100. r=dpalmeiro
Detailed page load performance measurements from Denis indicate this should be okay
on the reference hardware and now we have 10/100/1000 warm-up thresholds so there's
a nice pattern there.

Differential Revision: https://phabricator.services.mozilla.com/D39146
2019-07-24 16:01:47 +00:00
Nicholas Nethercote fded7bbbd1 Bug 1563139 - Remove StaticPref{s,List}_accessibility.h. r=glandium
These files exist because they were the proof-of-concept first step for
splitting the static prefs header files. Now that those header files can be
generated from a script, we need to move the `accessibility.*` prefs into the
YAML file.

Differential Revision: https://phabricator.services.mozilla.com/D39132
2019-07-25 04:08:14 +00:00
Nicholas Nethercote c79b54d1e2 Bug 1568516 - Allow a uint32_t static pref with a mirror value of never. r=KrisWright
There was a missing setter function for this combination, which hasn't been
used before.

Differential Revision: https://phabricator.services.mozilla.com/D39263
2019-07-25 02:26:14 +00:00
Christoph Kerschbaumer de8fa0d21b Bug 1567867: Remove about:newtab from 'not providing a CSP' whitelist.r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D38849
2019-07-24 18:39:40 +00:00
Kristen Wright d02bbc3617 bug 1567063 - 3. Clean up instances of PREF_VALUE, streamline ifdefs r=njn
Streamlined ifdefs by removing the remaining instances of PREF_VALUE. Also, changed media.eme.enabled to benefit from IS_NIGHTLY_BUILD, and removed duplicate logic in media.rdd-vorbis.enabled.

Differential Revision: https://phabricator.services.mozilla.com/D38952
2019-07-24 16:16:34 +00:00
Kristen Wright 7232aa8a51 Bug 1567063 - 2. Expand on constants for commonly-recurring patterns in StaticPrefs r=njn
Defines and uses constants for patterns that commonly recur in StaticPrefList.yaml, such as #ifdef NIGHTLY_BUILD

Differential Revision: https://phabricator.services.mozilla.com/D38948
2019-07-24 01:21:00 +00:00
Kristen Wright 42eb5cdf30 Bug 1567063 - 1. Use existing NOT_IN_RELEASE_OR_BETA_VALUE instead of creating a PREF_VALUE r=njn
Updated repetitive #ifdef RELEASE_OR_BETA pattern to use the existing constant at the top of the file. Renamed NOT_IN_RELEASE_OR_BETA_VALUE to IS_NOT_RELEASE_OR_BETA, to follow naming conventions in child revisions.

Differential Revision: https://phabricator.services.mozilla.com/D38947
2019-07-24 17:55:00 +00:00
Paul Adenot 204f6056bd Bug 1566369 - Lower the audioipc thread pool thread count to 1 on Linux. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D38170
2019-07-23 15:33:13 +00:00
Nicholas Nethercote 6f92dbf78f Bug 1560820 - Remove sGfxLogLevel. r=nical
`sGfxLogLevel` is a global variable whose value mirrors the value of the
"gfx.logging.level" pref in the prefs table, and is kept up to date by a
prefs callback.

But "gfx.logging.level" is a static pref that already has a mirror variable,
accessible via `StaticPrefs::gfx_logging_level()`.

So we can use the latter and remove the former, and this patch does that. The
patch also removes a sentence in a comment that refers to special treatment of
LOG_DEBUG and LOG_DEBUG_PRLOG, because that sentence appears to be referring to
something (another comment?) that is no longer present.

Differential Revision: https://phabricator.services.mozilla.com/D35625
2019-07-24 00:05:23 +00:00
Tom Schuster 1e95885248 Bug 1523706 - Consider strictly enforcing MIME checks for Worker scripts. r=ckerschb
No test changes yet.

Differential Revision: https://phabricator.services.mozilla.com/D32806
2019-07-16 20:40:03 +00:00
Jeff Walden 809d0a991b Bug 1543517 - Enable UTF-8 parsing of external (non-inline) and worker scripts unconditionally. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D38784
2019-07-22 19:36:24 +00:00
Masayuki Nakano 271f34b682 Bug 1548389 - part 6: Add automated tests for new API and rendering of password fields r=m_kato,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D38010
2019-07-22 03:55:13 +00:00
Nicholas Nethercote 462059ba06 Bug 1567329 - Append _AtStartup to once static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

Differential Revision: https://phabricator.services.mozilla.com/D38604
2019-07-22 02:10:14 +00:00