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

21 Коммитов

Автор SHA1 Сообщение Дата
Chris Pearce 2e3c4bd9af Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz
Various web authors have expressed desire to know in advance whether autoplay
will work.

They want this in order to avoid paying the price for downloading media that
won't play. Or they want to take other action such as showing a poster image
instead.

This is of particular interest to Firefox, as we're planning on showing a
prompt to ask the user whether they would like a site to play. If sites want to
determine whether they can autoplay but avoid the prompt showing, they won't be
able to just call play() in Firefox and see whether it works, as that would
likely show the prompt if the user doesn't already have a stored permission.

We've been working out a spec here:
https://github.com/whatwg/html/issues/3617#issuecomment-398613484

This implements what is the consensus to date there;
HTMLMediaElement.allowedToPlay, which returns true when a play() call would not
be blocked with NotAllowedError by autoplay blocking policies.

MozReview-Commit-ID: AkBu0G7uCJ0

--HG--
extra : rebase_source : 3f31db79aa1e570fdd9fc7062d0ddac7c96a8931
2018-07-25 14:25:17 +12:00
Chris Pearce 45b80a65d1 Bug 1476853 - Set autoplay to allowed for testing purposes. r=jmaher
We're going to enable block autoplay of HTMLMediaElements by default in Nightly,
but lots of our tests assume they are allowed to playback media without requiring
user interaction. After we've enabled block autoplay that assumption won't be valid.

So configure the prefs that control block autoplay so that we allow media to
autoplay.

This means the existing tests we have don't need to be rewritten to work when
we enable block autoplay by default.

MozReview-Commit-ID: 50yydubQjkS

--HG--
extra : rebase_source : a19e6c5b60d3b89e754be786281ca3242baa3830
2018-07-19 15:46:38 +12:00
Michael Kaply 53432d4bf9 Bug 1462015 - Remove browser.search.countryCode pref. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D2187

--HG--
extra : moz-landing-system : lando
2018-07-18 13:55:16 +00:00
Kirk Steuber da107c225e Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : ba135c7d285987fd030fef4e18a5aa701a43cdba
extra : intermediate-source : e6c89a0ff0c7a7e7cd1c028e49660bab0416a531
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Erica Wright 23af908b2c Bug 1471514 - Add fxa endpoint pref for top-of-funnel metrics, and turn it off for testing. r=ursula
MozReview-Commit-ID: BLycdhPSVlk

--HG--
extra : rebase_source : f3083154cf142e871dd503cb5950afb1cecc3a89
2018-07-13 10:45:43 -04:00
Andreea Pavel 1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber 35d8c30dbb Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : e38cf587711192c3020cd9ac6a39cdbd97d2600b
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Mathieu Leplatre 4300c52ada Bug 1458917 - Register dedicated timer for Remote Settings r=Gijs
MozReview-Commit-ID: K5Rf1McJUHy

--HG--
extra : rebase_source : f6932e5c3014ce0bb8e29e08468e4e533130273e
2018-06-14 20:54:19 +02:00
Noemi Erli d218f98059 Backed out changeset 101f97abc1d4 (bug 1458917) for Talos failures on a CLOSED TREE 2018-07-11 05:11:11 +03:00
Mathieu Leplatre 068afbc416 Bug 1458917 - Register dedicated timer for Remote Settings r=Gijs
MozReview-Commit-ID: K5Rf1McJUHy

--HG--
extra : rebase_source : 171ed0ff11e2b60a17055412c64584dfe5ab90d5
2018-06-14 20:54:19 +02:00
Dave Townsend 9da98f873b Bug 1473004: Don't attempt to guess a favicon in performance tests. r=jmaher
Favicons will cause a small bit of additional network traffic and work in the
content process for any loaded page that doesn't specify a favicon. This turns
off attempts to guess a favicon when one isn't specified in performance tests.

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

--HG--
extra : moz-landing-system : lando
2018-07-04 11:27:23 +00:00
Michael Kaply 7b870caf1a Bug 1462010 - Remove unused migrateRegionPrefs and isUS preference. r=adw
MozReview-Commit-ID: BkwiIUcZW7m

