If we're in the middle of printing when window.close() is called, then defer closing the window until printing completes. This avoids tearing down the presentation while the print engine is still using it. Bug 172921, r=jkeiser, sr=dbaron.

git-svn-id: svn://10.0.0.236/trunk@147348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2003-09-26 21:45:15 +00:00
parent 1ce0a6e468
commit 8621b9339d
4 changed files with 68 additions and 2 deletions

View File

@@ -59,4 +59,12 @@ interface nsIContentViewer : nsISupports
attribute boolean enableRendering;
attribute boolean sticky;
/*
* This is called when the DOM window wants to be closed. Returns true
* if the window can close immediately. Otherwise, returns false and will
* close the DOM window as soon as practical.
*/
boolean requestWindowClose();
};