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

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: Patch for landing Created 7 years, 6 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..45b8a50a595f0de283745e56fa275284f261b02f
--- /dev/null
+++ b/chrome/test/data/fast_tab_close/unload_sets_cookie.html
@@ -0,0 +1,18 @@
+<!--
+// Copyright 2013 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>
« no previous file with comments | « chrome/test/data/fast_tab_close/no_listeners.html ('k') | chrome/test/data/fast_tab_close/unload_sleep_before_cookie.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698