Sign in
chromium
/
external
/
github.com
/
web-platform-tests
/
wpt
/
refs/heads/johnjanInputTestAddition
/
.
/
screen-orientation
/
resources
/
sandboxed-iframe-locking.html
blob: e1b50f670105f3a05dacd3518d62770685121c67 [
file
] [
edit
]
<script>
let msg
=
""
;
screen
.
orientation
.
lock
(
"portrait-primary"
)
.
then
(()
=>
{
msg
=
screen
.
orientation
.
type
;
}).
catch
(
error
=>
{
msg
=
error
.
name
;
}).
finally
(()
=>
{
parent
.
window
.
postMessage
(
msg
,
"*"
);
});
</script>