Test "display-capture" permissions policy correctly.
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Tracking
()
People
(Reporter: jib, Assigned: karlt)
References
(Regression)
Details
(Keywords: regression)
Attachments
(9 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
From https://phabricator.services.mozilla.com/D53091#inline-322850:
[Feature policy "display-capture" can be enabled in cross-origin iframes using "allow" attribute.]
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1596585Is there any plan to fix that bug? I saw the comment there, that is a known limitation. If it is hard to fix that bug, maybe we should add a mochitest. I don't think it is too hard, a follow up should be ok
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
See also https://github.com/web-platform-tests/wpt/pull/28689
Depends on D119598
Assignee | ||
Comment 4•4 years ago
|
||
testdriver also uses postMessage().
https://github.com/web-platform-tests/wpt/blob/b32b3e223f63dc5500de31dfc117a03ec582f38d/tools/wptrunner/wptrunner/testdriver-extra.js#L144
Depends on D119599
Assignee | ||
Comment 5•4 years ago
|
||
step_func() wraps handler() in another function, so the event listener is not
handler. The contentWindow check already made this unnecessary when added in https://github.com/web-platform-tests/wpt/commit/b39276663f92965ea1b2c7c10304f533a65b7e4e#diff-5736fcc16e67516fcf3749b67d299c03484b2e08941804d043aad2aff339e6a5R38
The recent evt.data.type avoids further potential unexpected consequences from
leaving the event handler in place.
Depends on D119600
Assignee | ||
Comment 6•4 years ago
|
||
testdriver needs this for use in iframe documents.
https://github.com/web-platform-tests/wpt/blob/b32b3e223f63dc5500de31dfc117a03ec582f38d/tools/wptrunner/wptrunner/testdriver-extra.js#L164
Depends on D119601
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D119603
Assignee | ||
Comment 9•4 years ago
|
||
instead of testing that any one of these is disallowed in cross-origin iframes.
Splitting the test into separate files is also helpful due to run times
getting close to timeouts in some configurations.
Depends on D119604
Assignee | ||
Comment 10•4 years ago
|
||
Depends on D119605
Assignee | ||
Comment 11•4 years ago
|
||
https://github.com/web-platform-tests/wpt/pull/26411 will provide stable results with these changes.
https://treeherder.mozilla.org/jobs?repo=try&author=ktomlinson%40mozilla.com
Updated•4 years ago
|
Reporter | ||
Comment 12•4 years ago
|
||
Renaming issue to reflect wpt patches and bug 1596585 having since been fixed.
Comment 13•4 years ago
|
||
Comment 15•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/03a42c4949e0
https://hg.mozilla.org/mozilla-central/rev/a714aa598706
https://hg.mozilla.org/mozilla-central/rev/0606d607518f
https://hg.mozilla.org/mozilla-central/rev/fc16816a4027
https://hg.mozilla.org/mozilla-central/rev/f161599c2482
https://hg.mozilla.org/mozilla-central/rev/5b131f57a8d5
https://hg.mozilla.org/mozilla-central/rev/8e73cbfca53f
https://hg.mozilla.org/mozilla-central/rev/26e100d6b750
https://hg.mozilla.org/mozilla-central/rev/8605099395b2
Updated•4 years ago
|
Updated•3 years ago
|
Description
•