gecko-dev/dom/security/featurepolicy
Alastor Wu 7f2cafcb86 Bug 1516598 - remove 'feature-policy' checking for autoplay policy. r=cpearce,baku
From the following table, we can know the feature policy have no any effect for the autoplay result.

That is, if the document has been gesture activated, we want to playback, regardless of the status of the feature policy.
If the site has denied autoplay permission via feature policy, if the user gesture activates (clicks play) we still want to be able to play.

Therefore, we can remove `feature-policy` checking.

| gesture activated | autoplay feature policy status | allowed to play |
|-------------------|--------------------------------|-----------------|
| activated         | allowed                        | true            |
| not activated     | not allowed                    | false           |
| activated         | not allowed                    | true            |
| not activated     | allowed                        | false           |

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

--HG--
extra : moz-landing-system : lando
2019-02-12 18:21:58 +00:00
..
test Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop 2018-12-11 13:15:08 +00:00
Feature.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
Feature.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FeaturePolicy.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
FeaturePolicy.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
FeaturePolicyParser.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
FeaturePolicyParser.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
FeaturePolicyUtils.cpp Bug 1516598 - remove 'feature-policy' checking for autoplay policy. r=cpearce,baku 2019-02-12 18:21:58 +00:00
FeaturePolicyUtils.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
moz.build