Full Screen menu item doesn't work when the fullscreen API is blocked via HTTP Feature-Policy
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: ntim, Assigned: ntim)
References
()
Details
Attachments
(1 file)
STR:
- Open a web page with a feature policy that blocks fullscreen which has a video on it
- Right click the video
- Click the "Full screen" menu item
AR:
- the menu item is enabled, but clicking it doesn't work
Console warning: Request for fullscreen was denied because of FeaturePolicy directives.
ER:
The menu item should either be hidden/disabled, or it should properly work.
Comment 1•5 years ago
|
||
We shouldn't support the HTTP header. Did that end up shipping somehow?
Comment 2•5 years ago
|
||
(In reply to Anne (:annevk) from comment #1)
We shouldn't support the HTTP header. Did that end up shipping somehow?
302 to Johann who is in a better position to answer.
Comment 3•5 years ago
|
||
It's enabled in Nightly, apparently. We could consider turning it off in Nightly as well, but that's probably not the point of this bug, since I expect the same thing to happen with allow attributes?
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Thanks Jared for the testcase!
For the HTTP feature policy case (and allow
attributes), I think can add && aCallerType != CallerType::System
at https://searchfox.org/mozilla-central/rev/4ccefc3181f9d237ef4ca8bd17b4e7c101ddf7b5/dom/base/Element.cpp#3140
For the "legacy" allowfullscreen
attribute, AFAIK we already allow it: https://searchfox.org/mozilla-central/rev/4ccefc3181f9d237ef4ca8bd17b4e7c101ddf7b5/dom/base/Document.cpp#13513-13529
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
|
||
The product::component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
I filed bug 1627890 on disabling/removing the header code.
Description
•