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

Side by Side Diff: chrome/test/data/prerender/prerender_loader_with_beforeunload.html

Issue 1940363002: Add two tests to ensure WebContents does not leak on prerender swap in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits in comments addressed 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
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Preloader</title>
4 <script src="prerender_events_common.js"></script>
5
6 <script>
7 function BeforeUnloadHandler() {
8 // Notify with XHR the RequestCounter that the handler has been executed.
9 // The request must be async in order to be allowed in a beforeunload
10 // handler.
11 var xhr = new XMLHttpRequest();
12 xhr.open('GET', 'http://unload-url.test', true);
13 xhr.send();
14 }
15
16 addEventListener('beforeunload', BeforeUnloadHandler, false);
17 </script>
18
19 </head>
20 <body>
21 <script>
22 AddPrerender('REPLACE_WITH_PRERENDER_URL', 0);
23 </script>
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698