Граф коммитов

222 Коммитов

Автор SHA1 Сообщение Дата
Harry Twyford 6cd788487b Bug 1525788 - Support sending Handoff. r=mstange,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D129406
2021-11-02 18:08:08 +00:00
Emilio Cobos Álvarez 2fad84276c Bug 1525107 - Move mozilla::ColorScheme definition to its own header. r=dholbert
No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D129745
2021-10-29 19:58:25 +00:00
Emilio Cobos Álvarez 4f8856c545 Bug 1730503 - Make RDM force Android-style scrollbars better. r=mstange,devtools-backward-compat-reviewers,nchevobbe
There are a few bits that still don't work with this patch but will with the
following patches.

Differential Revision: https://phabricator.services.mozilla.com/D128083
2021-10-12 09:21:17 +00:00
sotaro bbbd304278 Bug 1732733 - Add support of window occlusion on Windows by disabling it by pref r=jrmuizel,gfx-reviewers
Implementation is basically borrowed from chromium's NativeWindowOcclusionTrackerWin. For now, window occlusion could be applied only to toplevel window with compositor. Overview of current implementation is the following.
https://github.com/sotaroikeda/firefox-diagrams/blob/master/widget/widget_WinWindowOcclusionTracker_94.pdf

Capability of window occlusion is disabled by pref. VirtualDesktop handling is going to be handled by Bug 1732737.
nsPrintDialogUtil.cpp is moved to non-unified source to avoid build failure.

Differential Revision: https://phabricator.services.mozilla.com/D126710
2021-10-06 07:21:59 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Robert Mader 56983e3a5b Bug 1709606 - Move GfxInfoX11 into gtk and remove X11 from the name, r=stransky
It is only used by the GTK backend, supports Wayland as well and
is highly unlikely to be reused by another backend.

This is also better in line with how this is handled for other
platforms.

While on it, do some small cleanups.

Depends on D114423

Differential Revision: https://phabricator.services.mozilla.com/D114424
2021-05-07 12:31:27 +00:00
Robert Mader cc94065f1b Bug 1709606 - Move WindowSurface* into the gtk backend, r=stransky
It's only used by the GTK backend and all other users are located
there as well. Further more, it's unlikely that the will ever be
another X11 backend or that these classes will get reused elsewhere.

So in order to keep changes to `WindowSurface` out of the common
widget space, move it into `gtk`.

While on it, also clean up the affected moz.build files a bit
by making orders more consistent. No functional changes intended.

Differential Revision: https://phabricator.services.mozilla.com/D114422
2021-05-07 12:31:26 +00:00
David Parks a03573311b Bug 1682030 - Remove nsIPluginWidget r=jmathies
Removes unused nsIPluginWidget, as part of removing all NPAPI support.

Differential Revision: https://phabricator.services.mozilla.com/D107149
2021-04-06 19:28:15 +00:00
David Parks d05df71761 Bug 1682030 - Remove PPluginWidget. r=jmathies,ipc-reviewers,nika
Removes the NPAPI plugin widget actor and its proxy, as part of removing all of NPAPI plugin support.

Differential Revision: https://phabricator.services.mozilla.com/D107141
2021-04-06 19:28:11 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks 9a7a73cbc8 Bug 1682030 - Remove nsIPluginWidget r=jmathies
Removes unused nsIPluginWidget, as part of removing all NPAPI support.

Differential Revision: https://phabricator.services.mozilla.com/D107149
2021-04-05 23:48:38 +00:00
David Parks 45f5dd79ff Bug 1682030 - Remove PPluginWidget. r=jmathies,ipc-reviewers,nika
Removes the NPAPI plugin widget actor and its proxy, as part of removing all of NPAPI plugin support.

Differential Revision: https://phabricator.services.mozilla.com/D107141
2021-04-05 23:48:34 +00:00
Markus Stange 53bed1aa5d Bug 1699792 - Split off the inner parts of nsStandaloneNativeMenu into a new class called NativeMenuMac. r=harry
NativeMenuMac implements a new mozilla::widget::NativeMenu interface.
This interface is intended to be used by cross-platform C++ code.

nsStandaloneNativeMenu is now only used to implement the IDL interface (which
is used from JavaScript code), and C++ code can use NativeMenu with its more
ergonomic C++ interface.

Differential Revision: https://phabricator.services.mozilla.com/D109173
2021-03-23 13:40:32 +00:00
Markus Stange 3866ebf163 Bug 1691213 - DeCOMtaminate nsINativeMenuService and rename it to mozilla::widget::NativeMenuSupport. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D104311
2021-02-11 19:43:58 +00:00
Masayuki Nakano 796bb2f86e Bug 1689034 - part 1: Get rid of communication part between plugin process and widget in the main process r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103138
2021-01-28 08:23:33 +00:00
Cameron McCormack eefbb537b9 Bug 1683204 - Include content theme configuration details in FullLookAndFeel. r=spohl
And re-enable the RemoteLookAndFeel by default with Gtk.

