Commit Graph

13978 Commits

Author SHA1 Message Date
Nicholas Nethercote
566e447a89 Bug 1421541 - Inline and remove pref_LoadPrefsInDirList(). r=glandium
It has only one call site.

MozReview-Commit-ID: B0Qng6TI6PN

--HG--
extra : rebase_source : 0e074f279b9002d42ecdf64aa0127415adfaa241
2017-11-22 14:42:54 +11:00
Nicholas Nethercote
1cb24f1a2e Bug 1421541 - Tweak GetCStringValue(). r=glandium
It's not possible for a string value to be nullptr.

MozReview-Commit-ID: 13X28YObvwp

--HG--
extra : rebase_source : 01c8327784e356e71511eedea17d1d8e0d008776
2017-11-29 18:49:08 +11:00
Nicholas Nethercote
edd8eb9983 Bug 1421541 - Make Preferences::HandleDirty() only work in the parent process. r=glandium
pref_SetPref() is now the only function that runs in the content process and
calls HandleDirty(). So this patch moves the parent process check out of
HandleDirty() into pref_SetPref().

The patch also adds assertions to a couple of other parent-process-only
functions.

MozReview-Commit-ID: KurXKMl4IIb

--HG--
extra : rebase_source : fefb67f6e48ec83368b6170aba050883d512eb22
2017-11-29 18:48:10 +11:00
Nicholas Nethercote
4ea2059f7b Bug 1421541 - Tweak some comments. r=glandium
This includes removing a bunch of low-value ones.

MozReview-Commit-ID: LGS9M9TCL4e

--HG--
extra : rebase_source : 707a68baebc71af572974943702b57246b080533
2017-11-29 18:47:19 +11:00
Bas Schouten
d3659cd140 Bug 1422169: Have the D3D11TextureData destructor defer releasing the last reference to its DrawTarget to the paint thread. r=dvander
MozReview-Commit-ID: Dmzu5Nnpx9g
2017-12-01 17:04:46 +01:00
Jonathan Kew
d78445777f Bug 1418818 - Allow downloadable fonts to include CBLC/CBDT tables on platforms where we're using Freetype. r=jrmuizel 2017-12-01 15:18:09 +00:00
Nicholas Nethercote
7048b3d1f8 Bug 1421547 - Remove remaining traces of the old toolkit.telemetry.enabledPreRelease pref. r=rnewman
The code to migrate from the toolkit.telemetry.enabledPreRelease pref to
toolkit.telemetry.enabled was added to Firefox 31 in bug 986582. It should be
safe to remove now.

MozReview-Commit-ID: JBkn20bUQXx

--HG--
extra : rebase_source : 1fa65f1f5b8b6251af7a888959d931652363fc9a
2017-12-01 22:23:49 +11:00
Brindusan Cristian
6a74eec204 Merge inbound to mozilla-central r=merge a=merge 2017-12-01 00:22:25 +02:00
Chung-Sheng Fu
63739feac3 Bug 1037335 - Add a pref to enable only within Nightly and Early Beta. r=ckerschb,smaug
MozReview-Commit-ID: Bi82dHm53qX

--HG--
extra : rebase_source : 61a7c517afb2759d672a1c486213a73ef505a324
extra : amend_source : 572a2c8613fe36ae1ebd613a361bb23acc019912
2017-11-29 16:55:00 +02:00
Alastor Wu
e750ccbccf Bug 1415478 - part1 : turn on the pref on Nightly build. r=jwwang
MozReview-Commit-ID: AJva2ypm7BJ

--HG--
extra : rebase_source : 385bcf45aa417de1593adcc506a047caa5b14f35
2017-11-30 10:50:17 +08:00
Bogdan Tara
d8635b15e4 Merge inbound to mozilla-central r=merge a=merge on a CLOSED TREE 2017-11-30 00:41:09 +02:00
Nicholas Nethercote
5b80c7cb65 Bug 1394578 - Pass pref locked status to content processes. r=glandium
This makes the IPC messages a little bigger, but that's unavoidable.

MozReview-Commit-ID: 1oPz2Yjjd9y

--HG--
extra : rebase_source : 0cff8cf5b25f66b73f6864ce50c1e5f575026ec3
2017-11-29 09:29:07 +11:00
Nicholas Nethercote
e7207b6fd8 Bug 1394578 - Rewrite Preferences::SetPreference(). r=glandium
Preferences::SetPreference() is used when setting prefs in the content process
from dom::Pref values that are passed from the parent process. Currently we
use the high-level Set*InAnyProcess() methods to do this -- basically the same
code path as sets done via the API -- but this has several problems.

- It is subtly broken. If the content process already has a pref of type T with
  a default value and then we get a SetPreference() call that tries to change
  it to type U, it will erroneously fail. In practice this never(?) happens,
  but it shows that things aren't arranged very well.

