| Index: third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html b/third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html
|
| index dc3895e63cf1e76e6408a3a88dfb8717f28e4080..b44028314185db30d4504cb0a448a55d722e9e08 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html
|
| @@ -3,6 +3,7 @@
|
| <head>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/gc.js"></script>
|
| </head>
|
| <body>
|
| <iframe id="subframe" src="about:blank"></iframe>
|
| @@ -14,16 +15,6 @@ var testNavigatorLater = async_test("Accessing a navigator object that got remov
|
| // Reference to the removed navigator object.
|
| var oldNav = null;
|
|
|
| -function gc() {
|
| - if (window.GCController) {
|
| - GCController.collect();
|
| - } else {
|
| - for (var i = 0; i < 10000; i++) {
|
| - var s = new String("abc");
|
| - }
|
| - }
|
| -}
|
| -
|
| function test() {
|
| // Keep a reference of the navigator and remove the frame.
|
| oldNav = window.frames[0].navigator;
|
|
|