When the RemoteLookAndFeel is enabled and the non-native theme is not
enabled, we still need to configure the Gtk theme in content processes,
since we're still using Gtk to paint widget backgrounds etc. Without
this, we can end up using LookAndFeel colors from a light theme but
painting widget backgrounds from a dark theme.

Other platforms don't configure themes for content processes
differently, so on those platforms LookAndFeelTheme is an empty struct
and we skip the ConfigureTheme call.

Differential Revision: https://phabricator.services.mozilla.com/D100223
2020-12-22 19:26:41 +00:00
Jed Davis 907aa1cd3c Bug 1470983 - Remote all LookAndFeel values for the Gtk backend. r=spohl,jld
This adds a new LookAndFeel implementation, RemoteLookAndFeel, which can
be used in content processes and is supplied with all of its values by the
parent process.

Co-authored-by: Cameron McCormack <cam@mcc.id.au>

Differential Revision: https://phabricator.services.mozilla.com/D97977
2020-12-16 04:17:36 +00:00
Markus Stange 0cd35bc56e Bug 1676771 - Add a TouchResampler class. r=kats
This is similar to GeckoTouchDispatcher from the B2G days:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/widget/gonk/GeckoTouchDispatcher.cpp

The values for the various kTouchResample* constants were taken from the
original pref values:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/gfx/thebes/gfxPrefs.h#l225

There are some extra sources of complexity:
 - TouchResampler tries hard to generate one outgoing event per incoming event,
   so that the result code tracking to the Java front-end code works properly.
 - TouchResampler tries hard to never lose any historicalData information, so
   that the velocity tracker has a maximum amount of information to work with.
 - TouchResampler has a "reset to non-resampled state" functionality so that
   overpredictions are corrected when the finger pauses or when a touch non-move
   event fires.

Differential Revision: https://phabricator.services.mozilla.com/D96795
2020-11-18 03:57:35 +00:00
Bogdan Tara 2fdb1139bf Backed out 3 changesets (bug 1676771) for TouchResampler.cpp linux debug bustage CLOSED TREE
Backed out changeset c01032316a72 (bug 1676771)
Backed out changeset 45736914b063 (bug 1676771)
Backed out changeset 8700eb46bb8b (bug 1676771)
2020-11-18 04:54:03 +02:00
Markus Stange 231f0ad6be Bug 1676771 - Add a TouchResampler class. r=kats
This is similar to GeckoTouchDispatcher from the B2G days:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/widget/gonk/GeckoTouchDispatcher.cpp

The values for the various kTouchResample* constants were taken from the
original pref values:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/gfx/thebes/gfxPrefs.h#l225

There are some extra sources of complexity:
 - TouchResampler tries hard to generate one outgoing event per incoming event,
   so that the result code tracking to the Java front-end code works properly.
 - TouchResampler tries hard to never lose any historicalData information, so
   that the velocity tracker has a maximum amount of information to work with.
 - TouchResampler has a "reset to non-resampled state" functionality so that
   overpredictions are corrected when the finger pauses or when a touch non-move
   event fires.

Differential Revision: https://phabricator.services.mozilla.com/D96795
2020-11-17 20:20:32 +00:00
Bogdan Tara 43d33ea421 Backed out 3 changesets (bug 1676771) for touchevents related failures CLOSED TREE
Backed out changeset 88d4a2ac2cfc (bug 1676771)
Backed out changeset 7aa9b58c7916 (bug 1676771)
Backed out changeset 7f5daf9a6889 (bug 1676771)
2020-11-17 22:15:14 +02:00
Markus Stange 65b5ec33c9 Bug 1676771 - Add a TouchResampler class. r=kats
This is similar to GeckoTouchDispatcher from the B2G days:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/widget/gonk/GeckoTouchDispatcher.cpp

The values for the various kTouchResample* constants were taken from the
original pref values:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/gfx/thebes/gfxPrefs.h#l225

There are some extra sources of complexity:
 - TouchResampler tries hard to generate one outgoing event per incoming event,
   so that the result code tracking to the Java front-end code works properly.
 - TouchResampler tries hard to never lose any historicalData information, so
   that the velocity tracker has a maximum amount of information to work with.
 - TouchResampler has a "reset to non-resampled state" functionality so that
   overpredictions are corrected when the finger pauses or when a touch non-move
   event fires.

