Граф коммитов

7232 Коммитов

Автор SHA1 Сообщение Дата
arthur.iakab 8976abf9ca Merge inbound to mozilla-central. a=merge 2018-03-14 12:00:13 +02:00
Kearwood Gilbert d0b2b8da65 Bug 1436791 - Implement gfxVRExternal,r=rbarker
- gfxVRExternal Enables other processes to present
  real or simulated VR hardware to Firefox.
- This functionality is disabled by default, under
  dom.vr.external.enabled.
- VRDisplayInfo, VRControllerInfo, and associated
  structs have been restructured to ensure internal
  state is not exposed via shmem interface.
- Some refactoring to convert structs to
  POD types, enabling them to be located
  in shmem and be memcpy'd.
- Work needed before unpreffing marked
  with "TODO" comments.
MozReview-Commit-ID: FbsusbxuoQ8

--HG--
extra : rebase_source : 8a448169c3f47411c705a4d9fd462a1f9363dfd9
extra : amend_source : e6702549527292e2850d16e8f503f0be9848159f
2018-03-13 17:09:54 -07:00
Masayuki Nakano fcb248a698 Bug 1343451 - part 5: Make GeckoEditableSupport dispatch dummy eKeyDown and eKeyUp event during composition always r=jchen
On Android, GeckoEditableSupport has already dispatched eKeyDown event and
eKeyUp event even during composition.  I.e., the pref which will be enabled
by bug 354358 has already been set to true only on Android.

On the other hand, GeckoEditableSupport does not dispatch them if content
listens to "input", "compositionstart", "compositionupdate" or
"compositionend".  So, different from the other platforms, we need additional
pref to make the new behavior behind pref.

Therefore, this patch adds a new pref,
"intl.ime.hack.on_any_apps.fire_key_events_for_composition", to override
existing "intl.ime.hack.on_ime_unaware_apps.fire_key_events_for_composition"
pref.  And sets mKeyCode and mKeyNameIndex of the dummy KeyboardEvents to
NS_VK_PROCESSKEY and KEY_NAME_INDEX_Process.

MozReview-Commit-ID: Fuy0Ir2xiO5

--HG--
extra : rebase_source : c76b613ea186458ebdf0d67f4bc984e8ac5f1041
2018-02-27 17:24:35 +09:00
Andrew Osmond fcac2b8040 Bug 1435291 - Part 1. Enable shared surfaces by default with WebRender. r=jrmuizel 2018-03-13 15:58:59 -04:00
Andreea Pavel 8fa0b32c84 Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Emilio Cobos Álvarez de099db7bd Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
Summary: It uses two node bits that can be better suited for something else.

Reviewers: xidorn, smaug

Bug #: 1444905

Differential Revision: https://phabricator.services.mozilla.com/D709

MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Daniel Holbert 85a7004f55 Bug 1444139: Re-enable support for webkit-prefixed pixel-density media queries (e.g. -webkit-min-device-pixel-ratio) r=xidorn
MozReview-Commit-ID: EqwsynLihb1

--HG--
extra : rebase_source : 3607e8172a956f6a6cfc798c112d4dc365e6f97b
2018-03-12 12:50:04 -07:00
Andrew Swan 7b4af80995 Bug 1444487 Add preference for langpack signing r=kmag
MozReview-Commit-ID: FEPa2wlLBST

--HG--
extra : rebase_source : c5e452dd62a3c913a096cfead60d5ee8eaf72489
2018-03-09 11:31:39 -08:00
Nicholas Nethercote e16e5a3c78 Bug 1444276 - Refactor the telemetry pref setting code. r=glandium,chutten
This patch doesn't change the functionality, it just splits out the code into
separate functions that are easier to read.

MozReview-Commit-ID: Gx05YCxGgve

--HG--
extra : rebase_source : 3b7250cea630bebf35992bb69e651509c863c1c6
2018-03-09 16:39:31 +11:00
Nicholas Nethercote f87fadb9cb Bug 1438433 - Remove the network.predictor.redirect-likely-confidence pref. r=hurley.
It's unused.

MozReview-Commit-ID: DmHwJ3oW3Vq

--HG--
extra : rebase_source : 89d49a7d680e07383de82c2b4cb3a74a13f09c1e
2018-03-07 15:50:14 +11:00
Nicholas Nethercote 68124009fc Bug 1438678 - Pass early prefs via shared memory instead of the command line. r=bobowen,jld,glandium.
This patch replaces the large -intPrefs/-boolPrefs/-stringPrefs flags with
a short-lived, anonymous, shared memory segment that is used to pass the early
prefs.

