Commit Graph

13978 Commits

Author SHA1 Message Date
Nicholas Nethercote
994d5726c4 Bug 1416613 - Improve comments about pref IPC. r=glandium
These would have saved me some time last week when I was figuring out how this
stuff works.

MozReview-Commit-ID: DUhxGDht6xT
2017-11-13 09:19:43 +11:00
Nicholas Nethercote
b15805ab71 Bug 1414759 - Replace some unnecessary media prefs with code constants. r=cpearce
Specifically:
- media.decoder.limit
- media.num-decode-threads
- media.resampling.rate
- media.wmf.decoder.thread-count
- media.cache.resource-index

--HG--
extra : rebase_source : a46aa7078b98b4731ec96b66398c51aa6cb42d27
2017-11-13 17:16:06 +11:00
Christoph Kerschbaumer
9fe7e4ca2f Bug 1401895 - Block top-level navigations to data: URIs. r=bz 2017-11-13 21:22:59 +01:00
Matt Woodrow
b6997a1778 Bug 1416055 - Enable retained display lists for Nightly builds. r=miko 2017-11-10 21:27:39 +13:00
Ethan Lin
beaea27dc3 Bug 1415989 - Do not use 'ShouldUseAdvancedLayer' for button type display items. r=jrmuizel
MozReview-Commit-ID: 83qOTfTRUY0

--HG--
extra : rebase_source : 560f285f3092cd75d14d27cae4adcb8e9dca0e3a
2017-11-10 11:41:15 +08:00
Ryan VanderMeulen
3c232c4d24 Backed out changeset 2ed0ff57330d (bug 1411467) for test_interfaces bustage on Beta. 2017-11-10 17:31:03 -05:00
Ryan VanderMeulen
b16410f51c Merge inbound to m-c. a=merge 2017-11-10 16:13:15 -05:00
Paul Adenot
d712cb2e50 Bug 1221580 - Followup, don't enable full-duplex on unknown platforms.
MozReview-Commit-ID: 7yJmup9a35A
2017-11-10 15:29:49 +01:00
Paul Adenot
218f7ce203 Bug 1221580 - Use duplex when sndio is enabled. r=gaston
MozReview-Commit-ID: E5EhoakY6EM

--HG--
extra : rebase_source : 7b8ac5a9c01d66a0bcf6bd1a095455df0af33aa9
2017-11-03 16:12:35 +01:00
Noemi Erli
48988ddf27 Backed out changeset 944b91410e49 (bug 1416055) for failing in bc browser/components/originattributes/test/browser/browser_broadcastChannel.js r=backout on a CLOSED TREE
--HG--
extra : amend_source : f02661b0cda7f5cd030e916e1b77ff8ee3e6ce9b
2017-11-10 12:35:24 +02:00
Matt Woodrow
01a1a65f66 Bug 1416055 - Enable retained display lists for Nightly builds. r=miko 2017-11-10 21:27:39 +13:00
Nicholas Nethercote
9872074b14 Bug 1415799 - Rename pref_HashPref() as pref_SetPref(). r=glandium.
Because it sets the pref.

MozReview-Commit-ID: IlEVRWKU94X

--HG--
extra : rebase_source : 76847f4b32c4c45253e74ffccc251ccb796ad6a4
2017-11-09 18:00:42 +11:00
Nicholas Nethercote
680e88e4d4 Bug 1415799 - Inline and remove Preferences::Init(). r=glandium
It has a single call site.

MozReview-Commit-ID: A96MRRa3W5N

--HG--
extra : rebase_source : 243cecf21ed0ad9c0850a5efb8217c5bb3770d25
2017-11-09 17:59:51 +11:00
Nicholas Nethercote
c09c797058 Bug 1415799 - Remove PREF_ClearUserPref() forward declaration. r=glandium
It's not needed.

MozReview-Commit-ID: AqKeBuxZJh3

--HG--
extra : rebase_source : e7ec4a2ef428ff84cd8cedf724e7f284a202bfa8
2017-11-09 17:59:12 +11:00
Nicholas Nethercote
9d9aef2c32 Bug 1415799 - Inline and remove PREF_Init() and PREF_CleanupPrefs(). r=glandium
They both have two callsites, but in one of those they appear together, where
much of the code can be replaced with a ClearAndPrepareForLength() call.

MozReview-Commit-ID: 1A771gsHWan

--HG--
extra : rebase_source : c6f26b9a825155c7b7c885540cf9f34f8b8eace7
2017-11-09 17:58:35 +11:00
Nicholas Nethercote
7421d3a552 Bug 1415799 - Inline and remove PREF_Cleanup. r=glandium
It has a single call site.

MozReview-Commit-ID: DoE5BlEA9a6

--HG--
extra : rebase_source : 590aad6dc0c0dbf84c05e8765bf0964fdd8c2d13
2017-11-09 17:56:29 +11:00
Nicholas Nethercote
8b37495d1c Bug 1415799 - Inline and remove pref_SizeOfPrivateData(). r=glandium
It has a single call site.

MozReview-Commit-ID: DhpO2vyeC61

--HG--
extra : rebase_source : eef9ba0f98748c2478316734c4860912008464a2
2017-11-09 17:54:32 +11:00
Stone Shih
b4b1ee6620 Bug 1411467 - Keeping PointerEvent enabled in early beta. r=smaug.
MozReview-Commit-ID: 9eD5bs2RwkC
2017-11-06 17:43:59 +08:00
Nicholas Nethercote
f4dd5e2636 Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : b885ee784704819e181430200af5ef762e269d14
2017-11-10 09:07:48 +11:00
David Teller
a2b2ad337a Bug 1108587 - Extending the grace period of AsyncShutdown and the nsTerminator for ASAN builds;r=gsvelto
Bug 1108587 seems to suggest that the grace period for nsTerminator is
too short for ASAN builds, which take much longer to shutdown. This
patch changes the grace period from 1 minute to 3 minutes, hoping that
this will be sufficient. Somewhere along the way, we also extend the
duration of AsyncShutdown, because that's the simplest way to do both
at once.

MozReview-Commit-ID: 28eWO5m6Wh3

--HG--
extra : rebase_source : eae9db952d5395f986781f3cbd23507b715fa8c9
2017-11-09 16:21:34 +01:00
Nicholas Nethercote
c40b04cecd Bug 1415418 - Simplify GetUint(). r=glandium.
This makes it just like GetDefaultUint().

MozReview-Commit-ID: CSoLpLdstAv

--HG--
extra : rebase_source : 5ba8cb897c46197b7ef52c6c27b45ad223bc3d41
2017-11-08 16:45:42 +11:00
Nicholas Nethercote
882ae209b6 Bug 1415418 - Reorder Preferences.h. r=glandium.
The various getters and setters are in a confusing order. This patch puts them
in a more sensible order. It also streamlines the comments, which were
generally low-value and in some cases incorrect.

MozReview-Commit-ID: 3ngzZDSt0JI

--HG--
extra : rebase_source : 8a5a66f65621889483d2df9f4487194172f70804
2017-11-08 16:45:38 +11:00
Gijs Kruitbosch
01809dc8fa Bug 1417093 - remove symlink support from our nsZipArchive extract implementation because it's unused and has issues, r=mossop
MozReview-Commit-ID: FZ7hy3ATw1i

--HG--
extra : rebase_source : 531b46c24db1791a0dd8ca4afd4021cb2ce4f126
2017-11-21 16:25:46 +00:00
Coroiu Cristina
8f9440611e Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-22 01:46:49 +02:00
Martin Stransky
f36cf21409 Bug 1418829 - remove widget.allow-client-side-decoration preference, r=jhorak
widget.allow-client-side-decoration is no longer used, titlebar rendering is controled by browser.tabs.drawInTitlebar only.

MozReview-Commit-ID: LHdBio4Gfry

--HG--
extra : rebase_source : 7cdd788978d0209702d5212ac7be4daa1c616393
2017-11-20 14:27:19 +01:00
Alastor Wu
5acb978a09 Bug 1382574 - part1 : create new class AutoplayPolicy to handle autoplay logic. r=jwwang
AutoplayPolicy is used to manage autoplay logic for all kinds of media,
including MediaElement, Web Audio and Web Speech.

MozReview-Commit-ID: R1TxMkarIw

--HG--
extra : rebase_source : 8c608a1d12c8e205391a91f22e1532bc4f2c8f16
2017-11-22 00:33:16 +08:00
Sebastian Hengst
a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Narcis Beleuzu
57d9eb5fb1 Backed out 1 changesets (bug 1414096) for dt1 failures "devtools/client/commandline/test/browser_cmd_pref3.js" r=backout on a CLOSED TREE
Backed out changeset e843de356b7e (bug 1414096)
2017-11-08 18:04:01 +02:00
Valentin Gosu
132162d150 Bug 1415206 - Remove RustURL from Gecko r=bagder
This class isn't being used right now, and MozURL is a much better alternative if interaction with rust URLs is required.

MozReview-Commit-ID: ADdYRrrTnr6