Differential Revision: https://phabricator.services.mozilla.com/D96795
2020-11-17 17:33:03 +00:00
Tarek Ziadé 37386bc892 Bug 1529510 - Move ProcInfo to processtoolsservice;r=aklotz,mstange
With this change, we expose ProcInfo to Android.

Differential Revision: https://phabricator.services.mozilla.com/D94810
2020-11-12 17:42:54 +00:00
Jed Davis 96f7c5cf5c Bug 1657401 - Change LookAndFeel IPC to use IPDL structs. r=spohl
Aside from automating boilerplate, this will allow reusing some of these
structs for full LookAndFeel remoting in bug 1470983.

Differential Revision: https://phabricator.services.mozilla.com/D94531
2020-11-11 23:26:51 +00:00
Jed Davis a68b63cdb3 Bug 1657401 - Prelude: rearrange IPDL files in widget/. r=spohl
The IPDL compiler searches for files in an include path made up of every
directory with any `IPDL_SOURCES` in it, which means that distinct files
shouldn't have the same name or, failing that, need to be set up so they
won't accidentally conflict.  See bug 1657712 for details.

In `widget/`, the PCompositorWidget and PlatformWidgetTypes files are
overridden on some OSes; this patch moves the general-case versions into
their own directory, so that it's possible to use the widget/ toplevel
directory for non-platform-specific IPDL without causing a filename
conflict.

Differential Revision: https://phabricator.services.mozilla.com/D94530
2020-11-11 23:17:40 +00:00
Mihai Alexandru Michis 6750b81daf Bug 1673120 - Fix python black lint failure in widget/moz.build
CLOSED TREE
2020-10-27 18:56:11 +02:00
Markus Stange 44e288b359 Bug 1673120 - Extract out scrollbar drawing from nsNativeThemeCocoa so that it can later be used by nsNativeBasicTheme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93844
2020-10-27 15:16:49 +00:00
Emilio Cobos Álvarez d622f54db0 Bug 1668875 - Distinguish theme changes that can and cannot affect style/layout. r=tnikkel
This should make the optimization landed earlier in this bug apply for
some of the NotifyThemeChanged() calls in nsWindow.cpp which are causing
all the extra invalidations.

If we know that system colors/fonts didn't change, we can avoid doing a
bunch of reflow work and the patch from earlier in the bug can avoid
re-rasterizing images too.

Differential Revision: https://phabricator.services.mozilla.com/D94425
2020-10-27 10:24:40 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Mike Conley 31794d68b0 Bug 1663784 - Generalize nsIconLoaderService so other platforms can use it. r=mstange
In this patch, I've tried to abstract out all of the platform-specific parts
of what was the nsIconLoaderService into something generic enough to be used
across multiple platforms. I also renamed it and namespaced it to
mozilla::widget::IconLoader.

Depends on D89788

Differential Revision: https://phabricator.services.mozilla.com/D89972
2020-09-30 21:14:02 +00:00
Mike Conley 9f45e1f865 Bug 1663784 - Implement basic nsISystemStatusBar service for Windows. r=mhowell
This basic implementation uses the application icon for the icon that goes
into the system tray for now. A later patch in this series will change that
icon to one defined within the associated <xul:menu> element's styles.

Differential Revision: https://phabricator.services.mozilla.com/D89787
2020-09-30 21:14:05 +00:00
Narcis Beleuzu bb2bab98d0 Backed out 9 changesets (bug 1661474, bug 1668010, bug 1663784, bug 1665490) for bc failures on browser_all_files_referenced.js . CLOSED TREE
Backed out changeset 9a5e08c77923 (bug 1668010)
Backed out changeset 9bcba802456e (bug 1665490)
Backed out changeset 82ba64e4e81f (bug 1661474)
Backed out changeset 9b5d89c13aa3 (bug 1661474)
Backed out changeset e812f197f225 (bug 1663784)
Backed out changeset ddfbe96735f3 (bug 1663784)
Backed out changeset 282d763360a2 (bug 1663784)
Backed out changeset 9e5267b83d94 (bug 1663784)
Backed out changeset 53a57a5b60d3 (bug 1663784)
2020-10-01 00:08:50 +03:00
Mike Conley 5a0c26e13e Bug 1663784 - Generalize nsIconLoaderService so other platforms can use it. r=mstange
In this patch, I've tried to abstract out all of the platform-specific parts
of what was the nsIconLoaderService into something generic enough to be used
across multiple platforms. I also renamed it and namespaced it to
mozilla::widget::IconLoader.

Depends on D89788

Differential Revision: https://phabricator.services.mozilla.com/D89972
2020-09-30 15:33:06 +00:00
Mike Conley 31ff830216 Bug 1663784 - Implement basic nsISystemStatusBar service for Windows. r=mhowell
This basic implementation uses the application icon for the icon that goes
into the system tray for now. A later patch in this series will change that
icon to one defined within the associated <xul:menu> element's styles.

