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:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user