| Index: LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js
|
| diff --git a/LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js b/LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js
|
| index 6ff63c99b2ee6ae539f9aee5f76c3551c5c38e8c..6792b64155e4e3bd13de0c0ed5166603a01e55cb 100644
|
| --- a/LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js
|
| +++ b/LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js
|
| @@ -3,15 +3,16 @@ description("Tests that when a request is made on a Geolocation object, permissi
|
| if (!window.testRunner || !window.internals)
|
| debug('This test can not run without testRunner or internals');
|
|
|
| -internals.setGeolocationClientMock(document);
|
| -
|
| -// Prime the Geolocation instance by denying permission. This makes sure that we execute the
|
| -// same code path for both preemptive and non-preemptive permissions policies.
|
| -internals.setGeolocationPermission(document, false);
|
| -internals.setGeolocationPosition(document, 51.478, -0.166, 100);
|
| -
|
| var error;
|
| function onIframeLoaded() {
|
| + var iframeDocument = iframe.contentWindow.document;
|
| + internals.setGeolocationClientMock(iframeDocument);
|
| +
|
| + // Prime the Geolocation instance by denying permission. This makes sure that we execute the
|
| + // same code path for both preemptive and non-preemptive permissions policies.
|
| + internals.setGeolocationPermission(iframeDocument, false);
|
| + internals.setGeolocationPosition(iframeDocument, 51.478, -0.166, 100);
|
| +
|
| iframeGeolocation = iframe.contentWindow.navigator.geolocation;
|
| iframeGeolocation.getCurrentPosition(function() {
|
| testFailed('Success callback invoked unexpectedly');
|
|
|