-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1653268 [wpt PR 24628] - WebShare: Introduce web-share feature po…
…licy, a=testonly Automatic update from web-platform-tests WebShare: Introduce web-share feature policy share() requests fail with a rejected promise if the 'web-share' feature is not enabled. We define 'self' as the default feature policy for web-share. The spec has been updated w3c/web-share#166 Intent to Ship https://groups.google.com/a/chromium.org/g/blink-dev/c/fgme9KOd8CU/m/TCYPKQAXAwAJ Bug: 1079104 Change-Id: Id4030448a54589eddb45185cbd6fd8970aee34c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2299791 Commit-Queue: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Ian Clelland <iclellandchromium.org> Reviewed-by: Daniel Murphy <dmurphchromium.org> Reviewed-by: Dominick Ng <dominicknchromium.org> Cr-Commit-Position: refs/heads/master{#789872} -- wpt-commits: 1bd9297b8aa6870267c0c0ad1fa445f897ddecd7 wpt-pr: 24628 UltraBlame original commit: a38778c7eacc05993acc592b72e85e34b9c3074f
- Loading branch information
Showing
2 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
176 changes: 176 additions & 0 deletions
176
testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
html | ||
> | ||
< | ||
head | ||
> | ||
< | ||
meta | ||
charset | ||
= | ||
" | ||
utf | ||
- | ||
8 | ||
" | ||
/ | ||
> | ||
< | ||
title | ||
> | ||
WebShare | ||
Test | ||
: | ||
Can | ||
be | ||
disabled | ||
by | ||
feature | ||
policy | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharness | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharnessreport | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testdriver | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testdriver | ||
- | ||
vendor | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
/ | ||
head | ||
> | ||
< | ||
body | ||
> | ||
< | ||
script | ||
> | ||
promise_test | ||
( | ||
async | ||
t | ||
= | ||
> | ||
{ | ||
await | ||
test_driver | ||
. | ||
bless | ||
( | ||
" | ||
web | ||
share | ||
" | ||
) | ||
; | ||
await | ||
promise_rejects_dom | ||
( | ||
t | ||
" | ||
NotAllowedError | ||
" | ||
navigator | ||
. | ||
share | ||
( | ||
{ | ||
} | ||
) | ||
) | ||
; | ||
} | ||
" | ||
share | ||
can | ||
be | ||
disabled | ||
by | ||
feature | ||
policy | ||
" | ||
) | ||
; | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
/ | ||
body | ||
> | ||
< | ||
/ | ||
html | ||
> |
10 changes: 10 additions & 0 deletions
10
testing/web-platform/tests/web-share/disabled-by-feature-policy.https.sub.html.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Feature | ||
- | ||
Policy | ||
: | ||
web | ||
- | ||
share | ||
' | ||
none | ||
' |