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

Unified Diff: remoting/webapp/me2mom/choice.html

Issue 7583018: Add beforeUnload handler to confirm exit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed client/host confusion. Created 9 years, 4 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: remoting/webapp/me2mom/choice.html
diff --git a/remoting/webapp/me2mom/choice.html b/remoting/webapp/me2mom/choice.html
index c71f800b6049e8902b2a4e6c655e3cd97c34e8b9..1b0cdef543471b35080a3e42157f00e94edf6009 100644
--- a/remoting/webapp/me2mom/choice.html
+++ b/remoting/webapp/me2mom/choice.html
@@ -25,7 +25,8 @@ found in the LICENSE file.
<title i18n-content="pageTitle"></title>
</head>
- <body onLoad="remoting.init();"
+ <body onBeforeUnload="return remoting.promptClose();"
+ onLoad="remoting.init();"
onUnload="remoting.disconnect();">
<!-- loading-mode is initially visible, but becomes hidden as soon as an

Powered by Google App Engine
This is Rietveld 408576698