Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html |
index 81311680bfeaf1e21dfecffda46f10ac5dfc74a8..763f56695e6b20df044e333db26d08bc270aa064 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/resources/callback-to-deleted-context-inner1.html |
@@ -6,12 +6,12 @@ |
if (!window.testRunner || !window.internals) |
debug('This test can not run without testRunner or internals'); |
- internals.setGeolocationClientMock(document); |
- internals.setGeolocationPermission(document, true); |
- internals.setGeolocationPosition(document, 51.478, -0.166, 100); |
- |
var parent = window.parent; |
+ internals.setGeolocationClientMock(parent.document); |
+ internals.setGeolocationPermission(parent.document, true); |
+ internals.setGeolocationPosition(parent.document, 51.478, -0.166, 100); |
+ |
// Make request from remote frame, this frame will be gone by the time the Geolocation |
// object attempts to invoke the callback. |
window.parent.navigator.geolocation.getCurrentPosition(function() { |