--HG--
extra : rebase_source : b36aa26c20e7daaadab1f3360bab0ed4681eb7f8
2017-11-07 17:11:08 +01:00
Nicholas Nethercote
79aa95fa24 Bug 1414150 - Remove the "idle_queue.*" prefs. r=farre.
There's no good reason why these can't be code constants.

Especially given that, due to a bug, changes to the
"idle_queue.{min,long}_period" constants were not being passed onto the C++
code!

Here's why: those two prefs were specified as integers in all.js. But we used
AddFloatVarCache() to set up the reading of those prefs. libpref fakes floats
by storing them as strings and then converting them to floats when they are
read.

Which means that AddFloatVarCache() used to fail to get the value from all.js
-- because there's a type mismatch, int vs. string -- and instead use the
fallback default. That value is the same as the one in all.js, which is lucky.
But if someone changed the value in about:config to 100 (an integer), a similar
failure would have occured and the value used by the C++ code wouldn't be
updated!

Also note that idle_queue.max_timer_thread_bound did not have a value in
all.js.

What a mess!

--HG--
extra : rebase_source : 86f8fa905163803eb95007609c029e18c2c4f586
2017-11-08 07:54:16 +11:00
Nicholas Nethercote
1455a7fc09 Bug 1414150 - Remove the "memory.low_*" prefs. r=erahm,dmajor.
There's no good reason why these should't just be constants. The patch also
appends "MiB" to some of the C++ values to make their meaning clearer.

This patch fixes one outright bug, and one inconsistency.

The bug is due to a prefname mismatch:

- ContentPrefs.cpp and AvailableMemoryTracker.cpp use
  "memory.low_virtual_mem_threshold_mb".

- all.js uses "memory.low_virtual_memory_threshold_mb".

Which means that "memory.low_virtual_memory_threshold_mb" showed up in
about:config, but if you changed it nothing would happen because the callback
listened for changes to to "memory.low_virtual_mem_threshold_mb"!

Now for the inconsistency. The above means we actually use a value of 256 for
the virtual memory threshold, even though all.js says 128. But we *do* use a
value of 128 for the commit space threshold, because that's what all.js says
and that prefname is used correctly everywhere. The patch changes the commit
space threshold to 256 for consistency with the virtual memory threshold.

What a mess!

--HG--
extra : rebase_source : d3842c732efa9ab0e90eeb6a4f341aeb289589ed
2017-11-08 07:49:46 +11:00
Nicholas Nethercote
2513a08f85 Bug 1414150 - Remove the "memory.free_dirty_pages" pref. r=glandium.
This was originally added for b2g, where the pref had a different value.
Bug 1398033 enabled it everywhere.

--HG--
extra : rebase_source : c8bb03190cd00d25e6c2ec62a99ed8e911e08197
2017-11-07 19:34:18 +11:00
Nicholas Nethercote
49b155a761 Bug 1414188 - Remove ValueObserver. r=glandium.
libpref has callbacks. You can register a callback function against a
particular pref (or pref prefix), and it'll be called when any matching pref
changes.

This is implemented in two layers. The lower layer is the list of CallbackNode
objects, pointed to by gFirstCallback.

The upper layer involves gObserverTable, which is a hash table of ValueObserver
objects. It is used for callbacks registered via
Preferences::RegisterCallback() and Preferences::Add*VarCache(), but not for
observers registered with Preferences::Add{Weak,Strong}Observer(). If multiple
callbacks with identical prefnames, callback functions and MatchKinds occur,
they are commoned up into a single ValueObserver, which is then wrapped by a
single CallbackNode. (The callbacks within a single ValueObserver can have
different void* aClosure args; ValueObserver keeps those in an nsTArray.)

Note also that gObserverTable is very inelegant, with duplication of data
between the keys and the values due it being a
nsRefPtrHashtable<ValueObserverHashKey, ValueObserver> and ValueObserver being
a subclass of ValueObserverHashKey(!)

This extra layer might make sense if there were a lot of commoning up
happening, but there's not. Across all process kinds there is an average of
between 1.2 and 1.7 closures per ValueObserver. The vast majority have 1
closure, and there are a handful that have multiple; the highest number I've
seen is 71.

(Note that this two-layer design probably seemed more natural back when libpref
was spread across multiple files.)

This patch removes the ValueObserver layer. The only tricky part is that there
is a notion of a MatchKind -- ExactMatch or PrefixMatch -- which exists in the
ValueObserverLayer but not in the CallbackNode layer. So the patch moves the
MatchKind into the CallbackNode layer, which is straightforward.

On Linux64 this reduces memory usage by about 40 KiB in the parent process and
about 30 KiB in each content processes.

The performance implications are minor.

- The list of CallbackNodes is a bit longer, so when a pref is changed we must
  check more nodes. But we avoid possibly doing prefname matching twice.

- Callback registration is much faster, just a simple list prepend, without any
  hash table insertion required.

- Callback unregistration is probably not much different. There is a longer
  list to traverse, but no hash table removal.

- Pref lookup is by far the hottest libpref operation, and it's unchanged.

For perf to be genuinely affected would require (a) a *lot* more
almost-duplicate callbacks that would have been commoned up, and (b) frequent
changing of the pref those callbacks are observing. This seems highly unlikely.

MozReview-Commit-ID: 6xo4xmytOf3

--HG--
extra : rebase_source : cf9884a8a40b2cc3b00ab165ae5ab4ec3383f72d
2017-11-02 20:38:34 +11:00
Nicholas Nethercote
8b3d03c666 Bug 1414096 - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : fb7af066adfa0491a79fae6282a62b08661553c8
2017-10-31 16:34:35 +11:00
Jonathan Watt
0fddabe8f0 Bug 1411552 - Improve the warning about attempting to overwrite prefs with a pref of the wrong type. r=njn
MozReview-Commit-ID: AAlimIWoOgQ
2017-10-11 19:10:43 +01:00
Jeff Gilbert
573afa08c2 Bug 1414977 - Allow webgl.force-index-validation:-1 to disable index validation for testing. - r=daoshengmu
MozReview-Commit-ID: Drw9LsIo1Qt
2017-11-06 19:46:37 -08:00
Nicholas Nethercote
ee320f219e Bug 1413811 (part 3) - Rename RegisterPriorityCallback(). r=glandium.
MozReview-Commit-ID: 5Ov1cHgfB5Y

--HG--
extra : rebase_source : 767ae8c0390f68555e334945cb5479479a52e1ef
2017-11-02 17:20:36 +11:00
Nicholas Nethercote
d8ca9e91d7 Bug 1413811 (part 2) - Factor out similarities between RegisterPriorityCallback() and Preferences::RegisterCallback(). r=glandium.
MozReview-Commit-ID: 8K3RNjZTSc3

--HG--
extra : rebase_source : 1bd0aacc120248f024e2e428af40087bba3f6848
2017-11-02 17:13:47 +11:00
Nicholas Nethercote
90032b0798 Bug 1413811 (part 1) - Avoid PrefCallback for pref callbacks registered with Preferences::RegisterCallback(). r=glandium.
Pref callbacks registered via Preferences::Add*VarCache() are wrapped in a
ValueObserver -- which groups all callback requests that have the same prefname
and callback function -- and the ValueObserver is put into gObserverTable. This
is reasonable.

Observers registered via nsPrefBranch::Add{Weak,Strong}Observer() are wrapped
in a PrefCallback, and the PrefCallback is put into sRootBranch->mObservers.
This is also reasonable.

Pref callbacks registered via Preferences::RegisterCallback() are conceptually
similar to those registered via Preferences::Add*VarCache(). However, they are
implemented by using *both* of the above mechanisms: they are wrapped in a
ValueObserver which is put into gObserverTable, *and* that ValueObserver is then
wrapped in a PrefCallback which is put into sRootBranch->mObservers.

Using both mechanisms isn't necessary, so this patch removes the
PrefCallback/mObservers part. This makes Preferences::RegisterCallback() work
in much the same way as Preferences::Add*VarCache().

Specifically:

- Preferences::RegisterCallback() now calls PREF_RegisterCallback() instead of
  Preferences::AddStrongObserver(). This makes it more similar to
  RegisterPriorityCallback().

- Preferences::UnregisterCallback() now explicitly calls
  PREF_UnregisterCallback() instead of Preferences::RemoveObserver (which
  previously happened via ~ValueObserver() when the ValueObserver was removed
  from gObserverTable and its refcount dropped to zerod).

MozReview-Commit-ID: 1tEQNeYrBUU

--HG--
extra : rebase_source : 431a42402397a172d562b81b8d46418503bb8dfe
2017-11-02 17:11:51 +11:00
NARCIS BELEUZU
a6cf88a4bf Merge mozilla-central to inbound. r=merge a=merge on CLOSED TREE 2017-11-03 12:22:35 +02:00
NARCIS BELEUZU
2e3654a915 Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
Sebastian Hengst
e9b3a258b8 merge mozilla-central to autoland. r=merge a=merge 2017-11-02 23:15:55 +01:00
Sebastian Hengst
68106833b3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: xcHQOq7Rbv
2017-11-02 22:59:04 +01:00
Nicolas B. Pierron
f955d25394 Bug 1405738 - Enable the JavaScript Start-up Bytecode Cache. r=mrbkap 2017-11-02 16:31:45 +00:00
Nicholas Nethercote
9245fb0232 Bug 1413400 (part 2) - Make Preferences::sPreferences a StaticRefPtr. r=froydnj.
The notable part of this change is Shutdown(). I've made it just null out
sPreferences, contrary to the old comment, which was strange for a couple of
reasons:

- ~Preferences() used to null out sPreference, which is backwards compared to
  how this sort of thing normally works.

- In both the before and after cases, as far as I can tell,
  Preferences::Shutdown() is called but ~Preferences() is never called;
  something keeps the singleton Preferences instance alive until process
  termination.

MozReview-Commit-ID: Ab0ui31rVcI
2017-11-01 13:55:28 +11:00
Nicholas Nethercote
3baceb4b37 Bug 1413400 (part 1) - Move s{,Default}RootBranch into Preferences. r=froydnj.
sRootBranch and sDefaultRootBranch have the same lifetime as sPreferences, so
this patch makes them non-static nsCOMPtr<> members of Preferences.

MozReview-Commit-ID: 1TLhh13ZpBI

--HG--
extra : rebase_source : 9419cd205b9a06f7ae82722a6732e3fc2722473b
2017-11-01 13:41:14 +11:00
Nicholas Nethercote
b9c6a1d730 Bug 1413413 (part 2) - Remove support for extensions having their own prefs file. r=glandium,kmag.
It's no longer needed, now that legacy extensions aren't supported.

Pieces removed include the following.

- The "load-extension-default" observer notification.

- The code for reading defaults/preferences/*.js from extensions.

- The unit test for this stuff.

- A crash reporter annotation relating to very long prefs set by add-ons.

- All references to "ExtPrefDL".

MozReview-Commit-ID: KMBoYn3uZ3x

--HG--
extra : rebase_source : 4dc8ffd425c6cdf06806409090c4f9d04a64930b
2017-10-31 16:34:57 +11:00
Nicholas Nethercote
08cb1f38b2 Bug 1413413 (part 1) - Remove unused "@mozilla.org/preferences;1" ID. r=glandium.
MozReview-Commit-ID: 9d1ca2R6fNb

--HG--
extra : rebase_source : a7377b8b242cf07eb7a48cd0cb431b4768792326
2017-10-31 16:34:38 +11:00
Christian Holler
49da770167 Bug 1413696 - Add default prefs for ASan Reporter. r=froydnj
MozReview-Commit-ID: 9a1uLem2UOQ

--HG--
extra : rebase_source : c5ebd17f06221a5045dd864d74bc7365227e4fbf
2017-11-01 22:32:19 +01:00
Jean-Yves Avenard
96d64e1c44 Bug 1392961 - Add preference to make VP9 the preferred video codec. r=jesup
Behaviour is controlled through the media.navigator.video.vp9_preferred preference.

MozReview-Commit-ID: J06ArFYNmTk

--HG--
extra : rebase_source : a25bd4783fde0acf8291ee440745a619d3fa7db8
2017-10-19 15:18:51 +02:00
Andreas Pehrson
46edadb25e Bug 1409727 - Add a mode and pref to disallow frame drops in MediaRecorder. r=SingingTree
MozReview-Commit-ID: CJBJURDn7gB

--HG--
extra : rebase_source : 248e904879dc68fcce7f041b9ebaed82e7aba9ed
2017-10-19 14:38:07 +02:00
Andreas Pehrson
0ed4ac3622 Bug 1409727 - Expose the audio node recording pref to about:config. r=jib
MozReview-Commit-ID: DbPH3umsH9v

--HG--
extra : rebase_source : 0cd5647995ea425dcaaadca5d429e4d2d1d52295
2017-10-19 14:37:13 +02:00
Nicholas Nethercote
ede7a0db1d Bug 1413085 - Inline and remove pref_SetPref(). r=glandium.
It has a single call site.

MozReview-Commit-ID: Hdt1KkG2jTV

--HG--
extra : rebase_source : 0b851491f08646fbd4d8a4862601f8cadad02522
2017-11-01 08:59:30 +11:00
Nicholas Nethercote
559a3f06ee Bug 1413085 - Make PREF_Get{CString,Int,Bool}Pref() more uniform. r=glandium.
This patch does the following.

- Reduces nesting and simplifies control flow by handling failure cases
  earlier, and makes all three functions have identical structure.

- Avoids unnecessary temporary local variables, including |rv|.

- Removes low-value comments, including some misleading ones (e.g. "This
  function will perform conversion...").

- PREF_GetCStringValue() previously did not check HasDefaultValue(), unlike the
  other two. It now does.

- PREF_GetCStringValue() now calls SetIsVoid(true) at the start, so that
  aValueOut will be Voided on all failure paths.

MozReview-Commit-ID: 2uCSv76Y8eu

--HG--
extra : rebase_source : 9ca9148ad0a5069bdd3e08aec0038216d27ea092
2017-11-01 08:55:07 +11:00
Sebastian Hengst
2181970726 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-01 00:39:58 +01:00
Nicholas Nethercote
af33aed804 Bug 1412718 (part 2) - Improve nsPrefBranch::DeleteBranch(). r=glandium.
This patch converts it to use Gecko strings instead of C strings, which makes
it much nicer.

MozReview-Commit-ID: KtRp3vaXwN5

--HG--
extra : rebase_source : c6788cbed5c4b932eb5b4119c407aea538cb1799
2017-11-01 08:28:10 +11:00
Nicholas Nethercote
89134cc30a Bug 1412718 (part 1) - Inline and remove PREF_DeleteBranch(). r=glandium.
It has a single call site.

MozReview-Commit-ID: BH7GuipEgl

--HG--
extra : rebase_source : fa13eb8be2a088b717d834686d60b4eea6b1df4d
2017-11-01 07:59:40 +11:00
Nicholas Nethercote
8bd05bfcc0 Bug 1412949 - Remove SystemMemoryReporter. r=erahm.
This was created for B2G and isn't really useful otherwise. It only works on
Linux, and it's behind the memory.system_memory_reporter pref, which is false
by default.

The patch also removes LinuxUtils.{h,cpp}, which is no longer used.

--HG--
extra : rebase_source : b97a018be11a79f83855a73b88020bfa86e60f78
2017-10-31 12:49:41 +11:00
Alessio Placitelli
5230ddc6b6 Bug 1412845 - Whitelist the "default" channel in Prferences.cpp. r=chutten
This is needed for local developer builds to enable extended
telemetry recording by default. As a consequence, other subsystems
relying on this prefs will turn on (e.g. experiments, BHR, ...).

MozReview-Commit-ID: W3RarufCdY

--HG--
extra : rebase_source : 8690e969baad1b9191ea3fef9fb7dd6e41e00de7
2017-10-31 08:53:32 +01:00
Bas Schouten
cbbc50786e Bug 1412850: Release capture drawtargets on the paint thread. r=rhunt
MozReview-Commit-ID: AD3F5DfGAkp
2017-10-30 15:50:25 +01:00
Chris H-C
84de24dd05 bug 1406391 - Lock toolkit.telemetry.enabled based on channel r=froydnj
In Unified Telemetry toolkit.telemetry.enabled controls whether we send base
collection data or extended collection. The difference is mostly in volume, not
in kind (though extended collection has a little stricter testing and monitoring
requirements).

Since the Preferences UI change in Firefox 56, users no longer have the ability
to change toolkit.telemetry.enabled. This is a good thing as for pre-release
users very few disabled extended collection, and even fewer release users
enabled it. This provides uniform collection based on channel which should
eventually net us some efficiencies.

Until then we need to align our use of the toolkit.telemetry.enabled pref with
the UI change that has already shipped. This is accomplished by locking t.t.e
to 'true' on pre-release channels and locking it to 'false' on everything else.

This doesn't apply to Android as it doesn't (yet) use Unified Telemetry. t.t.e
means something rather different there.

MozReview-Commit-ID: EOpWm8b0jWA
2017-10-30 10:47:39 -04:00
Coroiu Cristina
de62a69e14 Merge inbound to mozilla-central r=merge a=merge 2017-10-30 12:16:47 +02:00
Nicholas Nethercote
9252435548 Bug 1410794 (attempt 2) - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm.
This makes the code nicer. In particular, it removes many getter_Copies()
calls. The patch also converts a lot of nsCStrings to nsAutoCString, which will
avoid heap allocation in the common case.

The patch also renames PREF_CopyCharPref() as PREF_GetCStringPref(), because
it's actually getting a string, not a char, and that matches the existing
GetCString() and GetDefaultCString() methods. Correspondingly, it also renames
PREF_SetCharPref() as PREF_SetCStringPref().

The |aPrefName| arguments in nsIPrefBranch.idl remain as |string| because they
almost always involve passing in C string literals, and passing "foo" is much
nicer than passing NS_LITERAL_CSTRING("foo").

It's worth noting that early versions of this patch used |AUTF8String| instead
of |ACString|. But it turns out that libpref stores prefs internally as Latin1.
And |ACString| is compatible with Latin1 but |AUTF8String| isn't, because
non-ASCII Latin1 strings are not valid UTF-8!

MozReview-Commit-ID: D3f7a1Vl1oE

--HG--
extra : rebase_source : e6e4b15d6d210cfd93686f96400281f02bd1d06b
2017-10-27 10:30:33 +11:00
Sebastian Hengst
3792a177e6 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IZImXBBcbVQ
2017-10-28 10:25:57 +02:00
Phil Ringnalda
4bc2b1615d Backed out 4 changesets (bug 1408433, bug 1406391, bug 1408512) for crashing tests by touching the network contacting incoming.telemetry.mozilla.org on nightly builds
Backed out changeset 9bfd4b0927dc (bug 1408433)
Backed out changeset 555850d5107e (bug 1408512)
Backed out changeset 15d959b9123e (bug 1406391)
Backed out changeset e1f34ba9cecc (bug 1406391)

MozReview-Commit-ID: BVoGRsD73Hf
2017-10-27 21:08:27 -07:00
Chris H-C
be62507aa8 bug 1406391 - Lock toolkit.telemetry.enabled based on channel r=froydnj
In Unified Telemetry toolkit.telemetry.enabled controls whether we send base
collection data or extended collection. The difference is mostly in volume, not
in kind (though extended collection has a little stricter testing and monitoring
requirements).

Since the Preferences UI change in Firefox 56, users no longer have the ability
to change toolkit.telemetry.enabled. This is a good thing as for pre-release
users very few disabled extended collection, and even fewer release users
enabled it. This provides uniform collection based on channel which should
eventually net us some efficiencies.

Until then we need to align our use of the toolkit.telemetry.enabled pref with
the UI change that has already shipped. This is accomplished by locking t.t.e
to 'true' on pre-release channels and locking it to 'false' on everything else.

This doesn't apply to Android as it doesn't (yet) use Unified Telemetry. t.t.e
means something rather different there.

MozReview-Commit-ID: EOpWm8b0jWA
2017-10-27 10:59:36 -04:00
Xidorn Quan
b24625e376 Bug 1411532 part 1 - Add a pref for enabling stylo on chrome documents. r=bz
MozReview-Commit-ID: 7Zbh4Mf43xC

--HG--
extra : rebase_source : f9e4d0b6d1234cb8efcfbaaab2a349d2a082dd6e
2017-10-27 15:07:51 +11:00
Sebastian Hengst
5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
Nicholas Nethercote
63f0f0af1c Bug 1411480 (attempt 2) - Change PrefSaveData's element type. r=glandium.
Because nsCString is nicer than UniqueFreePtr<char>.

The patch also streamlines pref_savePrefs(). And also changes StrEscape() to
always put quotations around the result, because that's needed in both call
sites.

MozReview-Commit-ID: HT7HZz4QiSN

--HG--
extra : rebase_source : 442bb6002e004803a9ecb637239a000f11ec5774
2017-10-26 16:48:11 +11:00
Nicholas Nethercote
bfdd7e8e70 Bug 1411480 (attempt 2) - Simplify pref_HashPref()'s workings. r=glandium.
First, the patch removes the return values from PrefTypeFlags::Set*(). They
allow chained calls, but they're barely used and they just make the code harder
to read.

Second, the patch changes pref_SetValue() to not modify and return the pref
flags. It's clearer if the flags changing is done separately. This requires
passing pref_SetValue() the old type instead of the flags.

MozReview-Commit-ID: HZVS2TIlBIY

--HG--
extra : rebase_source : 6638244214cda15ceae5a1930659aed434d8261b
2017-10-26 16:36:17 +11:00
Nicholas Nethercote
7a6dc9eed0 Bug 1411480 (attempt 2) - Make CallbackNode::mDomain const. r=glandium.
MozReview-Commit-ID: EvLC5FrMyKy

--HG--
extra : rebase_source : f31ddbc01716a539ad3a92154de1a6a49ad9a42a
2017-10-26 16:27:12 +11:00
Nicholas Nethercote
6e67b39c9c Bug 1411480 (attempt 2) - Make PrefValue::mStringVal const. r=glandium.
This makes it clear that the stored string values are never modified.

It requires some const_casts to free the strings, but that feels like an ok
trade-off.

MozReview-Commit-ID: JikBT3uwpfq

--HG--
extra : rebase_source : 1720969ba2c1ae245dff91a6d3a85d48fb669ced
2017-10-26 16:27:09 +11:00
Nicholas Nethercote
ad06d5cebc Bug 1411480 (attempt 2) - Use |private| instead of |protected| in nsPrefBranch. r=glandium.
There's not much use using |protected| in a |final| class.

MozReview-Commit-ID: IECyfNGZsL5

--HG--
extra : rebase_source : e734b360c18e5e040bea186d5aedf91137711861
2017-10-26 16:26:24 +11:00
Nicholas Nethercote
2c49c63d40 Bug 1411480 (attempt 2) - Remove pref_savePrefs()'s argument. r=glandium.
It's always gHashTable, and all the other functions in this file work directly
on gHashTable rather than taking a parameter.

MozReview-Commit-ID: BDCEvcMlo8P

--HG--
extra : rebase_source : 8f136c100f2a4f7b2b34cfa884b8cc91c2d80e3a
2017-10-26 16:26:24 +11:00
Jeremy Chen
ce49bc7b7c Bug 1411517 - stylo: "layout.css.stylo-blocklist.enabled" pref's default value should be false. r=xidorn
At present, the "layout.css.stylo-blocklist.blocked_domains" pref is empty. It
is probably meaningless to set "layout.css.stylo-blocklist.enabled" pref to true
by default. We can set "layout.css.stylo-blocklist.enabled" pref to true by the
styloblocklist system add-on once the "layout.css.stylo-blocklist.blocked_domains"
pref is non-empty.

MozReview-Commit-ID: 2B5JnGEafLo

--HG--
extra : rebase_source : 7b694a2cbe70d2d09c1a5c2c2e4c6eec31f39a1e
2017-10-26 22:19:08 +02:00
Sebastian Hengst
5848bd39ab Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 26KLqf6YOiM
2017-10-27 00:10:27 +02:00
Sebastian Hengst
b181c484ad merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LcCWQzgwIBi
2017-10-26 23:57:40 +02:00
Kris Maglione
cbb83dfe9a Bug 1409249: Follow-up: Fix libjar ref counting bustage. r=bustage
MozReview-Commit-ID: IbazBuzLGvN

--HG--
extra : rebase_source : a8f9c3562868b190ffa336cb306903c5608a4f5f
2017-10-25 23:05:02 -07:00
Nicholas Nethercote
5f344fea70 Bug 1411480 (attempt 2) - Remove the machinery for choosing the dirty callback. r=glandium.
It's unnecessarily general, because we only ever use
Preferences::DirtyCallback() as the callback.

And because it's no longer a callback, the patch renames DirtyCallback() as
HandleDirty().

MozReview-Commit-ID: Hl50dcxfVQq

--HG--
extra : rebase_source : 5807d2ed650466f85cd7325f2adccdc177ccb4d2
2017-10-26 16:14:01 +11:00
Nicholas Nethercote
0416bcac82 Bug 1411480 (attempt 2) - Inline and remove PREF_GetPrefType(). r=glandium.
It has a single call site.

MozReview-Commit-ID: o5CwR8Od7o

--HG--
extra : rebase_source : 85663f6414ae7214d2ba32a0bb3b3166da2c89c5
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
9e821ded90 Bug 1411480 (attempt 2) - Inline and remove pref_[SG]etInitPhase(). r=glandium.
They both have a single use.

MozReview-Commit-ID: 4Jj64B6NV0o

--HG--
extra : rebase_source : 19c1d93393688daee5b7670be241785639df81d2
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
3418db65be Bug 1411480 (attempt 2) - Inline and remove pref_SetWatchingPref(). r=glandium.
It's simple enough that having a separate function isn't helpful.

MozReview-Commit-ID: Ke9BIfp9yHU

--HG--
extra : rebase_source : 57aee451b8fd3450da4a604cefbf9fafda894b1c
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
dc68184056 Bug 1411480 (attempt 2) - Inline and remove the parser's pref_DoCallback() function. r=glandium.
Preferences.cpp has two functions named pref_DoCallback(). One of them has a
single use in the parser. This patch inlines that single use to remove the name
duplication.

MozReview-Commit-ID: HnyteQ0N5M1

--HG--
extra : rebase_source : 37a34f3fbe866eee71a7bf0bba07d9d67cc8c81d
2017-10-26 15:32:15 +11:00
Kris Maglione
257d9118dc Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj
Right now, NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR expects singleton
constructors to return already-addrefed raw pointers, and while it accepts
constructors that return already_AddRefed, most existing don't do so.

Meanwhile, the convention elsewhere is that a raw pointer return value is
owned by the callee, and that the caller needs to addref it if it wants to
keep its own reference to it.

The difference in convention makes it easy to leak (I've definitely caused
more than one shutdown leak this way), so it would be better if we required
the singleton getters to return an explicit already_AddRefed, which would
behave the same for all callers.


This also cleans up several singleton constructors that left a dangling
pointer to their singletons when their initialization methods failed, when
they released their references without clearing their global raw pointers.

MozReview-Commit-ID: 9peyG4pRYcr

--HG--
extra : rebase_source : 2f5bd89c17cb554541be38444672a827c1392f3f
2017-10-16 21:08:42 -07:00
Phil Ringnalda
535f8401d0 Backed out 11 changesets (bug 1411480) for libpref xpcshell test failures
Backed out changeset 0f266ffacf0d (bug 1411480)
Backed out changeset 75212b4a8c0a (bug 1411480)
Backed out changeset 0c807a8e8b29 (bug 1411480)
Backed out changeset 21324f73db0c (bug 1411480)
Backed out changeset f7de6fa0ef2c (bug 1411480)
Backed out changeset b7cdbe5153fa (bug 1411480)
Backed out changeset 8a66ec3e8338 (bug 1411480)
Backed out changeset 3fdf2ac7762d (bug 1411480)
Backed out changeset eaa177ef5f60 (bug 1411480)
Backed out changeset e87ba9542cf8 (bug 1411480)
Backed out changeset f1cf84a50ebc (bug 1411480)

MozReview-Commit-ID: GEVRPZp5eSH
2017-10-25 20:03:25 -07:00
Nicholas Nethercote
14790e76d7 Bug 1411480 - Make CallbackNode::mDomain const. r=glandium.
MozReview-Commit-ID: EvLC5FrMyKy

--HG--
extra : rebase_source : d5998326dd40365903554094b9038248095020dc
2017-10-26 12:29:41 +11:00
Nicholas Nethercote
9222ab2401 Bug 1411480 - Make PrefValue::mStringVal const. r=glandium.
This makes it clear that the stored string values are never modified.

It requires some const_casts to free the strings, but that feels like an ok
trade-off.

MozReview-Commit-ID: JikBT3uwpfq

--HG--
extra : rebase_source : e611e57de4f059275ae2908f7300065cf953461d
2017-10-26 12:29:34 +11:00
Nicholas Nethercote
9702633811 Bug 1411480 - Change PrefSaveData's element type. r=glandium.
Because nsCString is nicer than UniqueFreePtr<char>.

The patch also streamlines pref_savePrefs(). And also changes StrEscape() to
always put quotations around the result, because that's needed in both call
sites.

MozReview-Commit-ID: HT7HZz4QiSN

--HG--
extra : rebase_source : f8d26a8c9f7ea911272113efc56744df639c5ccf
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
d7b5b4b246 Bug 1411480 - Use |private| instead of |protected| in nsPrefBranch. r=glandium.
There's not much use using |protected| in a |final| class.

MozReview-Commit-ID: IECyfNGZsL5

--HG--
extra : rebase_source : bc9597ee45583e809f89f7e558cc325460390f98
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
e52452101f Bug 1411480 - Remove pref_savePrefs()'s argument. r=glandium.
It's always gHashTable, and all the other functions in this file work directly
on gHashTable rather than taking a parameter.

MozReview-Commit-ID: BDCEvcMlo8P

--HG--
extra : rebase_source : e5d10e42401136a9a82d665d9717cf71ecf7e4ae
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
f357e38587 Bug 1411480 - Simplify pref_HashPref()'s workings. r=glandium.
First, the patch removes the return values from PrefTypeFlags::Set*(). They
allow chained calls, but they're barely used and they just make the code harder
to read.

Second, the patch changes pref_SetValue() to not modify and return the pref
flags. It's clearer if the flags changing is done separately. This requires
passing pref_SetValue() the old type instead of the flags.

MozReview-Commit-ID: HZVS2TIlBIY

--HG--
extra : rebase_source : 32950f00975f7d9df63fa0af1c36e82b58516245
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
74915ed170 Bug 1411480 - Remove the machinery for choosing the dirty callback. r=glandium.
It's unnecessarily general, because we only ever use
Preferences::DirtyCallback() as the callback.

And because it's no longer a callback, the patch renames DirtyCallback() as
HandleDirty().

MozReview-Commit-ID: Hl50dcxfVQq

--HG--
extra : rebase_source : f453d31215de3fdb0c5b6176becf2669e7ad55f1
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
21290f6159 Bug 1411480 - Inline and remove PREF_GetPrefType(). r=glandium.
It has a single call site.

MozReview-Commit-ID: o5CwR8Od7o

--HG--
extra : rebase_source : 2f24a0bc7fa65af8cb60b820982c8d6cb8ee5298
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
5eeb08fa63 Bug 1411480 - Inline and remove pref_[SG]etInitPhase(). r=glandium.
They both have a single use.

MozReview-Commit-ID: 4Jj64B6NV0o

--HG--
extra : rebase_source : 51297caa052281544383bc76f120b4b62b686015
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
49e302c18e Bug 1411480 - Inline and remove pref_SetWatchingPref(). r=glandium.
It's simple enough that having a separate function isn't helpful.

MozReview-Commit-ID: Ke9BIfp9yHU

--HG--
extra : rebase_source : de1518544ddb28185635628c33d356ab07480c1c
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
529db19e62 Bug 1411480 - Inline and remove the parser's pref_DoCallback() function. r=glandium.
Preferences.cpp has two functions named pref_DoCallback(). One of them has a
single use in the parser. This patch inlines that single use to remove the name
duplication.

MozReview-Commit-ID: HnyteQ0N5M1

--HG--
extra : rebase_source : 93f963d3ba445c1c3a482fa95dbab33e57dae188
2017-10-25 10:22:38 +11:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Miko Mynttinen
e61db8e3f3 Bug 1411248 - Add some early exit heuristics to avoid complicated partial display list builds r=mattwoodrow
MozReview-Commit-ID: BRYYvGHptbw

--HG--
extra : rebase_source : e740e868bf6f1ce366286a4e8a3db8f1918b4160
extra : source : df60d43e89285978ca7ba6bab5a5c7ef49ffaf92
2017-10-24 14:54:16 +02:00
Attila Craciun
fb931a6ca7 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE.
--HG--
extra : amend_source : ebff7913d049184412278b01281ae44a483d63c3
2017-10-25 12:34:44 +03:00
Attila Craciun
7bcf901c3b Merge inbound to mozilla-central r=merge a=merge 2017-10-25 12:30:28 +03:00
Nicholas Nethercote
ce583d5ebe Bug 1410765 (part 3) - Remove nsPrefBranch::RemoveObserverFromMap declaration. r=glandium.
--HG--
extra : rebase_source : ab40d0f3430c9259a4fa4cc7fed3f114a946c158
2017-10-25 10:22:37 +11:00
Nicholas Nethercote
c67dabae5c Bug 1410765 (part 2) - Redo clang-format on libpref/. r=glandium.
--HG--
extra : rebase_source : 7bf014830baec7abfab51f71ac89a5bc3bec1860
2017-10-25 10:22:37 +11:00
Nicholas Nethercote
91f9b1d8e1 Bug 1410765 (part 1) - Remove unused PrefTypeFlags values. r=glandium.
--HG--
extra : rebase_source : f5d4ac642ddbfc720891c7a72cf735e0f77a460a
2017-10-25 10:22:37 +11:00
Masayuki Nakano
ad20ed277d Bug 1410988 - Add a debug mode pref to emulate odd touchpad utils which give focus to window under mouse cursor when user tries to scroll the content r=jimm
Some odd touchpad utils give focus to window under mouse cursor when user tries
to scroll the content with swiping or something.

This is really odd behavior because some windows like popup windows doesn't
want focus. However, such ones do actually. For making easier to check such
device's behavior, we should have a pref to emulate such behavior.

MozReview-Commit-ID: 6euwpHn7blf

--HG--
extra : rebase_source : cc23f08f422f25f2851404696e06e069c7936186
2017-10-19 02:28:37 +09:00
Sebastian Hengst
24b7b2eb7c merge mozilla-central to autoland. r=merge a=merge 2017-10-24 23:59:14 +02:00
Sebastian Hengst
dbf343872c merge mozilla-central to autoland. r=merge a=merge 2017-10-24 11:54:19 +02:00
Sebastian Hengst
31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Ben Kelly
d64c111b67 Bug 1409761 Create dom.serviceWorkers.disable_open_click_delay and set it to a larger value on fennec. r=smaug 2017-10-23 14:24:31 -04:00
Ethan Lin
38b3c273db Bug 1410824 - Remove pref 'gfx.webrendest.enabled'. r=kats
MozReview-Commit-ID: Ipwjitb7kIs

--HG--
extra : rebase_source : 34cfbdeac331948b96150fc86c0d855c7604fb1d
2017-10-23 10:10:04 +08:00
Sebastian Hengst
d30462037f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BcJNE0poEYk
2017-10-23 11:39:19 +02:00
Makoto Kato
e5ecd5213c Bug 1407869 - Use Malgun Gothic as default on Korean on Nightly r=jfkthame
MozReview-Commit-ID: 7PxPnBfXF7n
2017-10-12 16:55:42 +09:00
Simon Van Accoleyen
dedbda00a2 Bug 1406193 - Remove last remaining SocialAPI bits. r=dao
MozReview-Commit-ID: E5GKq2CYclF
2017-10-21 18:38:17 +02:00
Boris Zbarsky
6a07397359 Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)
983bb1b63a Bug 1404181 - Part 12: Add pref for retained display lists (starting with it disabled). r=mstange
MozReview-Commit-ID: FgASuaoYMuc

--HG--
extra : rebase_source : af1bfd3bb4be63aa6f6c27629b91c1aae924ad20
2017-09-28 13:42:15 +13:00
Phil Ringnalda
e4524a80b9 Backed out changeset fd0492c07da0 (bug 1409449) for browser-chrome, xpcshell and marionette bustage
CLOSED TREE

MozReview-Commit-ID: IcOEJ0l1yeJ
2017-10-25 07:38:39 -07:00
Dragana Damjanovic
7120f32f23 Bug 1409449 - Do not show auth-dialog for triggeringPrincipal==SystemPrincipal. r=ckerschb, r=valentin, r=francois 2017-10-25 08:54:31 -04:00
Sebastian Hengst
74800ca743 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5UT11zZbl2e
2017-10-25 13:01:33 +02:00
Andrea Marchesini
ec610d5b7e Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-24 14:38:23 +02:00
Zibi Braniecki
0786d0892d Bug 1387332 - Remove leftover ENABLE_INTL_API conditions. r=jfkthame
MozReview-Commit-ID: CMvCR9ZWuQw

--HG--
extra : rebase_source : 5341a4258a82d7596ebcb5789b6fc9bad69d4053
2017-10-29 09:07:19 -07:00
Phil Ringnalda
a6b525b33e Merge m-c to autoland
MozReview-Commit-ID: K1ZFkTVIF5B
2017-10-27 21:42:38 -07:00
Attila Craciun
4d25367716 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-10-26 12:34:39 +03:00
Chris Peterson
f38368c9cc Bug 1160368 - Part 1: Add flag to treat third-party cookies set over nonsecure HTTP as session cookies. r=jdm
"Nonsecure HTTP" here just means regular, not-HTTPS HTTP. It doesn't mean HTTPS without the `Secure` cookie flag. Honor the expiration time of third-party cookies set over HTTPS, whether or not they have the `Secure` cookie flag. If a third-party cookie is set over HTTPS and then later sent in nonsecure HTTP request (which is allowed for cookies without the `Secure` cookie flag), the cookie won't be turned into a session cookie unless the nonsecure HTTP response sets a new cookie value.

This feature is controlled by the pref "network.cookie.thirdparty.nonsecureSessionOnly".

MozReview-Commit-ID: HlCg21JyvNC

--HG--
rename : extensions/cookie/test/unit/test_cookies_thirdparty_session.js => extensions/cookie/test/unit/test_cookies_thirdparty_nonsecure_session.js
extra : source : d1be2e4265201efd3ee93e965ac68561f548fd05
extra : intermediate-source : f5b382fa1b70e30a907b1f10d74f8c0c6dff344e
2017-02-16 19:27:49 -08:00
Liang-Heng Chen
b4603106d0 Bug 1399520 - Avoid race condition. r=dragana
MozReview-Commit-ID: 6Pd2HXqBgX4
2017-10-19 22:29:41 -04:00
Sebastian Hengst
7beb660397 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-19 11:54:07 +02:00
Sebastian Hengst
bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
Dan Glastonbury
05de18af54 Bug 1407487 - P2: Enable cubeb remoting on Nightly. r=kinetik
MozReview-Commit-ID: AKlAsy5nlgL
2017-10-19 18:02:52 +13:00
Nicholas Nethercote
ddf867ccad Bug 1409635 (part 2) - Fix up nsIPrefLocalizedString. r=froydnj.
nsIPrefLocalizedString is meant to be a wrapper for nsISupportsString,
basically identical but with a different identifier. But it's not a
sub-interface of nsISupportsString. Instead it (almost) duplicates
nsISupportsString's internals.

Specifically, nsISupportsString has `attribute AString data`, resulting in
these C++ methods:

> NS_IMETHOD GetData(nsAString& aData)
> NS_IMETHOD SetData(const nsAString& aData)

nsIPrefLocalizedString has `attribute wstring data`, resulting in these C++
methods:

> NS_IMETHOD GetData(char16_t** aData)
> NS_IMETHOD SetData(const char16_t* aData)

Then we have nsPrefLocalizedString, the concrete subclass of
nsIPrefLocalizedString. It implements the AString methods via
NS_FORWARD_NSISUPPORTSSTRING, which forwards to mUnicodeString. It also
implements the wstring methods explicitly, and they just call the AString
methods. It's all a bit of a mess.

(Both interfaces also have `wstring toString()`. The forwarding works more
smoothly for that method.)

This patch changes nsIPrefLocalizedString so it is a trivial sub-interface of
nsISupportsString. This change eliminates the need for the wstring methods, so
the patch removes them as well. The net result is we have less code, and fewer
conversions between C strings and Gecko strings. The patch also merges the
nsISupportsString and nsIPrefLocalizedString cases in
nsPrefBranch::SetComplexValue(), because they are now identical. (The
nsISupportsString and nsIPrefLocalizedString cases in
nsPrefBranch::GetComplexValue() remain distinct; indeed, that's the whole
reason for having them as separate interfaces.)
2017-10-18 16:51:56 +11:00
Nicholas Nethercote
380feab757 Bug 1409635 (part 1) - Remove nsIPrefLocalizedString::setDataWithLength. r=froydnj.
It's unused.
2017-10-18 16:39:52 +11:00
Nicholas Nethercote
78030c0e7b Bug 1409598 - Change nsIXPCScriptable::className and nsIClassInfo::{contractID,classDescription} from string to AUTF8String. r=froydnj.
This lets us replace moz_xstrdup() of string literals with AssignLiteral(),
among other improvements.

--HG--
extra : rebase_source : 9994d8ccb4f196cf63564b0dac2ae6c4370defb4
2017-10-18 13:17:26 +11:00
Jeremy Chen
0f51b3f159 Bug 1409958 - reset stylo blocklist to empty string on Nightly for testing. r=heycam
The layout.css.stylo-blocklist.blocked_domains pref is set to "arewestyloyet.rs"
on Nightly, but empty string on Beta. Since we're going to QA the styloblocklist
add-on in Bug 1407911, we make the prefs aligned in both Beta and Nightly in this
patch.

MozReview-Commit-ID: HoleJvVYm7o

--HG--
extra : rebase_source : cb8104f3d7fdb99fe0ea6ee84781c4b421a8f421
2017-10-19 11:50:53 +08:00
Nicholas Nethercote
b94945fed2 Bug 1407494 (follow-up) - Revert operator new use to malloc(), to pair with free(). r=glandium.
--HG--
extra : rebase_source : 5fd9221d7a0509e0c094767e66661be0d9ff1688
2017-10-18 16:31:23 +11:00
Blake Kaplan
d85edbdb89 Bug 1406212 - Default to e10s on with 4 content processes. r=Felipe
MozReview-Commit-ID: CtBXBOgTuki

--HG--
extra : rebase_source : 5c4472e0c798f618f7a3ce644d506319b6ceed3c
2017-09-28 15:50:15 -07:00
Masayuki Nakano
16fd3a84a4 Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event.  Therefore, we don't need to use this new
default action on macOS.  Additionally, old default action with Shift key,
navigating history, is moved to with Alt key.  This makes same settings between
macOS and the others.  So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).

For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events.  This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.

So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally.  This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.

MozReview-Commit-ID: E4X3yZzLEAl

--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
Phil Ringnalda
cf776f840e Backed out 2 changesets (bug 1407487) for Android and hazard build bustage and Linux webspeech test timeouts
CLOSED TREE

Backed out changeset 806976ac38b8 (bug 1407487)
Backed out changeset 0ff7dc9aebd9 (bug 1407487)

MozReview-Commit-ID: HLDEXTRvG7l
2017-10-17 19:49:43 -07:00
Dan Glastonbury
0d91ecb5d0 Bug 1407487 - P2: Enable cubeb remoting on Nightly. r=kinetik
MozReview-Commit-ID: AKlAsy5nlgL

--HG--
extra : rebase_source : 66792537e96929b10d4b0980f6e09e2e075299cc
2017-10-12 10:36:01 +10:00
Sebastian Hengst
34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
3e2548c099 Bug 1393691 - timeout connection if tls takes too long. r=mcmanus 2017-10-17 14:06:45 +02:00
Sebastian Hengst
0fde5cb6b5 merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +02:00
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Kris Maglione
635fc0e1ae Bug 1405286: Part 1 - Allow retrieving the delivery target from retargetable requests. r=dragana
After data delivery for a request has been retargeted, there's no reliable way
to get the appropriate event target to re-dispatch data events after
asynchronous processing.


While it's technically possible to retrieve the current thread from
OnDataAvailable callbacks and re-use that for later dispatch, that approach
has some issues:

1) It's not currently possible to reliably map the current thread to the
thread pool that owns it. That means that if data delivery is being targetted
to a thread pool, attempts to redispatch events to the previous delivery
thread might lead to long delays when one thread in a pool is blocked.

2) If a filter wishes to dispatch data events to the wrapped listeners before
it's recieved any data (as extensions StreamFilters sometimes do), there's no
way to determine the proper event target without waiting for initial data to
be received.


Simply returning the correct event target from the request solves both of
these problems.

MozReview-Commit-ID: CJxq7O4399R

--HG--
extra : rebase_source : db2f659ecad16daafdbcc108d7b1a51ea1af31f9
2017-10-14 18:30:38 -07:00
Ethan Lin
316e4cb704 Bug 1405957 - Part2. Remove the unnecessary GetLayerState in CreateWebRenderCommands and adjust the related pref type/value. r=kats
MozReview-Commit-ID: E8JvuOj6JtL

--HG--
extra : rebase_source : 4893c0d3cc6f99d4f2a6c920d8fc07de4c36324c
2017-10-05 14:42:28 +08:00
Ethan Lin
63bdc855fa Bug 1405957 - Part1. Remove advanced filter layer. r=kats
This pref is only for webrender layers mode. So we should remove it.

MozReview-Commit-ID: AxPLnc0uO1U

--HG--
extra : rebase_source : daecac41200be2244b0c6dccb66e0d61d7634691
2017-10-05 14:34:37 +08:00
Boris Zbarsky
32ad6dfdd7 Back out bug 1354730 to reopen CLOSED TREE.
MozReview-Commit-ID: RzUofi384C
2017-10-16 14:34:23 -04:00
Boris Zbarsky
211cfa1cfd Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Sebastian Hengst
a984558fa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: K49FVRdOww8
2017-10-16 10:55:46 +02:00
Nicholas Nethercote
6164e7abd0 Bug 1408231 - Remove unnecessary forward declarations and add |static| where appropriate. r=glandium.
This is possible now that all of libpref is in a single .cpp file.

For some functions, this required moving the comment from the forward
declaration to the definition.

MozReview-Commit-ID: 7XjHENZkc61

--HG--
extra : rebase_source : adc61d0463769c311915139f6e98c2f3187a2d21
2017-10-13 15:24:59 +11:00
Jeremy Chen
2fd13fd9b0 Bug 1407098 - put a nightly only domain in stylo blocklist for testing. r=xidorn
Thanks to xidorn's donation, now we can do some real domain testings for stylo
blocklist mechanism. Note that we only add arewestyloyet.rs domain in Nightly
channel for testing, and the domain should be removed in other channels.

MozReview-Commit-ID: Io351w6sg5b

--HG--
extra : rebase_source : 339fdcf754c41f79ef03324697695b8e44a5d261
2017-10-14 16:54:32 +08:00
Phil Ringnalda
ecdb97c7dc Backed out 6 changesets (bug 1406212) for mass reftest failures
CLOSED TREE

Backed out changeset 1c9fe35de901 (bug 1406212)
Backed out changeset 1acc4c270bf9 (bug 1406212)
Backed out changeset d9ea9cff849f (bug 1406212)
Backed out changeset 5bf2f08f01f9 (bug 1406212)
Backed out changeset 1a050da96e9e (bug 1406212)
Backed out changeset 1b5e78113f06 (bug 1406212)

MozReview-Commit-ID: LizV8CD4IY4
2017-10-12 19:45:23 -07:00
Nicholas Nethercote
ab27f10405 Bug 1407494 (part 9) - Merge PREF_RegisterCallback() and PREF_RegisterPriorityCallback. r=glandium.
This avoids some code duplication.

MozReview-Commit-ID: 2Cb4YtL5RSu

--HG--
extra : rebase_source : 76f2146e8f465608371b8650d96494626f0bee82
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
475691af83 Bug 1407494 (part 8) - Remove forward declaration of PrefSetting. r=glandium.
It's declared in Preferences.h, which Preferences.cpp includes.

MozReview-Commit-ID: 7bjcgsrbfGl

--HG--
extra : rebase_source : ea932402b7eaae876fcba2c0cfdfad2bc728cb8d
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
7480060898 Bug 1407494 (part 7) - Replace malloc uses with operator new. r=glandium.
MozReview-Commit-ID: 5mNDX95Cexn

--HG--
extra : rebase_source : d355f6fbd8c41c84a428cf879fa4f84fd08193a5
2017-10-13 15:24:59 +11:00
Nicholas Nethercote
e4a4426ba0 Bug 1407494 (part 6) - Remove GetContentChild(). r=glandium.
We can just use XRE_IsContentProcess() instead, because the pointer return
value is only ever used in a bool context.

MozReview-Commit-ID: 6R4Bwf1cnKU

--HG--
extra : rebase_source : 392e01cfc145f05783c4bdc7aa08486ef07982be
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
39ffd37e3d Bug 1407494 (part 5) - Replace uses of NS_strdup(), PL_strdup(), PL_strfree() with more standard functions. r=glandium.
MozReview-Commit-ID: FPDUZZqkHqg

--HG--
extra : rebase_source : fbe0e3c4c5f9c18060b6609ac94eb9dfe34b6e77
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
003d9a950d Bug 1407494 (part 4) - Remove have_PrefChangedFunc_typedef. r=glandium.
This is detritus from old changes that can be cleaned up now.

The patch removes the declaration of PrefChangedFunc from Preferences.cpp
because it's also in Preferences.h, which is included by Preferences.cpp.

The patch also removes the part of the comment about passing a non-zero result
because it's clearly false -- the callback has no return value.

MozReview-Commit-ID: 72cdauYsRUt

--HG--
extra : rebase_source : 84cbbcea3b0ce3242c629e428be1e81be9cb5792
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
89d51cf936 Bug 1407494 (part 3) - Remove PR_ALIGN_OF_WORD and WORD_ALIGN_MASK. r=glandium.
Their last use was removed in bug 200524, 14.5 years ago.

MozReview-Commit-ID: FoM8KpJNA7m

--HG--
extra : rebase_source : 0c0ffb90a5e8d23cead729b71563ad2249102c96
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
151b37fd07 Bug 1407494 (part 2) - Remove TEST_PREFREAD. r=glandium.
It's unclear how to compile it; it isn't a proper test, because it just prints
stuff out without explicitly checking anything; and I bet nobody has run it in
a long time.

MozReview-Commit-ID: 48s7pCy7HC6

--HG--
extra : rebase_source : 39d3ba85bd9e45e68b7c7c4cd27b5d7a5a9272b0
2017-10-13 15:24:58 +11:00
Nicholas Nethercote
b7cc1a8c68 Bug 1407494 (part 1) - Remove C-isms. r=glandium.
MozReview-Commit-ID: C2u2JpTkbkn

--HG--
extra : rebase_source : 7ebb89b57c00561e13bdd5b02196ef0b06264126
2017-10-13 15:24:58 +11:00
Blake Kaplan
43ff4cea89 Bug 1406212 - Default to e10s on with 4 content processes. r=Felipe
MozReview-Commit-ID: CtBXBOgTuki

--HG--
extra : rebase_source : 851c31405ec03ece1390bc338b6bd18ea39ba7f8
2017-09-28 15:50:15 -07:00
Sebastian Hengst
87cd48824a merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Sebastian Hengst
5c00b8540d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AlcL6XYDkf
2017-10-12 23:58:31 +02:00
Dragana Damjanovic
dc118fd91d Bug 1405761 - If the preload pref is disabled rel=preload should be shown as not supported. r=smaug
--HG--
extra : rebase_source : 3e32d5d8beceedca7ab3eaaf528385f4e73f1164
2017-10-11 03:20:00 -04:00
Sebastian Hengst
4c169d4680 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-12 12:00:22 +02:00
JW Wang
4ab061994a Bug 1407886 - enable OMT data delivery. r=gerald
Try looks good. Let's turn it on for more tests on Nightly.

MozReview-Commit-ID: 21mQfRmOYag

--HG--
extra : rebase_source : 8f51bd517816deba68dad511a9f859ab1df25baf
extra : intermediate-source : 5150eb8b0826be6578b2d8c68d6d864cc9f55f25
extra : source : 63542cbae67928b936f0472b8dca1f7035759115
2017-10-06 17:46:53 +08:00
Daosheng Mu
9210bba13b Bug 1392216 - Part 3: VRPuppet dispatch submit frame result to VRListener thread; r=kip
MozReview-Commit-ID: K5ivNAkB89I

--HG--
extra : rebase_source : d4a87c12f5268a7aebe68e81c58c753eb60bfbc8
2017-10-06 17:56:53 +08:00
Nils Ohlmeier [:drno]
660bb85308 Bug 1407492: remove aec log dir user pref. r=mjf
MozReview-Commit-ID: 5oNuOrSHY2y

--HG--
extra : rebase_source : 4fdf9a7cd4e88dde6b7ac583007ae90fed7fb0fe
2017-10-10 19:43:37 -07:00
Jon Coppeard
fa34bb9ca6 Bug 1406065 - Make JSGC_MAX_MALLOC_BYTES param the same in the shell as the browser r=sfink 2017-10-11 13:22:09 +01:00
Matt Brubeck
0875e0c11c Bug 1407014 - Fix typo in CyprtoAPI_VerifySignature function name. r=rstrong
MozReview-Commit-ID: 9K61LOVzTrJ

--HG--
extra : rebase_source : f8140a8dc999c1c951d781c0f0edb42df712df3f
2017-10-09 11:57:43 -07:00
Nicholas Nethercote
0e7051b93c Bug 1406281 - Restyle CallbackAndVarCacheOrder.cpp. r=erahm.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: ApLqaQ3KZ5S

--HG--
extra : rebase_source : 4b4ac2f7f05eaa39181005655a62234275b96ff6
2017-10-08 07:46:07 +11:00
Nicholas Nethercote
3c3c516563 Bug 1406280 - Restyle modules/libpref/*.h. r=erahm.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: 6S6yUDXQJtE

--HG--
extra : rebase_source : f7f52bd4c2fe9de1d5b6d99bf2daf841e511d913
2017-10-08 07:46:07 +11:00
Nicholas Nethercote
b22e211a7f Bug 1406205 - Restyle Preferences.cpp. r=felipe.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: G5ipKb1w5L0

--HG--
extra : rebase_source : 232cae37df4d6d41256c76d0616df5d1c53786fd
2017-10-06 10:06:47 +11:00
Sebastian Hengst
c2d6023454 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Andreas Farre
3113c32033 Bug 1377766 - Enable budget throttling by default. r=bkelly 2017-10-09 05:16:00 -04:00
Sebastian Hengst
57b1e21136 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Lbq8F50U0Nf
2017-10-08 11:44:16 +02:00
Sebastian Hengst
3c8747ae61 merge mozilla-central to autoland. r=merge a=merge 2017-10-07 10:52:29 +02:00
Sebastian Hengst
b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Kartikaya Gupta
123ea35128 Bug 1406008 - Add pref for just dumping the parent process display list. r=jrmuizel
MozReview-Commit-ID: Fdm2f5jbJ4z

--HG--
extra : rebase_source : c24893dc67e40a34ec03bcc36322c88671fe0fbf
2017-10-06 09:29:45 -04:00
Xidorn Quan
e9accd246b Bug 1406277 - Completely remove xml:base for style attribute. r=bz
This commit removes:
* layout.css.style-attr-with-xml-base.disabled pref
* deprecation XMLBaseAttributeForStyleAttr
* code path for getting base URI of style attr considering xml:base

MozReview-Commit-ID: 1w96eqhHPab

--HG--
extra : rebase_source : 95e33da698ce0cfc9a44de8bc0d63c3fa4634644
2017-10-06 15:45:33 +11:00
Nicholas Nethercote
3acb3b84ae Bug 1405935 - Restyle nsPref*.cpp. r=felipe.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: 5wTM0nUeuPK

--HG--
extra : rebase_source : 35f0c24b9dcae5d333a27dbcd29c85a538bb8c0a
2017-10-06 10:06:43 +11:00
Nicholas Nethercote
7020a5b5b7 Bug 1405908 - Restyle prefapi.cpp. r=glandium.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: 2cORYQwCeP2

--HG--
extra : rebase_source : 8982e1992290547636db263cd7ff1fadcb8f1b37
2017-10-06 09:18:58 +11:00
Nicholas Nethercote
36a1dd448f Bug 1405598 - Restyle prefread.cpp. r=glandium.
This is a mixture of clang-format and manual restyling.

MozReview-Commit-ID: DKyADDJl5G8

--HG--
extra : rebase_source : 0d1d13721d1f88d871ef99e509204fe02464bdec
2017-10-05 13:58:44 +11:00
JW Wang
b2cbe2833f Bug 1405962. P1 - give MediaCache a thread on which we will run data callbacks from the HTTP channel. r=gerald
MozReview-Commit-ID: Av7bFGx9SW

--HG--
extra : rebase_source : 296a6137ee63328e11eb11a8ee3430979cf8e5a8
extra : intermediate-source : 9634a9cd63e188799fe691cfe7108a173db503d5
extra : source : 43860a593eb810088adac150c0fa85cf8133ce17
2017-09-13 16:51:12 +08:00
Wes Kocher
9408094d14 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FnOGO7LJHCB
2017-10-04 16:45:36 -07:00
Jeff Muizelaar
5a5f5bcef6 Bug 1405778. Remove largely unneeded call to nsDisplayBackgroundColor::GetLayerState. r=kats
Text clipping is the only thing we don't handle and it's better to just have this inline.
2017-10-04 17:03:16 -04:00
Valentin Gosu
3fba909015 Bug 1403926 - Add pref for PerformanceNavigationTiming r=baku
MozReview-Commit-ID: 9f6fcCk8mh

--HG--
extra : rebase_source : 0a1252a7cff2cfaec8f0ab5f8ffa755a0a8a4b5e
2017-10-04 02:48:33 +02:00
Jeremy Chen
db85457d66 Bug 1403077 - implement the stylo blocklist mechanism. r=heycam
In this patch, we read the stylo blocklist into nsLayoutUtils's global static
variable during nsLayoutUtils::Initialize(). So, we can decide if we should
fallback to use Gecko backend while updating style backend for a document.

We add "layout.css.stylo-blocklist.blocked_domains" and
"layout.css.stylo-blocklist.enabled" to ContentPrefs.cpp because they are read
very early (during nsLayoutUtils::Initialize).

MozReview-Commit-ID: 8c4n6m9dYD8

--HG--
extra : rebase_source : ca81cd57980d98b9b73f18bb03a8035b161d23ef
2017-09-27 20:35:21 +08:00
Kearwood "Kip" Gilbert
cd53268372 Bug 1374399 - Enable WebVR by default for macOS r=daoshengmu
MozReview-Commit-ID: JWJlw7Qib36

--HG--
extra : rebase_source : 5057a96b1ed7a70e5200645b404acf4c65f8c660
2017-09-20 16:09:44 -07:00
Bas Schouten
82d8d410bc Bug 1403935: Enable OMTP by default on windows only. r=dvander
MozReview-Commit-ID: HcizKS5zv9v
2017-10-02 04:20:41 +02:00
Bas Schouten
43c3e5a40a Bug 1404749: Release our DrawTargetCapture on the main thread. r=mattwoodrow
MozReview-Commit-ID: 7uRdl2ZWtGS
2017-10-02 04:20:40 +02:00
Sebastian Hengst
55e6971a70 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3D21HjGG3i4
2017-10-01 00:59:41 +02:00
Sebastian Hengst
a095b86928 Backed out changeset 843b90c48664 (bug 1403935) for frequently asserting in mochitest gfx/tests/mochitest/test_font_whitelist.html on Windows non-stylo builds. r=backout a=backout
MozReview-Commit-ID: JBP3jOrlKyZ
2017-10-01 00:34:06 +02:00
Wes Kocher
eb9a2ed0f2 Merge inbound to central, a=merge
MozReview-Commit-ID: IqwKWn7ceHC
2017-09-29 14:47:25 -07:00
Bas Schouten
1c49bf2c2e Bug 1403935: Enable OMTP by default on windows only. r=dvander
MozReview-Commit-ID: 9WkaJcTnMQB
2017-09-29 19:48:40 +02:00
Markus Stange
4b4d6f1561 Bug 1402498 - Add ScrollAnimationMSDPhysics, can be enabled using general.smoothScroll.msdPhysics.enabled. r=rhunt
MozReview-Commit-ID: fr8Q9iod5k

--HG--
extra : rebase_source : b9113d40081371872deff6aade13fd226b3e72a9
2017-09-26 20:55:35 -04:00
Kartikaya Gupta
d6089cccd0 Bug 1404325 - Remove the layers-free pref from about:config. r=jrmuizel
MozReview-Commit-ID: Fk9Mn0AyMFn

--HG--
extra : rebase_source : 7591a5c25d18f123c322ed69d53b9106502c0f11
2017-09-29 09:46:19 -04:00
Mark Goodwin
ae55f5a197 Bug 1359428 - Remove preference to select OneCRL update mechanism r=keeler,leplatrem,rhelmer
MozReview-Commit-ID: A6CwZrIDmTn

--HG--
extra : rebase_source : 41e17d29f982d23f30f48a6f85ad20fc84b018c6
2017-09-29 10:47:27 +01:00
Gijs Kruitbosch
c525d706ed Bug 1399939 - switch to highly restrictive profile for IDN, r=dveditz,jfkthame
MozReview-Commit-ID: E5LRuQVfIZP

--HG--
extra : rebase_source : 9ea3f29552a5f41dc2e225f42fee5d4ec08b5063
2017-09-28 12:00:22 +01:00
Jonathan Kew
34f77e6f9a Bug 1317445 - Enable support for the 'font-display' descriptor in @font-face rules. r=dbaron 2017-10-05 10:00:59 +02:00
Jonathan Kew
aec295366b Bug 1402350 - Update Brotli library to release 1.0.1. r=glandium 2017-09-28 08:58:54 +01:00
Sebastian Hengst
72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Sebastian Hengst
a3b6b15cef merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BGCq2q6xO1S
2017-09-27 11:47:52 +02:00