Skip to content

Commit b572571

Browse files
committed
Bug 1653268 [wpt PR 24628] - WebShare: Introduce web-share feature policy, 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
1 parent 4db5977 commit b572571

File tree

2 files changed

+186
-0
lines changed

2 files changed

+186
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
<
2+
!
3+
DOCTYPE
4+
html
5+
>
6+
<
7+
html
8+
>
9+
<
10+
head
11+
>
12+
<
13+
meta
14+
charset
15+
=
16+
"
17+
utf
18+
-
19+
8
20+
"
21+
/
22+
>
23+
<
24+
title
25+
>
26+
WebShare
27+
Test
28+
:
29+
Can
30+
be
31+
disabled
32+
by
33+
feature
34+
policy
35+
<
36+
/
37+
title
38+
>
39+
<
40+
script
41+
src
42+
=
43+
"
44+
/
45+
resources
46+
/
47+
testharness
48+
.
49+
js
50+
"
51+
>
52+
<
53+
/
54+
script
55+
>
56+
<
57+
script
58+
src
59+
=
60+
"
61+
/
62+
resources
63+
/
64+
testharnessreport
65+
.
66+
js
67+
"
68+
>
69+
<
70+
/
71+
script
72+
>
73+
<
74+
script
75+
src
76+
=
77+
"
78+
/
79+
resources
80+
/
81+
testdriver
82+
.
83+
js
84+
"
85+
>
86+
<
87+
/
88+
script
89+
>
90+
<
91+
script
92+
src
93+
=
94+
"
95+
/
96+
resources
97+
/
98+
testdriver
99+
-
100+
vendor
101+
.
102+
js
103+
"
104+
>
105+
<
106+
/
107+
script
108+
>
109+
<
110+
/
111+
head
112+
>
113+
<
114+
body
115+
>
116+
<
117+
script
118+
>
119+
promise_test
120+
(
121+
async
122+
t
123+
=
124+
>
125+
{
126+
await
127+
test_driver
128+
.
129+
bless
130+
(
131+
"
132+
web
133+
share
134+
"
135+
)
136+
;
137+
await
138+
promise_rejects_dom
139+
(
140+
t
141+
"
142+
NotAllowedError
143+
"
144+
navigator
145+
.
146+
share
147+
(
148+
{
149+
}
150+
)
151+
)
152+
;
153+
}
154+
"
155+
share
156+
can
157+
be
158+
disabled
159+
by
160+
feature
161+
policy
162+
"
163+
)
164+
;
165+
<
166+
/
167+
script
168+
>
169+
<
170+
/
171+
body
172+
>
173+
<
174+
/
175+
html
176+
>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Feature
2+
-
3+
Policy
4+
:
5+
web
6+
-
7+
share
8+
'
9+
none
10+
'

0 commit comments

Comments
 (0)