onbeforeunload in packaged apps

903 views
Skip to first unread message

ningxin hu

unread,
Aug 24, 2012, 9:10:10 PM8/24/12
to chromi...@chromium.org
Hi,

I'd like to enable "confirm save unsaved documents before exit" feature in packaged apps. Firstly, I found window.onbeforeunload seems not work. This API belongs to "Disabled Web Features" (http://developer.chrome.com/trunk/apps/app_deprecated.html). Actually, I expect to get the "before-window-close" event and show confirm dialog in Javascript popup. Will packaged app provide such kind of feature and when? Thanks.

-ningxin

Mihai Parparita

unread,
Aug 27, 2012, 3:39:42 PM8/27/12
to ningxin hu, chromi...@chromium.org
http://crbug.com/130465 is where the replacement for beforeunload is being tracked.

Mihai


-ningxin

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/wjUwpdqY_uwJ.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.

Reply all
Reply to author
Forward
0 new messages