W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] When closing the browser

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 12 Dec 2008 08:50:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0812120845360.30225@hixie.dreamhostps.com>
On Thu, 28 Feb 2008, ddailey wrote:
> The user opens a web application as one of many tabs in a web browser. 
> They then, either within the application window, accidentally hit CTRL W 
> (or its Mac equivalent), or from the operating system, issue a close 
> application command. Most apps (as opposed to the more "passive" 
> browsers) detect that new content has been developed and in is jeopardy 
> of being lost and therefore prompt the user to the status of this 
> possible data loss. The browser, unless I'm missing something, seems to 
> have a different status within the OS and just closes without ceremony.

I just went ahead and specced out the 'onbeforeunload' feature that most 
browsers support today that handles this case.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 12 December 2008 00:50:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC