Commit Graph

13988 Commits

Author SHA1 Message Date
Masatoshi Kimura
0eee3482dc Bug 1071816 - Add a pref to fallback to UTF-8 for files from file: URLs. r=hsivonen
MozReview-Commit-ID: KFjIqYmgzTl

--HG--
extra : rebase_source : 9c8af1c9b488ed945832ab1cb83e11a74e91cd08
2017-11-30 20:55:07 +09:00
Francois Marier
5d8fa6f351 Bug 446344 - Implement Origin header CSRF mitigation. r=ckerschb,dragana
MozReview-Commit-ID: EZpGo0UfmUP

--HG--
extra : rebase_source : dce83c8314148c104e47ae322c4d578e96986ea3
extra : source : d4747fd86a331aed7b524b509f915f0c9dd6044f
2017-11-24 17:35:05 -08:00
Jamie Nicol
501b6f7440 Bug 1421481 - Increase allowed number of webgl contexts on mobile. r=snorp
This was previously limited to 2 per principal and 4 total on
mobile. Mobile GPU drivers have progressed a lot since the limit was
put in place, and the strict limit is causing webcompat issues on
google maps.

Increase to 8 per principal and 16 in total, bringing us
closer in line with Chrome. Make these limits contrallable via a pref
so that if there are any problems it is easy to change.

MozReview-Commit-ID: 8Tsbrjr4KCE

--HG--
extra : rebase_source : 8efd43265a665237a8bfcb689f5fc758466bcd71
2017-11-30 11:40:57 +00:00
Dorel Luca
bea662dd30 Merge mozilla-central to autoland r=merge
--HG--
rename : layout/reftests/webcomponents/basic-insertion-point-1-ref.html => layout/reftests/webcomponents/basic-slot-5-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-1.html => layout/reftests/webcomponents/basic-slot-5.html
rename : layout/reftests/webcomponents/basic-insertion-point-2-ref.html => layout/reftests/webcomponents/basic-slot-6-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-2.html => layout/reftests/webcomponents/basic-slot-6.html
extra : rebase_source : 483a0fb85738c5459165efca8ec6bc971e31b4c2
2017-12-04 12:49:40 +02:00
Nicholas Nethercote
3da37cfebe Bug 1421541 - Overhaul the prefs phase code. r=glandium
This code is used to detect too-early accesses of prefs in content processes.

The patch makes the following changes.

- New terminology: "early" prefs are those sent via the command line; "late"
  prefs are those sent via IPC. Previously the former were "init" prefs and the
  latter didn't have a clear name.

- The phase tracking and checking is now almost completely encapsulated within
  Preferences.cpp. The only exposure to outside code is via the
  AreAllPrefsSetInContentProcess() method, which has a single use.

- The number of states tracked drops from 5 to 3. There's no need to track the
  beginning of the pref-setting operations, because we only need to know if
  they've finished. (This also avoids the weirdness where we could transition
  from END_INIT_PREFS back to BEGIN_INIT_PREFS because of the way -intPrefs,
  -boolPrefs and -stringPrefs were parsed separately.)

MozReview-Commit-ID: IVJWiDxdsDV

--HG--
extra : rebase_source : 8cee1dcbd40847bf052ca9e2b759dd550350e5a1
2017-11-30 09:14:32 +11:00
Nicholas Nethercote
fb0851df88 Bug 1421541 - Split Pref::SetValue() in two. r=glandium
The default path and the user path are entirely disjoint, and some of the
arguments only apply to one of the paths, so splitting it into two functions
makes things a bit clearer. The aForceSet arg is also renamed aFromFile.

MozReview-Commit-ID: LYtrwz5JHiN

--HG--
extra : rebase_source : c66c39b0869c0fae6bbecc55f42e0842f5b40f46
2017-11-29 20:55:56 +11:00
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
Makoto Kato
9fa1068dcc Bug 1032671 - Part 3. Set font.name-list.emoji for some platforms. r=jfkthame
- Segoe UI Emoji for Windows 8+
- EmojiOne Mozilla for Windows 7
- Apple Color Emoji for OSX
- EmojiOne Mozilla for GTK(Linux).  fontconfig doesn't support emoji as family name.
- Noto Color Emoji for Android

MozReview-Commit-ID: GOkOFRujk93

--HG--
extra : rebase_source : e8bae62d555440d9881f111fb26393d59fd15ba4
2017-11-12 16:30:23 +09:00
shindli
7ba06ee564 Backed out 2 changesets (bug 1420954) for build failure in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsIURIMutator.h:340:3: r=backout on a CLOSED TREE
Backed out changeset 8ce0a0d49d9e (bug 1420954)
Backed out changeset 480c6e1721e9 (bug 1420954)
2017-12-03 01:10:14 +02:00
Ian Moody
fecd3a9c13 Bug 1422535 - Add full-screen-api.ignore-widgets pref to all.js so it's listed in about:config. r=xidorn
MozReview-Commit-ID: 4k2Hj3pDLSR

--HG--
extra : rebase_source : 3de3ce28ea3b2f400db1f08a95c50001b001960e
2017-12-02 22:40:18 +00:00
Valentin Gosu
f903a38639 Bug 1420954 - Make nsIURIMutator setters return nsIURIMutator so we can chain setters r=bagder
MozReview-Commit-ID: 53BD91hB2yi

--HG--
extra : rebase_source : 45594a92e1a9f18f2f4b5bb2824b5f8ced584eab
2017-12-02 23:09:34 +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