Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
screen-orientation
/
resources
/
sandboxed-iframe-locking.html
blob: e1b50f670105f3a05dacd3518d62770685121c67 [
file
] [
log
] [
blame
]
<script>
let msg
=
""
;
screen
.
orientation
.
lock
(
"portrait-primary"
)
.
then
(()
=>
{
msg
=
screen
.
orientation
.
type
;
}).
catch
(
error
=>
{
msg
=
error
.
name
;
}).
finally
(()
=>
{
parent
.
window
.
postMessage
(
msg
,
"*"
);
});
</script>