File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- Header: Cross-Origin-Opener-Policy: same-origin -->
2
+ <html >
3
+ <head >
4
+ <title >Cross-Origin-Opener-Policy test document</title >
5
+ <style >
6
+ body {
7
+ font-family: sans-serif;
8
+ font-size: 1rem;
9
+ line-height: 1.5rem;
10
+ }
11
+ main {
12
+ max-width: 600px;
13
+ margin-top: 1rem;
14
+ }
15
+ </style >
16
+ </head >
17
+ <body >
18
+ <main >
19
+ <h1 >Cross-Origin-Opener-Policy test</h1 >
20
+ <p >
21
+ This page tests the client on a document which is served with a
22
+ <a
23
+ href =" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"
24
+ ><code >Cross-Origin-Opener-Policy: same-origin</code ></a
25
+ >
26
+ header. This header prevents popup windows from accessing their opener
27
+ using
28
+ <a href =" https://developer.mozilla.org/en-US/docs/Web/API/Window/opener"
29
+ ><code >window.opener</code ></a
30
+ >, which affects the client's login popup.
31
+ </p >
32
+ { {{ hypothesisScript } }}
33
+ </main >
34
+ </body >
35
+ </html >
Original file line number Diff line number Diff line change 29
29
<ul >
30
30
<li ><a href =" /document/z-index" >Content with high <code >z-index</code > style</a ></li >
31
31
<li ><a href =" /document/shadow-dom" >Content in shadow DOM</a ></li >
32
+ <li ><a href =" /document/coop-test" ><code >Cross-Origin-Opener-Policy</code > test</a ></li >
32
33
<li ><a href =" /document/host-in-shadow-root" >Hypothesis loaded into frame in shadow root</a ></li >
33
34
<li ><a href =" /document/parent-frame" >Annotation-enabled iframe</a ></li >
34
35
<li ><a href =" /document/sidebar-external-container" >Sidebar in external container</a ></li >
You can’t perform that action at this time.
0 commit comments