--HG--
extra : rebase_source : f7999459bc335052fbf1a6e467ce3193921e0ef0
2018-05-18 10:10:28 -05:00
Andrew Halberstadt e8b71d39d5 Bug 1460912 - [testing/profiles] Use the 'common' profile in reftest r=gbrown
This removes prefs that are already shared between reftest and the 'common' profile from:
testing/profiles/reftest/user.js

And moves prefs that were set in the 'common' profile but not reftest to both:
testing/profiles/unittest/user.js
testing/profiles/perf/user.js

MozReview-Commit-ID: HLfVrd2eD0l

--HG--
extra : rebase_source : ff186d28fa9bb081133bec06ee6689d59e66d41e
2018-05-14 10:56:41 -04:00
Andrew Halberstadt 162414134e Bug 1458571 - Make talos and raptor use the 'common' base profile, r=rwood
This factors out the prefs that are common across raptor, talos and
mochitest/web-platform-tests. In order to do this a new "unittest" profile has
been created.

This means, to set a pref across everything that uses this system, edit:
testing/profiles/common/user.js

To set a pref across unittest frameworks (which excludes raptor and talos),
edit:
testing/profiles/unittest/user.js

Setting a pref for perf frameworks only remains the same. Extensions follow
the same rules (drop them in <profile>/extensions).

MozReview-Commit-ID: 6AHlYsN0Lb8

--HG--
extra : rebase_source : aad259f06af549f3bc707fed5b1caaacf25bc28f
2018-05-10 15:31:31 -04:00
Andrew Halberstadt c15fc95f29 Bug 1458571 - Add a script for diffing and sorting preferences, r=rwood
The main purpose of this script is to gain a view into the state of prefs
between various profiles or suites. There are three commands:

- show: Display prefs for the given profile or suite
- diff: Display differences of prefs between two profiles or suites
- sort: Sort pref files alphabetically for the given suite (this takes comments into account)

This also sorts common/user.js.

MozReview-Commit-ID: Bzl7w7i3glm

--HG--
extra : rebase_source : a8e620d06e9a940fadc7c3c0727e5c81ac3e3dfa
2018-05-05 07:30:38 -04:00
Kris Maglione 6807a35903 Bug 1459998: Part 2 - Cleanup cruft. r=aswan
MozReview-Commit-ID: FDDVOptdDLF

--HG--
extra : rebase_source : 08193c7c87825096cdcfe0ad4a73996b1b7ede9d
extra : histedit_source : 9e8cb320ae430e9775d32159c4595be57a68882a
2018-05-08 14:27:15 -07:00
Andrew Halberstadt c9bdbe0a32 Bug 1451159 - [testing/profiles] Use 'format' for interpolation instead of %s r=gbrown
MozReview-Commit-ID: EbDS1fYDe1X

--HG--
extra : rebase_source : e8e179f97fb3df492b2fcc690616157254e49fdd
extra : source : 03f43cb6ab42e55f475c6f6a99c7da547b0aa6f8
2018-04-20 11:03:38 -04:00
Andrew Halberstadt ee69aa133e Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 72a4a4b691e93c77479c7e70647b0ca373862c51
2018-04-19 16:12:26 -04:00
Bogdan Tara b7924c2ed2 Backed out 4 changesets (bug 1451159) for linux build bustages CLOSED TREE
Backed out changeset 72926ae685af (bug 1451159)
Backed out changeset f90a99682382 (bug 1451159)
Backed out changeset 3914937893de (bug 1451159)
Backed out changeset 79931e4a2bfb (bug 1451159)

--HG--
rename : testing/profiles/common/user.js => testing/profiles/prefs_general.js
2018-05-04 00:25:56 +03:00
Andrew Halberstadt 6a9ff8c01b Bug 1451159 - [testing/profiles] Use 'format' for interpolation instead of %s r=gbrown
MozReview-Commit-ID: EbDS1fYDe1X

--HG--
extra : rebase_source : 791be1fb4939ca72408fa9044dac8765ceffd806
extra : source : 03f43cb6ab42e55f475c6f6a99c7da547b0aa6f8
2018-04-20 11:03:38 -04:00
Andrew Halberstadt fd23fd839b Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 7599913e547533f2f57b597ad0f238c6cd391c82
2018-04-19 16:12:26 -04:00