1 <script src=
"/resources/testdriver.js"></script>
2 <script src=
"/resources/testdriver-vendor.js"></script>
6 Promise
.resolve().then(async () => {
7 await test_driver
.set_permission(
8 { name
: "geolocation" },
13 await
new Promise((resolve
, reject
) => {
14 navigator
.geolocation
.getCurrentPosition(resolve
, reject
);
16 window
.parent
.postMessage({ enabled
: true }, "*");
18 window
.parent
.postMessage({ enabled
: false }, "*");