Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/navigator-detached-no-crash.html

Issue 2818563004: sendBeacon should throw a TypeError on bad URLs. (Closed)
Patch Set: Patch Set 2 was the final submit, 3 was uploaded by mistake. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698