| Index: chrome/common/extensions/api/app_window.idl
|
| diff --git a/chrome/common/extensions/api/app_window.idl b/chrome/common/extensions/api/app_window.idl
|
| index daf90f438f75347027a85e9cb5198c35b13d5d3d..1303385249f6b14316cfa871787b772c460033ee 100644
|
| --- a/chrome/common/extensions/api/app_window.idl
|
| +++ b/chrome/common/extensions/api/app_window.idl
|
| @@ -411,7 +411,11 @@ namespace app.window {
|
| // Fired when the window is resized.
|
| [nocompile] static void onBoundsChanged();
|
|
|
| - // Fired when the window is closed.
|
| + // Fired when the window is closed. Note, this should be listened to from
|
| + // a window other than the window being closed, for example from the
|
| + // background page. This is because the window being closed will be in the
|
| + // process of being torn down when the event is fired, which means not all
|
| + // APIs in the window's script context will be functional.
|
| [nocompile] static void onClosed();
|
|
|
| // Fired when the window is fullscreened.
|
|
|