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•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
See also https://github.com/web-platform-tests/wpt/pull/28689
Depends on D119598
Assignee | ||
Comment 4•3 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•3 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•3 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•3 years ago
|
||
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D119603
Assignee | ||
Comment 9•3 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•3 years ago
|
||
Depends on D119605
Assignee | ||
Comment 11•3 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•3 years ago
|
Reporter | ||
Comment 12•3 years ago
|
||
Renaming issue to reflect wpt patches and bug 1596585 having since been fixed.
Comment 13•3 years ago
|
||
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03a42c4949e0 remove unused expectation data r=jib https://hg.mozilla.org/integration/autoland/rev/a714aa598706 use permissions-policy.js instead of feature-policy.js for display-capture r=jib https://hg.mozilla.org/integration/autoland/rev/0606d607518f separate permissions-policy.js messages from testdriver messages r=jib https://hg.mozilla.org/integration/autoland/rev/fc16816a4027 remove no-op removeEventListener() r=jib https://hg.mozilla.org/integration/autoland/rev/f161599c2482 disable testharness script loading in iframe documents r=jib https://hg.mozilla.org/integration/autoland/rev/5b131f57a8d5 use test_driver.set_test_context() in iframe documents r=jib https://hg.mozilla.org/integration/autoland/rev/8e73cbfca53f replace custom user gesture with test_driver.bless() r=jib https://hg.mozilla.org/integration/autoland/rev/26e100d6b750 test each of audio, video, audio+video combinations r=jib https://hg.mozilla.org/integration/autoland/rev/8605099395b2 test allow attribute can disable default-self permissions policies in same-origin frames r=jib
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29779 for changes under testing/web-platform/tests
Comment 15•3 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
Upstream PR merged by moz-wptsync-bot
Updated•3 years ago
|
Updated•2 years ago
|
Description
•