Differential Revision: https://phabricator.services.mozilla.com/D89787
2020-09-30 15:12:28 +00:00
Razvan Maries d3644bd0b8 Backed out 8 changesets (bug 1661474, bug 1663784, bug 1665490) for build bustages on IconLoaderHelperCocoa.h and nsMenuItemIconX.mm. CLOSED TREE
Backed out changeset 4a035c0339f8 (bug 1665490)
Backed out changeset 573e8d8d1fc8 (bug 1661474)
Backed out changeset c2d5b0b0a1a3 (bug 1661474)
Backed out changeset 97be0dd0742d (bug 1663784)
Backed out changeset 428926be2268 (bug 1663784)
Backed out changeset a737df82383a (bug 1663784)
Backed out changeset d1faf309c9d0 (bug 1663784)
Backed out changeset 4ee61c4a6bc8 (bug 1663784)
2020-09-30 02:16:00 +03:00
Mike Conley 0cd7615d56 Bug 1663784 - Generalize nsIconLoaderService so other platforms can use it. r=mstange
In this patch, I've tried to abstract out all of the platform-specific parts
of what was the nsIconLoaderService into something generic enough to be used
across multiple platforms. I also renamed it and namespaced it to
mozilla::widget::IconLoader.

Depends on D89788

Differential Revision: https://phabricator.services.mozilla.com/D89972
2020-09-29 07:54:48 +00:00
Mike Conley 50725c76eb Bug 1663784 - Implement basic nsISystemStatusBar service for Windows. r=mhowell
This basic implementation uses the application icon for the icon that goes
into the system tray for now. A later patch in this series will change that
icon to one defined within the associated <xul:menu> element's styles.

Differential Revision: https://phabricator.services.mozilla.com/D89787
2020-09-29 06:48:34 +00:00
Jonathan Kew 7c86b9cd42 Bug 1659781 - Create a list of common standard paper sizes for Save to PDF output, and expose them via nsIPrinterList.fallbackPaperList. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D88027
2020-08-26 11:10:32 +00:00
Emilio Cobos Álvarez edf2f3232d Bug 1657874 - Remove CUPSPrinterList. r=jwatt
Now that we share the list code between GTK and Mac, there's no reason
for this. This also avoids work when getting the default printer name.

Differential Revision: https://phabricator.services.mozilla.com/D86345
2020-08-07 14:30:33 +00:00
Bogdan Tara 5664de44fd Backed out changeset a71e53a3e455 (bug 1657874) for CUPSPrinterList.h related bustage CLOSED TREE 2020-08-07 15:39:34 +03:00
Emilio Cobos Álvarez cf0578d008 Bug 1657874 - Remove CUPSPrinterList. r=jwatt
Now that we share the list code between GTK and Mac, there's no reason
for this. This also avoids work when getting the default printer name.

Differential Revision: https://phabricator.services.mozilla.com/D86345
2020-08-07 12:16:36 +00:00
Emilio Cobos Álvarez 05e2ab2186 Bug 1657874 - Unify printer list implementations between Mac and GTK, and add nsPrinterListBase. r=jwatt
nsPrinterListBase is where the CC setup and promises and such will be, I
think.

Differential Revision: https://phabricator.services.mozilla.com/D86336
2020-08-07 12:04:26 +00:00
Emily McDonough 87e0683166 Bug 1657164 - Remove PSPrinters r=jwatt,emilio
Differential Revision: https://phabricator.services.mozilla.com/D85939
2020-08-05 23:04:48 +00:00
Emily McDonough 51464aefa0 Bug 1654678 Part 4 - Make GTK printer enumeration use the unified CUPS code r=jwatt,emilio
Differential Revision: https://phabricator.services.mozilla.com/D85502
2020-08-05 22:15:18 +00:00
Emilio Cobos Álvarez bdca8af91d Bug 1655558 - Retrieve the paper margins lazily on Windows. r=jwatt,bobowen
This is no worse than what we were doing.

In the future, instead of just querying the margin we may want to query
extra information that requires a DC in windows too or what not, for
example.

Differential Revision: https://phabricator.services.mozilla.com/D85919
2020-08-05 11:26:13 +00:00
Emilio Cobos Álvarez 6d5ce8f732 Bug 1655558 - Retrieve paper information from CUPS, and convert paperList to an async attribute. r=jwatt
This builds on top of bug 1656146 to compute the page information on a
background task, and return it via a promise.

Co-Authored-By: Erik Nordin <enordin@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D85865
2020-08-05 01:24:49 +00:00