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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Loading...</title> 3 <title>Loading...</title>
4 </head> 4 </head>
5 <body onload="attachUnloadListener()"> 5 <body onload="onLoad()" onunload="onUnload()">
6 <script> 6 <script>
7 function attachUnloadListener() { 7 function onLoad() {
8 window.addEventListener('unload', onUnload, false); 8 window.top.postMessage('message', '*');
9 document.title = "set cookie on unload"; 9 document.title = "set cookie on unload";
10 } 10 }
11 11
12 function onUnload() { 12 function onUnload() {
13 document.cookie = "onunloadCookie=foo"; 13 document.cookie = "onunloadCookie=foo";
14 } 14 }
15 </script> 15 </script>
16 <p>Navigate to another page to set cookie</p> 16 <p>Navigate to another page to set cookie</p>
17 </body> 17 </body>
18 </html> 18 </html>
OLDNEW
« 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