Introduce 2 new pref for FeaturePolicy
Categories
(Core :: DOM: Security, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
Details
(Keywords: dev-doc-complete, Whiteboard: [domsecurity-backlog1] [domsecurity-active])
Attachments
(2 files)
8.54 KB,
patch
|
ckerschb
:
review+
|
Details | Diff | Splinter Review |
8.68 KB,
patch
|
ckerschb
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
bugherder |
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Sure, like Chrome did in our docs, we can the add preference info to our compat tables:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy#Browser_compatibility
:baku, can you let me know which directives are now supported behind the "dom.security.featurePolicy.header.enabled" pref?
And then for the API tables, I would add "dom.security.featurePolicy.webidl.enabled" here:
https://developer.mozilla.org/en-US/docs/Web/API/Document/policy#Browser_compatibility
https://developer.mozilla.org/en-US/docs/Web/API/HTMLIframeElement/policy#Browser_compatibility
Does that sound good to you?
Assignee | ||
Comment 10•6 years ago
|
||
:baku, can you let me know which directives are now supported behind the "dom.security.featurePolicy.header.enabled" pref?
Enabling that pref, we support the parsing of Feature-Policy HTTP header as the spec says here:
https://w3c.github.io/webappsec-feature-policy/#parse-header
The parser of the HTTP header and the HTMLIFrameElement allow attribute is the same. The list of supported feature is the same (see here: https://searchfox.org/mozilla-central/rev/b29663c6c9c61b0bf29e8add490cbd6bad293a67/dom/security/featurepolicy/FeaturePolicyUtils.cpp#28-39)
The only difference between HTTP header and HTMLIFrameElement is that 'src' is only supported in the latter.
Does that sound good to you?
Yes.
Description
•