Bug 1274834 - Make print preview toolbar a fullscreentoolbar. r?dao draft
authorXidorn Quan <me@upsuper.org>
Mon, 23 May 2016 13:54:00 +1000
changeset 369583 c14545442fb1d1dbd59ebfa4e53ce8d90c053c3c
parent 369550 91c7137aa69baa2d87e40008340f3428d45bf19c
child 521565 2c407d3d498fcb0d8afe8254c8a4815a45a32bd6
push id18856
push userxquan@mozilla.com
push dateMon, 23 May 2016 03:54:30 +0000
reviewersdao
bugs1274834
milestone49.0a1
Bug 1274834 - Make print preview toolbar a fullscreentoolbar. r?dao MozReview-Commit-ID: HdQBBcbSQSs
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -525,16 +525,17 @@ var PrintUtils = {
       this._sourceBrowser.docShellIsActive = true;
 
       // show the toolbar after we go into print preview mode so
       // that we can initialize the toolbar with total num pages
       const XUL_NS =
         "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
       printPreviewTB = document.createElementNS(XUL_NS, "toolbar");
       printPreviewTB.setAttribute("printpreview", true);
+      printPreviewTB.setAttribute("fullscreentoolbar", true);
       printPreviewTB.id = "print-preview-toolbar";
 
       let navToolbox = this._listener.getNavToolbox();
       navToolbox.parentNode.insertBefore(printPreviewTB, navToolbox);
       printPreviewTB.initialize(ppBrowser);
 
       // copy the window close handler
       if (document.documentElement.hasAttribute("onclose"))