Index: third_party/WebKit/LayoutTests/geolocation-api/remove-remote-context-in-error-callback-crash.html |
diff --git a/third_party/WebKit/LayoutTests/geolocation-api/remove-remote-context-in-error-callback-crash.html b/third_party/WebKit/LayoutTests/geolocation-api/remove-remote-context-in-error-callback-crash.html |
index 1d27198cc1ee8a67034ae669f2da4586f473a049..2ffca6d0e1428b3f793ad00c10df9d3de3556570 100644 |
--- a/third_party/WebKit/LayoutTests/geolocation-api/remove-remote-context-in-error-callback-crash.html |
+++ b/third_party/WebKit/LayoutTests/geolocation-api/remove-remote-context-in-error-callback-crash.html |
@@ -3,22 +3,13 @@ |
<head> |
<script src="../resources/js-test.js"></script> |
<script src="../resources/mojo-helpers.js"></script> |
+<script src="../resources/gc.js"></script> |
<script src="resources/geolocation-mock.js"></script> |
</head> |
<body> |
<script> |
description("Tests that we do not crash when a Geolocation request is made from a remote frame, which is then removed from the DOM in the error callback."); |
-function gc() { |
- if (window.GCController) { |
- GCController.collect(); |
- return; |
- } |
- |
- for (var i = 0; i < 10000; i++) |
- new String(i); |
-} |
- |
function onIframeReady() { |
// Make request from remote frame |
iframe.contentWindow.navigator.geolocation.getCurrentPosition(function() { |