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

Unified Diff: content/test/data/onunload_cookie.html

Issue 140553003: Browser test that demonstrates failure to run subframe unload handlers. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 4 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
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/test/data/onunload_cookie_wrapper.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/onunload_cookie.html
diff --git a/content/test/data/onunload_cookie.html b/content/test/data/onunload_cookie.html
index 0a7de8d5263bd1450f8eb79c68e01138affca4b9..a40650a7bf0e0017c9d489bb3f6822dc1f27e176 100644
--- a/content/test/data/onunload_cookie.html
+++ b/content/test/data/onunload_cookie.html
@@ -2,10 +2,10 @@
<head>
<title>Loading...</title>
</head>
- <body onload="attachUnloadListener()">
+ <body onload="onLoad()" onunload="onUnload()">
<script>
- function attachUnloadListener() {
- window.addEventListener('unload', onUnload, false);
+ function onLoad() {
+ window.top.postMessage('message', '*');
document.title = "set cookie on unload";
}
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/test/data/onunload_cookie_wrapper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698