Bug 1660291 - Make print frame in the context menu use the new print UI when appropriate. r=nordzilla
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 20 Aug 2020 17:48:10 +0000
changeset 610170 e375b85cfba38ff5f49493d1d48b7561f7f2f8d7
parent 610169 30646ad76476d673f2a3155c461771006bf1cc75
child 610171 8c97dd39c9ee97dacb2a73c1b445703316917b75
push id13553
push userffxbld-merge
push dateMon, 24 Aug 2020 12:51:36 +0000
treeherdermozilla-beta@a54f8b5d0977 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnordzilla
bugs1660291
milestone81.0a1
first release with
nightly linux32
e375b85cfba3 / 81.0a1 / 20200820212107 / files
nightly linux64
e375b85cfba3 / 81.0a1 / 20200820212107 / files
nightly mac
e375b85cfba3 / 81.0a1 / 20200820212107 / files
nightly win32
e375b85cfba3 / 81.0a1 / 20200820212107 / files
nightly win64
e375b85cfba3 / 81.0a1 / 20200820212107 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1660291 - Make print frame in the context menu use the new print UI when appropriate. r=nordzilla I had to make printing subframes work with the new UI for window.print(), we may as well use it. Differential Revision: https://phabricator.services.mozilla.com/D87785
browser/base/content/nsContextMenu.js
--- a/browser/base/content/nsContextMenu.js
+++ b/browser/base/content/nsContextMenu.js
@@ -1878,17 +1878,17 @@ class nsContextMenu {
     });
   }
 
   savePageAs() {
     saveBrowser(this.browser);
   }
 
   printFrame() {
-    PrintUtils.printWindow(this.actor.browsingContext);
+    PrintUtils.startPrintWindow(this.actor.browsingContext);
   }
 
   switchPageDirection() {
     gBrowser.selectedBrowser.sendMessageToActor(
       "SwitchDocumentDirection",
       {},
       "SwitchDocumentDirection",
       "roots"