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

Side by Side Diff: chrome/test/data/panels/onbeforeunload.html

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 3 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var close_call_num = 1;
5 var title_first_close = "TitleFirstClose";
6 var title_second_close = "TitleSecondClose";
7
8 function changeTitle() {
9 if (close_call_num == 1)
10 document.title = title_first_close;
11 else if (close_call_num == 2)
12 document.title = title_second_close;
13 close_call_num++;
14 }
15
16 window.onbeforeunload = function() {
17 if (close_call_num <= 2)
18 setTimeout("changeTitle()", 0);
19 return "some random string";
20 }
21 </script>
22 </head>
23 <body>
24 OnBeforeUnloadHandler In Panels.
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/panels/context_menu2/test.js ('k') | chrome/test/data/panels/test_extension/128.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698