Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js |
index f83c867309311ce323108baa3f037477c4b62504..533b34a62b555ee9ea49bb6730614cc779b32333 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js |
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/callback-to-deleted-context.js |
@@ -12,7 +12,11 @@ function onSecondIframeLoaded() { |
} |
var iframe = document.createElement('iframe'); |
-iframe.src = 'resources/callback-to-deleted-context-inner1.html'; |
-document.body.appendChild(iframe); |
+geolocationServiceMock.then(mock => { |
+ mock.setGeolocationPermission(true); |
+ mock.setGeolocationPosition(51.478, -0.166, 100); |
+ iframe.src = 'resources/callback-to-deleted-context-inner1.html'; |
+ document.body.appendChild(iframe); |
+}); |
window.jsTestIsAsync = true; |