- SetPreference() also looks up the hashtable twice to get the same pref if
  both a default value and a user value are present in the dom::Pref.

- This happens in content processes, while all other pref set operations occur
  in the parent process. This is the main reason we have the Set*InAnyProcess()
  functions.

In short, the setting of prefs via IPC is quite different to the setting of
prefs via other means -- because it happens in content processes, and it's more
of a clobber that can set both values at once -- and so should be handled
differently.

The solution is to make Preferences::SetPreference() use lower-level operations
to do the update. It now does the hash table lookup/add itself, and then calls
the new Pref::FromDomPref() method. That method then possibly calls the new
PrefValue::FromDomPrefValue() method for both kinds of value, and overwrites
them as necessary. SetValueFromDom() is no longer used and the patch removes it.

MozReview-Commit-ID: 2Rg8VMOc0Cl

--HG--
extra : rebase_source : 0eddc3a4b694a79af3e173aefa7758f8e2ae776b
2017-11-23 18:03:02 +11:00
Nicholas Nethercote
9ce6c0ebf9 Bug 1394578 - Introduce PrefType::None. r=glandium
And remove the type argument from PrefValue's constructor. This is needed
for the next patch.

MozReview-Commit-ID: Ls8hEU2uRQQ

--HG--
extra : rebase_source : 115828e219f6bbe04677ffc106068a662458481a
2017-11-23 16:35:38 +11:00
Nicholas Nethercote
2c1bcd3a21 Bug 1394578 - Move Pref::AssignPrefValueToDomPrefVAlue() to PrefValue::ToDomPrefValue(). r=glandium
It's a bit nicer that way.

MozReview-Commit-ID: HpVaxje7XIP

--HG--
extra : rebase_source : 23a9bf251225992652e33bce84135840c2566d86
2017-11-23 16:35:35 +11:00
Nicholas Nethercote
dcfe881ca1 Bug 1394578 - Move more operations into PrefValue. r=glandium
The nice thing about this is that the memory management of the strings
(moz_xstrdup() and free()) is now entirely within PrefValue.

MozReview-Commit-ID: KJjnURpmgfE

--HG--
extra : rebase_source : 39c058cddf5ebf9e19f9151f40fd507f6909a289
2017-11-23 16:34:42 +11:00
Nicholas Nethercote
5208f7436b Bug 1394578 - Remove the kPref* enum. r=glandium
It's something of an obfuscation, and it forces together various bool values
that don't necessarily have to be together (and won't be together after future
refactorings).

The patch also reorders some function arguments for consistency: PrefType, then
PrefValueKind, then PrefValue.

MozReview-Commit-ID: KNY0Pxo0Nxf

--HG--
extra : rebase_source : d46d228c3b13549b2159757dcdaf9583cca828f7
2017-11-23 13:07:04 +11:00
Nicholas Nethercote
53ec464e06 Bug 1394578 - PrefHashEntry as Pref. r=glandium
Although it is a subclass of PLDHashEntryHdr, it's the main representation of a
pref, so the name should reflect that.

MozReview-Commit-ID: 5qJNQtjbFmH

--HG--
extra : rebase_source : f2bd77a57c4e2a48e24ead736f15856fbeb9f718
2017-11-23 10:52:08 +11:00
Nicholas Nethercote
15bd051c45 Bug 1394578 - Use gHashTable->EntryCount() to size aDomPrefs, not aCapacity(). r=glandium
As is done in pref_SavePrefs().

The confusion here is because a Vector can fill 100% of its capacity, but a
hash table cannot go past 75% of its capacity.

MozReview-Commit-ID: 5JMbmtrxMGN

--HG--
extra : rebase_source : 5ce1ce9dd0259588a0df924c2b45c39497b1ce71
2017-11-22 21:21:19 +11:00
Nicholas Nethercote
a775a9afdb Bug 1394578 - Rename dom::PrefSetting as dom::Pref. r=glandium
It represents a pref, so `Pref` is a better name. Within Preferences.cpp the
patch uses domPref/aDomPref to distinguish it from PrefHashEntry values.

MozReview-Commit-ID: HXTl0GX4BtO

--HG--
extra : rebase_source : c1e0726c55e7577720f669f0ed2dbc38627d853e
2017-11-22 21:21:19 +11:00
Nicholas Nethercote
73b9138844 Bug 1394578 - Add PrefHashEntry::ValueMatches(). r=glandium
This factors out some common code from SetValue(), making it easier to read.
The patch also improves the comments in SetValue().

MozReview-Commit-ID: 60JnBlIS1q6

--HG--
extra : rebase_source : cc0e47eb556ab87549137777625856db12782702
2017-11-22 09:53:23 +11:00
Makoto Kato
e92f83050d Bug 1419776 - Backed out bug 1419277 part 2 due to unclassified heap regression. r=jfkthame
MozReview-Commit-ID: 5ghveJGcpiH

