Closed Bug 1597285 Opened 5 years ago Closed 3 years ago

Test "display-capture" permissions policy correctly.

Categories

(Core :: WebRTC: Audio/Video, defect, P3)

defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: jib, Assigned: karlt)

References

(Regression)

Details

(Keywords: regression)

Attachments

(9 files)

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=1596585

Is 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

See Also: → 1596585
Regressed by: 1580944
Priority: -- → P3

Bugbug thinks this bug is a defect, but please change it back in case of error.

Type: task → defect
Assignee: nobody → karlt
Blocks: 1577199
Status: NEW → ASSIGNED
Depends on: 1667968
See Also: → 1523958

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

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

See Also: → 1720643

Renaming issue to reflect wpt patches and bug 1596585 having since been fixed.

Summary: Add mochitest to test "display-capture" in iframes if bug 1596585 can't be fixed soon. → Test "display-capture" permissions policy correctly.
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
Regressions: 1722250
Regressions: 1722285
Upstream PR merged by moz-wptsync-bot
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: