Skip to content

Commit 03bb50c

Browse files
committed
Bug 1919939 [wpt PR 48213] - [Partitioned Popins] Popin-Policy Response Header (Default none), a=testonly
Automatic update from web-platform-tests [Partitioned Popins] Popin-Policy Response Header (Default none) Every top-frame response for a popin must include a Popin-Policy header that permits the popin's opener's top-frame-origin. This is to ensure popins cannot be opened in a partitioned context other than the one they are designed to. This CL requires the header to exist and permit access, whereas before omitting the header would permit access. Explainer: https://explainers-by-googlers.github.io/partitioned-popins/ I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/ApU_zUmpQ2g/ Bug: 340606651 Change-Id: I4577cefe3687c1cf0501a4c195161f1335d8023b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5865610 Reviewed-by: Dana Fried <dfriedchromium.org> Auto-Submit: Ari Chivukula <arichivchromium.org> Commit-Queue: Rakina Zata Amni <rakinachromium.org> Reviewed-by: Rakina Zata Amni <rakinachromium.org> Cr-Commit-Position: refs/heads/main{#1356212} -- wpt-commits: 14686909771afddb61df9d8fc9a46eaeabb8df76 wpt-pr: 48213 UltraBlame original commit: 33271155043f49fe6e92fa125680f5c1f59c43e7
1 parent eec3837 commit 03bb50c

13 files changed

+232
-14
lines changed

testing/web-platform/tests/html/browsers/browsing-the-web/remote-context-helper/resources/executor-window.py

+96-14
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,101 @@
262262
null
263263
"
264264

265+
headers
266+
=
267+
[
268+
(
269+
"
270+
Content
271+
-
272+
Type
273+
"
274+
"
275+
text
276+
/
277+
html
278+
"
279+
)
280+
]
281+
282+
#
283+
We
284+
always
285+
permit
286+
partitioned
287+
popins
288+
to
289+
be
290+
loaded
291+
for
292+
testing
293+
.
294+
295+
#
296+
See
297+
https
298+
:
299+
/
300+
/
301+
explainers
302+
-
303+
by
304+
-
305+
googlers
306+
.
307+
github
308+
.
309+
io
310+
/
311+
partitioned
312+
-
313+
popins
314+
/
315+
316+
if
317+
request
318+
.
319+
headers
320+
.
321+
get
322+
(
323+
b
324+
"
325+
Sec
326+
-
327+
Popin
328+
-
329+
Context
330+
"
331+
)
332+
=
333+
=
334+
b
335+
"
336+
partitioned
337+
"
338+
:
339+
340+
headers
341+
.
342+
append
343+
(
344+
(
345+
b
346+
'
347+
Popin
348+
-
349+
Policy
350+
'
351+
b
352+
"
353+
partitioned
354+
=
355+
*
356+
"
357+
)
358+
)
359+
265360
#
266361
This
267362
sets
@@ -294,20 +389,7 @@
294389
return
295390
(
296391
status
297-
[
298-
(
299-
"
300-
Content
301-
-
302-
Type
303-
"
304-
"
305-
text
306-
/
307-
html
308-
"
309-
)
310-
]
392+
headers
311393
f
312394
"
313395
"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*

testing/web-platform/tests/partitioned-popins/resources/partitioned-popins.cookies-popin.py

+20
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,26 @@
5656
"
5757
)
5858

59+
headers
60+
.
61+
append
62+
(
63+
(
64+
b
65+
'
66+
Popin
67+
-
68+
Policy
69+
'
70+
b
71+
"
72+
partitioned
73+
=
74+
*
75+
"
76+
)
77+
)
78+
5979
cookies
6080
=
6181
readCookies
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*

testing/web-platform/tests/partitioned-popins/resources/partitioned-popins.request-header.http.py

+20
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@
6767
"
6868
)
6969

70+
headers
71+
.
72+
append
73+
(
74+
(
75+
b
76+
'
77+
Popin
78+
-
79+
Policy
80+
'
81+
b
82+
"
83+
partitioned
84+
=
85+
*
86+
"
87+
)
88+
)
89+
7090
message
7191
=
7292
request

testing/web-platform/tests/partitioned-popins/resources/partitioned-popins.request-header.initial.py

+20
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,26 @@
125125
)
126126
)
127127

128+
headers
129+
.
130+
append
131+
(
132+
(
133+
b
134+
'
135+
Popin
136+
-
137+
Policy
138+
'
139+
b
140+
"
141+
partitioned
142+
=
143+
*
144+
"
145+
)
146+
)
147+
128148
return
129149
302
130150
headers

testing/web-platform/tests/partitioned-popins/resources/partitioned-popins.request-header.js.py

+20
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@
6767
"
6868
)
6969

70+
headers
71+
.
72+
append
73+
(
74+
(
75+
b
76+
'
77+
Popin
78+
-
79+
Policy
80+
'
81+
b
82+
"
83+
partitioned
84+
=
85+
*
86+
"
87+
)
88+
)
89+
7090
message
7191
=
7292
request
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Popin
2+
-
3+
Policy
4+
:
5+
partitioned
6+
=
7+
*

0 commit comments

Comments
 (0)