--HG--
extra : rebase_source : e7d7b87db37e767a786e1b5b4a5d5c823aa9d825
2017-11-28 15:33:52 +09:00
Dorel Luca
79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Jean-Yves Avenard
424a8ff8a0 Bug 1417973 - Always use the AMD GPU decoder. r=mattwoodrow
High resolution, high framerate was disabled by default on old AMD cards on the provisio that it was bad. But this assumes that the CPU decoder could do it better.
This assumption appears fragile at best, as CPU with those old adapter are likely to be old and underpower to start with.

Chrome doesn't appear to restrict use of those cards to a given resolution.
So we disable this restriction, while making it user configurable.

MozReview-Commit-ID: HhADHNR0FdJ

--HG--
extra : rebase_source : ece39cd9b84c6e372d1002ee12e72523cee3d04d
2017-11-22 20:58:09 +01:00
Emilio Cobos Álvarez
ec75854b21 Bug 1035091: Disable @-moz-document on author sheets on nightly and early beta. r=xidorn
MozReview-Commit-ID: AAUs1jJifjS

--HG--
extra : rebase_source : b3334ff237e66fd75ef87aa92c4c9a56fef2119f
2017-11-29 22:16:46 +01:00
Jonathan Kingston
6986c42dfa Bug 1190623 - Add a pref to consider object sub requests as active. r=tanvi, r=ckerschb
MozReview-Commit-ID: Br2F89IfWng
2017-11-11 01:15:06 +00:00
Dão Gottwald
aff5b2a7f6 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 4FQ5aL2XrU5

--HG--
extra : rebase_source : a8863472a82697b3e7668866a35f14b6f01fafe7
2017-11-28 11:38:15 +01:00
Johann Hofmann
d28b4dd837 Bug 1374574 - Remove the FlyWeb service and DOM interfaces. r=bz,djvj
MozReview-Commit-ID: 4hp9pLbMh4R

--HG--
extra : rebase_source : 82f417640211ede4fd7aa290c1f2609b07f38025
2017-11-22 15:00:10 +01:00
Sebastian Hengst
706ac3aea0 Backed out 3 changesets (bug 1415478) for frequently asserting in own test test_autoplay_policy.html at MediaDecoderStateMachine.cpp:989. r=backout
Backed out changeset 6ba103fe1caf (bug 1415478)
Backed out changeset df6721a3584f (bug 1415478)
Backed out changeset 8a802839959b (bug 1415478)

--HG--
extra : rebase_source : be4296b1b36005195897de5544941b58895de661
2017-11-27 19:57:34 +02:00
bechen@mozilla.com
d644e57ff9 Bug 1415805 - enable region preference and wpt tests webvtt/api/VTTRegion. r=rillian
MozReview-Commit-ID: 1aaQml7gKBU

--HG--
extra : rebase_source : 34b5c39af3cab32f070335fd3cf183c45db2282a
2017-11-22 16:10:06 +08:00
Alastor Wu
10ef8e706f Bug 1415478 - part1 : turn on the pref on Nightly build. r=jwwang
MozReview-Commit-ID: AJva2ypm7BJ

--HG--
extra : rebase_source : 00b7a831a685dee21a13a786e93e9a3a388f4be3
2017-11-27 19:18:45 +08:00
Chun-Min Chang
447c6c888f Bug 654787 - part1: Add pref for audio seamless looping; r=jwwang
MozReview-Commit-ID: 1md5AxHG8NA

