fune/browser/components/ssb
Emilio Cobos Álvarez 044b3c4332 Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi
This centralizes our print and preview setup in nsGlobalWindowOuter so
that we never re-clone a clone, and so that we reuse the window.open()
codepath to create the browsing context to clone into.

For window.print, for both old print dialog / silent printing and new
print preview UI, we now create a hidden browser (as in with visibility:
collapse, which takes no space but still gets a layout box).

 * In the modern UI case, this browser is swapped with the actual print
   preview clone, and the UI takes care of removing the browser.

 * In the print dialog / silent printing case, the printing code calls
   window.close() from nsDocumentViewer::OnDonePrinting().

 * We don't need to care about the old print preview UI for this case
   because it can't be open from window.print().

We need to fall back to an actual window when there's no
nsIBrowserDOMWindow around for WPT print tests and the like, which don't
have one. That seems fine, we could special-case this code path more if
needed but it doesn't seem worth it.

Differential Revision: https://phabricator.services.mozilla.com/D87063
2020-08-25 17:45:12 +00:00
..
content Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi 2020-08-25 17:45:12 +00:00
tests Bug 1634030: lazify main app menu r=Gijs 2020-08-10 17:09:55 +00:00
components.conf Bug 1602168: Add a command line argument to launch an ssb. r=Gijs 2019-12-12 20:23:00 +00:00
ImageTools.jsm Bug 1603272: List installed site specific browsers in the app menu. r=Gijs 2019-12-23 18:58:03 +00:00
moz.build Bug 1602191: Create a shortcut on the windows desktop to launch an installed ssb. r=mhowell,Gijs 2019-12-17 03:44:31 +00:00
SiteSpecificBrowserChild.jsm Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin 2020-06-15 23:24:07 +00:00
SiteSpecificBrowserParent.jsm Bug 1602173: Capture attempts to load pages and redirect back to the browser when needed. r=Gijs 2019-12-13 15:48:54 +00:00
SiteSpecificBrowserService.jsm Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski 2020-07-10 23:58:28 +00:00
WindowsSupport.jsm Bug 1602195: Show site specific browsers as separate taskbar entries on windows. r=mhowell 2019-12-29 11:50:19 +00:00