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

Unified Diff: chrome/test/data/fast_tab_close/unload_sets_cookie.html

Issue 11016023: Quickly close tabs/window with long-running unload handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make UnloadDetachedHandler a delegate for all detached tabs. Created 8 years, 2 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: chrome/test/data/fast_tab_close/unload_sets_cookie.html
diff --git a/chrome/test/data/fast_tab_close/unload_sets_cookie.html b/chrome/test/data/fast_tab_close/unload_sets_cookie.html
new file mode 100644
index 0000000000000000000000000000000000000000..347a77a866666c67b4073624f60ce955f56ef0b3
--- /dev/null
+++ b/chrome/test/data/fast_tab_close/unload_sets_cookie.html
@@ -0,0 +1,18 @@
+<!--
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+-->
+<html>
+<head>
+ <title>unload_sets_cookie</title>
+<script>
+addEventListener("unload", function() {
+ var expires = new Date();
+ expires.setMinutes(expires.getMinutes() + 1);
+ document.cookie = "unloaded=ohyeah;path=/;expires=" + expires.toUTCString();
+}, false);
+</script>
+</head>
+<body></body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698