--HG--
extra : rebase_source : c13002de65c523a508f01564cc2730aff4a36086
2017-11-08 13:43:08 +08:00
Cosmin Sabou
651cb90a8a Backed out changeset be86ccde4f4a (bug 1352497) for bc failures on Windows 7 debug with e10s at docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js r=backout a=backout 2017-11-26 01:36:44 +02:00
Noemi Erli
45a3df4e6b Merge inbound to mozilla-central r=merge a=merge 2017-11-23 08:05:49 +02:00
Florian Quèze
c276dded0e Backed out changeset 1603e2488c32 as this patch for bug 1226616 didn't work 2017-11-25 00:01:07 +01:00
Ciure Andrei
327405164b Merge inbound to mozilla-central r=merge a=merge 2017-11-25 00:04:02 +02:00
dluca
85d0512151 Backed out 3 changesets (bug 1415478) for frequently asserting at dom/media/MediaDecoderStateMachine.cpp:1009 on a CLOSED TREE
Backed out changeset 447d895b350d (bug 1415478)
Backed out changeset d855c032c823 (bug 1415478)
Backed out changeset 6739012c4bdf (bug 1415478)
2017-11-24 18:50:53 +02:00
Botond Ballo
978ae3283a Bug 951793 - Style support for overscroll-behavior. r=heycam
MozReview-Commit-ID: IDAfBZy2D5p
2017-11-25 01:28:58 +01:00
Sebastian Hengst
6d4637aebb Backed out 15 changesets (bug 951793) because it landed before the necessary servo changes. r=backout requested by emilio on a CLOSED TREE
Backed out changeset ca8c86e229df (bug 951793)
Backed out changeset 6eef6403fa71 (bug 951793)
Backed out changeset a5e529f52fb1 (bug 951793)
Backed out changeset 054e837609d0 (bug 951793)
Backed out changeset 713a3c9617ce (bug 951793)
Backed out changeset 884913aa1668 (bug 951793)
Backed out changeset c3340b84e534 (bug 951793)
Backed out changeset 50fe3c6ac486 (bug 951793)
Backed out changeset be4e22e5c257 (bug 951793)
Backed out changeset 7055bd5dfc4e (bug 951793)
Backed out changeset fa6da1e723cf (bug 951793)
Backed out changeset 386f77004d89 (bug 951793)
Backed out changeset fa82cdc01408 (bug 951793)
Backed out changeset 867d8ea5355c (bug 951793)
Backed out changeset e61ac8e48971 (bug 951793)
2017-11-25 01:01:41 +02:00
sotaro
dff4491cb4 Bug 1391159 - Handle WebRender ProgramBinary usage r=nical 2017-11-24 20:58:24 +09:00
arthur.iakab
dfc104159a Merge inbound to central r=merge a=merge 2017-11-24 12:00:30 +02:00
Brian Birtles
9500d45c75 Bug 1412765 - Enable dom.animations-api.pending-member.enabled by default; r=hiro
MozReview-Commit-ID: G1Uyff3Wh32

--HG--
extra : rebase_source : 53a4ce42dfee03512dd0153f069aab27169580d4
2017-11-24 10:54:12 +09:00
Brian Birtles
bad7dc839d Bug 1412765 - Add dom.animations-api.pending-member.enabled, defaulting to false; r=hiro
MozReview-Commit-ID: 7P34nAI7apB

--HG--
extra : rebase_source : 94cf46522b995c40b1649a4d8ce44cd868026869
2017-11-21 09:43:40 +09:00
Nicholas Nethercote
09d19b6c47 Bug 1419654 - Prevent possible pref default/user value type mismatches. r=glandium
Currently, you can create a pref that only has a user value, and then later
give it a default value with a different type. The entire pref is then recorded
as having this second type. This causes problems later when interpreting the
user value.

This patch makes SetValue() fail if it tries to set a default value whose type
differs from an existing user value. It also expands an existing test to cover
this case and some similar ones.

MozReview-Commit-ID: 89tvISQ7RNT

--HG--
extra : rebase_source : 6cf34da0ff24f5b90a88003445a4a7c88b1f3907
2017-11-21 16:00:23 +11:00
Mike Hommey
45a27d92d2 Bug 1420311 - Remove hack from test_stickyprefs.js. r=njn
Before bug 1367813, the code in test_stickyprefs.js, using
readUserPrefs, would end up changing the file under which the
preferences service would save user prefs, making xpcshell
possibly overwrite the test data files at the end of the test run.

A hack was put in place to avoid this, that is not required anymore.

--HG--
extra : rebase_source : 6a4b1442c0d1593322226ad162c421df4f9c7f87
2017-11-24 10:39:23 +09:00
Nika Layzell
93c45cb3ef Bug 1419144 - Part 2: Remove unused gThrottledIdlePeriodLength, r=farre
MozReview-Commit-ID: GGMJC6HuCLa
2017-11-23 13:11:14 -05:00
Botond Ballo
3ff3395934 Bug 951793 - Style support for overscroll-behavior. r=heycam
MozReview-Commit-ID: IDAfBZy2D5p

--HG--
extra : rebase_source : d70820f9612174ffc8f17f1a2646dc65f46667df
2017-11-22 19:01:11 -05:00
Dão Gottwald
bfd060da04 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 8aPg9oDFIlu

--HG--
extra : rebase_source : 6e9836a6d66b464df1228f7ed84e9b37bad8809c
2017-11-22 13:51:08 +01:00
arthur.iakab
61b76d3643 Merge mozilla central to autoland r=merge a=merge on a CLOSED TREE 2017-11-24 12:05:22 +02:00
Alastor Wu
d5341011c9 Bug 1415478 - part1 : turn on the pref on Nightly build. r=jwwang
MozReview-Commit-ID: AJva2ypm7BJ

--HG--
extra : rebase_source : 5bfd8d46aa8b928bd7b6a6e12c31f0c7e2c4ebee
2017-11-24 11:12:23 +08:00