summaryrefslogtreecommitdiffstats
path: root/toolkit/components/browser/nsIWebBrowserPrint.idl
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/browser/nsIWebBrowserPrint.idl')
-rw-r--r--toolkit/components/browser/nsIWebBrowserPrint.idl9
1 files changed, 8 insertions, 1 deletions
diff --git a/toolkit/components/browser/nsIWebBrowserPrint.idl b/toolkit/components/browser/nsIWebBrowserPrint.idl
index 5a900b7b65..2b5d7669bc 100644
--- a/toolkit/components/browser/nsIWebBrowserPrint.idl
+++ b/toolkit/components/browser/nsIWebBrowserPrint.idl
@@ -30,7 +30,7 @@ native PrintPreviewResolver(std::function<void(const mozilla::dom::PrintPreviewR
* nsIWebBrowserPrint corresponds to the main interface
* for printing an embedded Gecko web browser window/document
*/
-[scriptable, uuid(c9a934ed-fff1-4971-bfba-6c25ad70e1e6)]
+[scriptable, builtinclass, uuid(c9a934ed-fff1-4971-bfba-6c25ad70e1e6)]
interface nsIWebBrowserPrint : nsISupports
{
/**
@@ -85,6 +85,13 @@ interface nsIWebBrowserPrint : nsISupports
*/
readonly attribute long printPreviewCurrentPageNumber;
+ /*
+ * Whether the document to print needs to have its window closed after printing
+ * is done - see OPEN_PRINT_BROWSER and specifically handleStaticCloneCreatedForPrint().
+ * This is set if the document is not a static clone.
+ */
+ [infallible] attribute boolean closeWindowAfterPrint;
+
/**
* Print the specified DOM window
*