Removing the bloat from the command line is nice, but more important is the
fact that this will let us pass more prefs at content process start-up, which
will allow us to remove the early/late prefs split (bug 1436911).

Although this mechanism is only used for prefs, it's conceivable that it could
be used for other data that must be received very early by children, and for
which the command line isn't ideal.

Notable details:

- Much of the patch deals with the various platform-specific ways of passing
  handles/fds to children.

  - Linux and Mac: we use a fixed fd (8) in combination with the new
    GeckoChildProcessHost::AddFdToRemap() function (which ensures the child
    won't close the fd).

  - Android: like Linux and Mac, but the handles get passed via "parcels" and
    we use the new SetPrefsFd() function instead of the fixed fd.

  - Windows: there is no need to duplicate the handle because Windows handles
    are system-wide. But we do use the new
    GeckoChildProcessHost::AddHandleToShare() function to add it to the list of
    inheritable handles. We also ensure that list is processed on all paths
    (MOZ_SANDBOX with sandbox, MOZ_SANDBOX without sandbox, non-MOZ_SANDBOX) so
    that the handles are marked as inheritable. The handle is passed via the
    -prefsHandle flag.

  The -prefsLen flag is used on all platforms to indicate the size of the
  shared memory segment.

- The patch also moves the serialization/deserialization of the prefs in/out of
  the shared memory into libpref, which is a better spot for it. (This means
  Preferences::MustSendToContentProcesses() can be removed.)

MozReview-Commit-ID: 8fREEBiYFvc

--HG--
extra : rebase_source : 7e4c8ebdbcd7d74d6bd2ab3c9e75a6a17dbd8dfe
2018-02-16 17:54:16 +11:00
Kartikaya Gupta 99522f2154 Bug 1258238 - Remove code that displays visibility visualization on the APZ minimap. r=mattwoodrow
This code was originally added to debug the frame visibility code.
However it wasn't architected correctly and makes the compositor use an
untrusted layers id from content. Instead of fixing this I'd rather just
delete it, since it's a big pile of code that is basically a debugging
tool that nobody owns anymore.

MozReview-Commit-ID: nPZqVeYsFp
2018-03-12 14:17:34 -04:00
Jan de Mooij 705961f02e Bug 1442561 part 3 - Flip the pref. r=me 2018-03-11 21:11:33 +01:00
Jan de Mooij 3125869f12 Bug 1442561 part 1 - Add browser pref for misc Spectre object type mitigations. r=luke 2018-03-11 20:14:03 +01:00
Kris Maglione a25db8235e Bug 1444502: Remove support for installing unpacked extensions. r=aswan
This retains support for installing unpacked dictionaries, since Hunspell only
supports loading dictionaries from ordinary filesystem paths.

Unpacked extensions are no longer supported on production, except during
development. WebExtensions have no support for the unpacked flag at all, and
specially signed legacy extensions are forbidden from using it, so there's no
point in maintaining support for this install code. Or, more importantly, for
running a nearly complete duplicated set of tests in order to exercise it.

MozReview-Commit-ID: 1fKVgSelJQ8

--HG--
extra : rebase_source : a2e9086a3d050b66eab9c17fff9c2f7189911832
extra : amend_source : da8f6425ec74a824a3d19f13bb4eb51980cd64c1
2018-03-09 12:45:59 -08:00
Noemi Erli 40b1baaab5 Merge inbound to mozilla-central. a=merge 2018-03-10 11:58:34 +02:00
Bogdan Tara eaec7bede8 Backed out 2 changesets (bug 1223726) for failing devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js a=backout on a CLOSED TREE
Backed out changeset a95b0b28ca16 (bug 1223726)
Backed out changeset 6adb35cc708e (bug 1223726)
2018-03-10 02:44:19 +02:00
Kris Maglione b8ee2d988e Bug 1415644: Create a list of restricted domains. r=aswan,mixedpuppy
MozReview-Commit-ID: A0AkaBG33In

--HG--
extra : rebase_source : 9f7cfe657835e0ea3cb591a2e1aa636ed92eb004
2018-03-03 16:28:18 -08:00
Jan Beich 708ab75339 Bug 1444083 - Disable custom styling for <select> and <option> on Tier3 as well. r=jaws
MozReview-Commit-ID: DUlq3hsBRfg

--HG--
extra : rebase_source : e6458d255b6223ba95385530397fee9cd594da20
2018-03-08 14:40:44 +00:00
Jan Odvarko 6d33da940c Bug 1223726 - Customize response body interception; r=ochameau
* Introduce pref for custom response body limit
* Introduce pref for saving request/response bodies

MozReview-Commit-ID: 4DV6QUzCTyP

--HG--
extra : rebase_source : 2b2d76b946214f90c035dcc29092712de199592b
2018-03-09 17:09:42 +01:00
Jan Beich 36a2994346 Bug 1444074 - Enable full-duplex by default for all platforms. r=padenot
MozReview-Commit-ID: LUvReTPd1TA

--HG--
extra : rebase_source : ac0a5e17b54c0e5ff97f84137768e1613a9b88d4
2018-03-08 14:12:28 +00:00
Nicolas B. Pierron 36b48bece7 Bug 1438886 - Prevent speculative execution after returning from GC-capable C++ code. r=jandem 2018-03-09 18:29:10 +00:00
Andreea Pavel 33cc9e0331 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-07 16:43:13 +02:00
Nicholas Nethercote cb93c8b8f0 Bug 440908 - Convert sticky prefs in default pref files to the new syntax. r=glandium
MozReview-Commit-ID: GgkNSsdGhBV

--HG--
extra : rebase_source : efaf5f79ab7b608975ee960057d8be380061fdc0
2018-03-07 09:34:06 +11:00
Daniel Stenberg 80c6547919 bug 1443489 - TRR: require a pref set to allow early AAAA responses r=valentin
Early AAAA responses might cause issues on hosts without working native
IPv6 connectivity, of course especially notable in TRR-only mode.

MozReview-Commit-ID: 6ZqE6AKnucH

--HG--
extra : rebase_source : ff42cb8daf941a3fa1f7e783c76d823e879024c3
2018-03-06 16:07:29 +01:00
Nicholas Nethercote 038a72de3b Bug 440908 - Add support for `sticky` and `locked` attributes to default prefs. r=glandium
Sticky prefs are already specifiable with `sticky_pref`, but this is a more
general attribute mechanism. The ability to specify a locked pref in the data
file is new.

The patch also adds nsIPrefService.readDefaultPrefsFromFile, to match the
existing nsIPrefService.readUserPrefsFromFile method, and converts a number of
the existing tests to use it.

MozReview-Commit-ID: 9LLMBJVZfg7

--HG--
extra : rebase_source : fa25bad87c4d9fcba6dc13cd2cc04ea6a2354f51
2018-03-02 15:31:40 +11:00
Nicholas Nethercote 74fea66ce5 Bug 440908 - Remove gIsAnyPrefLocked. r=glandium
It optimizes Preferences::IsLocked(), but that function is called fewer than
200 times while starting the browser and opening a range of tabs.

MozReview-Commit-ID: 5q0zS8TSwdu

--HG--
extra : rebase_source : 015c5ebbe28097ef3f02b1062e650df67721f1c3
2018-03-05 15:18:34 +11:00
Masayuki Nakano 8ff64d6a33 Bug 1443117 - Restart to dispatch "keypress" event for non-printable keys and key combinations on Nightly and early-Beta until Google fixes related bugs of their web apps r=smaug
We have stopped dispatching "keypress" events for non-printable keys
and key combinations for conforming to UI Events and following the
other browsers.

However, this change hits a serious bugs of Google Docs, Google
Spreadsheets and Gmail.  Until they will fix their bugs, we should
take back the traditional behavior for keeping Nightly usable for
any Nightly testers.

MozReview-Commit-ID: 9CyEbsFit1S

--HG--
extra : rebase_source : 837288b1fb53121badff4e65094a87cebfe3cfee
2018-03-05 21:12:27 +09:00
Nicholas Nethercote 0ceb583d52 Bug 1441754 - Use MOZ_ASSERT instead of NS_ASSERTION and NS_PRECONDITION in Preferences.cpp. r=glandium
I also removed the explanation string in cases where I felt it was obvious.

MozReview-Commit-ID: IyHswX3s23y

--HG--
extra : rebase_source : ee0a4729b486e42bd50edf3d5870368e0aaa2310
2018-02-28 18:47:38 +11:00
Nicholas Nethercote 11e94a7ad7 Bug 1441754 - Shrink CallbackNode by combining mMatchKind and mNext into a tagged pointer. r=glandium
The following table shows the effect of this change:

>                           old 64-bit  new 64-bit  old 32-bit  new 32-bit
> sizeof(CallbackNode)      40          32          20          16
> size when heap allocated  48          32          32          16

This reduces memory usage by about 15--40 KB per process.

MozReview-Commit-ID: 4gXgGI3SiJz

--HG--
extra : rebase_source : d62e0b708024b1d8ececd1d5c295159e751e6727
2018-02-28 16:21:42 +11:00
Nicholas Nethercote 97e303236f Bug 1441754 - Privatize CallbackNode's field. r=glandium
This isn't compelling on its own, but it's necessary for the next patch.

MozReview-Commit-ID: CFON8DCdGoA

--HG--
extra : rebase_source : 2b219e2a1330923f63af6dae1d8ab5f2428f926f
2018-02-28 16:10:11 +11:00
Nicholas Nethercote 3d1cfb9da0 Bug 1441754 - Split measurements of pref callbacks in two. r=glandium
This shows that the objects themselves are accounting for about 60% of the
callback memory on 64-bit, and the domains are about 40%.

MozReview-Commit-ID: JndlyIvlrGs

--HG--
extra : rebase_source : 7a60203421c3e03d7cbe36614c72ffe674a4bc71
2018-02-28 16:09:48 +11:00
Nicholas Nethercote 96f04124a0 Bug 1441754 - clang-format some Preferences.cpp code that needs it. r=glandium
MozReview-Commit-ID: E6kxiIs92qB

--HG--
extra : rebase_source : 88c4835b76c17f6b1e0c4e74bd24d479c649fac9
2018-02-28 16:09:24 +11:00
Tom Ritter c095f67f73 Bug 1425462 Turn jitter on by default. r=luke
MozReview-Commit-ID: 9u0rJ8FoteG

--HG--
extra : rebase_source : 5f5256b92bbc7ff7cdade00d32c9aa9d68650347
2018-02-15 15:35:42 -06:00
Tom Ritter 845ef57dd6 Bug 1425462 When reducing the precision of timestamps, also apply fuzzytime to them r=bkelly
Fuzzytime deterministically generates a random midpoint between two clamped values,
and if the unreduced timestamp is above the midpoint, the time is rounded upwards.
This allows safe time jittering to occur, as time will never go backwards on a given
timeline.

It _is_ possible for time to go backwards when comparing different (but related)
timelines, such as a relative timeline in one page (with its own
performance.timeOrigin) and a relative timeline in an iframe or Worker (which
also has its own performance.timeOrigin). This is the same behavior as the 2ms timer
reduction we previously landed; jitter doesn't make this any better or worse.

MozReview-Commit-ID: IdRLxcWDQBZ

--HG--
extra : rebase_source : 40b29d34e5cc99f9b8e6d5e711a03b9fe9bfa595
2018-03-01 00:07:03 -06:00
Catalin Badea d116fe517c Bug 1432846 - Delay update runnables from service workers that don't control any clients. r=bkelly 2018-03-02 11:40:53 +00:00
Dorel Luca cafaae9ee7 Backed out 6 changesets (bug 1425462) for XPCShell failure on multiple files
Backed out changeset 9ace3811f525 (bug 1425462)
Backed out changeset 7d440e52e3a4 (bug 1425462)
Backed out changeset 85896ea96faf (bug 1425462)
Backed out changeset 127b5d2e6779 (bug 1425462)
Backed out changeset 95ce64d3a29a (bug 1425462)
Backed out changeset ddd2c4da4ba4 (bug 1425462)
2018-03-02 03:33:17 +02:00
Tom Ritter 65a1409f60 Bug 1425462 Turn jitter on by default r=luke
MozReview-Commit-ID: 9u0rJ8FoteG

--HG--
extra : rebase_source : e00a72098e22c3d3f5aa559a65a7efc38ae12ee1
2018-02-15 15:35:42 -06:00
Tom Ritter 06ecc9a63d Bug 1425462 When reducing the precision of timestamps, also apply fuzzytime to them r=bkelly
Fuzzytime deterministically generates a random midpoint between two clamped values,
and if the unreduced timestamp is above the midpoint, the time is rounded upwards.
This allows safe time jittering to occur, as time will never go backwards on a given
timeline.

It _is_ possible for time to go backwards when comparing different (but related)
timelines, such as a relative timeline in one page (with its own
performance.timeOrigin) and a relative timeline in an iframe or Worker (which
also has its own performance.timeOrigin). This is the same behavior as the 2ms timer
reduction we previously landed; jitter doesn't make this any better or worse.

MozReview-Commit-ID: IdRLxcWDQBZ

--HG--
extra : rebase_source : e455f934e6e6d65d54c122a6cec9f6cabbd5ac78
2018-03-01 00:07:03 -06:00
Sebastian Hengst 226c2ef8a3 Backed out 3 changesets (bug 1432846) for build bustage on Windows at dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp:301. CLOSED TREE
Backed out changeset 5e3b28d03b34 (bug 1432846)
Backed out changeset a2ae02b5fe72 (bug 1432846)
Backed out changeset a92cc56bbaa4 (bug 1432846)
2018-03-01 21:34:05 +02:00
Sebastian Hengst 118e03a936 merge mozilla-central to mozilla-inbound 2018-03-01 20:32:20 +02:00
Masayuki Nakano 38c9ff1b63 Bug 1440189 - part 1: Stop dispatching keypress event to the default event group in web content (only Nightly and early Beta) r=smaug
UI Events declares that keypress event should be fired only when the keydown
sequence produces some characters.  For conforming to UI Events and
compatibility with the other browsers, we should stop dispatching keypress
events for non-printable keys.

For getting regression reports, we should enable this new behavior only
on Nightly and early Beta.

MozReview-Commit-ID: 5IIL9huejXH

--HG--
extra : rebase_source : 0abdbe84a50d6fd1b4d52521b92e7513483b197c
2018-01-26 00:16:14 +09:00
Catalin Badea 2443202da8 Bug 1432846 - Delay update runnables from service workers that don't control any clients. r=bkelly 2018-03-01 16:34:48 +00:00
Bob Owen 817abcce88 Bug 1423628: Let not processing native events ride the trains on Windows. r=jimm 2018-03-01 14:37:26 +00:00
Andrew Osmond 2088409e88 Bug 523950 - Part 3. Add preferences to control animated image decoding behaviour. r=tnikkel
image.animated.decode-on-demand.threshold-kb is the maximum size in kB
that the aggregate frames of an animation can use before it starts to
discard already displayed frames, and redecode them as necessary. The
lower it is set to, the less overall memory we will consume at the
expense of execution time for as long as the tab with the animation(s)
above the threshold are kept open.

image.animated.decode-on-demand.batch-size is the minimum number of
frames we want to have buffered ahead of an animation's currently
displayed frame. The decoding will request this number of frames at a
time to maximize use of memory caching. Note that this is related to the
above preference as well; increasing the batch size will in effect raise
what the minimum threshold. This simplifies the logic in patches later
in the series.
2018-02-28 13:34:52 -05:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Kearwood "Kip" Gilbert 98f42b8d7f Bug 1438044 - re-enable WebVR for macOS in release r=smaug
For FF59, we disabled WebVR for macOS before allowing it to ride the trains to release.  Softvision was unable to verify for QA due to challenges getting a working hardware configuration for macOS VR at SoftVision.

We have since gained approval from the Firefox Release Team to re-enable WebVR for macOS in release for FF60.

Essentially, we need to reverse the changes in bug 1426500 and uplift to FF59/Beta before the next cycle.

--HG--
extra : rebase_source : 1b0c68b130f869f0e71cf2d93db92bb78dddc79b
2018-02-26 10:04:08 -08:00
Jonathan Kingston 873d5b44df Bug 1440709 - Disabling mixed content upgrading for now. r=ckerschb
MozReview-Commit-ID: AMaEstZlrI1

--HG--
extra : rebase_source : 49333a5d935d6b33ae5b683da3dee99f1edad289
2018-02-27 18:31:55 +00:00
Jonathan Kingston ada03a865d Bug 1359076: Disable all Device Sensor APIs except orientation by default r=bkelly
This patch disables device sensors except orientation by default.
It implements per-sensor prefs to disable orientation, motion, proximity and ambient light
selectively. The patch also makes the pref checks happen at runtime (versus on process
start) using Preferences::AddBoolVarCache.
The patch also removes the related Event constructors also.

MozReview-Commit-ID: EA8ARjjtlkF

--HG--
rename : dom/events/test/test_bug742376.html => dom/events/test/test_deviceSensor.html
rename : dom/events/test/test_eventctors.html => dom/events/test/test_disabled_events.html
rename : dom/events/test/test_eventctors.html => dom/events/test/test_eventctors_sensors.html
extra : rebase_source : 39da98ac9226ac727f5197d28561b0b762da06f4
2017-07-24 10:07:00 +02:00