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

27413 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange 75d909c261 Bug 1673055 - Remove now-unused SourceList widget drawing. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D94635
2020-10-26 23:17:34 +00:00
Markus Stange 5df50199ee Bug 1673055 - Remove now-unused Tooltip widget drawing. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D94634
2020-10-26 23:17:32 +00:00
Markus Stange 94d4a67300 Bug 1673055 - Remove now-unused MenuBackground widget drawing. r=haik,spohl
Differential Revision: https://phabricator.services.mozilla.com/D94633
2020-10-26 23:17:24 +00:00
Markus Stange 7f0f151a07 Bug 1673055 - Remove always-true backgroundIsVibrant field. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D94631
2020-10-26 23:17:19 +00:00
Markus Stange 8c342b5dd2 Bug 1673055 - Simplify other code now that SystemSupportsVibrancy() always returns true. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D94629
2020-10-26 23:17:11 +00:00
Markus Stange a15e11c85e Bug 1673055 - Simplify VibrancyManager.mm. r=haik
This removes some code which was creating new Objective C classes at runtime.
I originally wrote this code because NSVisualEffectView was a new class that
was added in 10.10, and we were building with a pre-10.10 SDK.

These days we build with the 10.11 SDK, which has NSVisualEffectView, and we
only run on 10.12+.

Differential Revision: https://phabricator.services.mozilla.com/D94622
2020-10-26 23:17:03 +00:00
Markus Stange af68ac4a30 Bug 1673132 - Use the -moz-default-appearance values "scrollbar-horizontal" and "scrollbar-vertical" on macOS and remove the now-unused value "scrollbar". r=emilio
Other platforms were already converted to scrollbar-horizontal and scrollbar-vertical in bug 1205643.

Differential Revision: https://phabricator.services.mozilla.com/D94674
2020-10-27 12:37:44 +00:00
Markus Stange cb8968058f Bug 1673132 - Remove "scrollbar-small" -moz-default-appearance value and replace its single use with scrollbar-width: thin. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D94673
2020-10-27 12:37:44 +00: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
Aaron Klotz 8c6fe5fa49 Bug 1650118: Part 1 - Remove non-e10s mode from GeckoView; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90929
2020-10-26 23:53:56 +00:00
Mihai Alexandru Michis 2b08e93110 Backed out changeset dff839f08039 (bug 1673313) for causing bustages in WindowSurfaceWayland
CLOSED TREE
2020-10-27 16:50:47 +02:00
stransky e2b50c1c65 Bug 1673313 [Wayland] Don't fail when Shm allocation fails, r=jhorak
- Make WaylandAllocateShmMemory() fallible.
- Implement WaylandReAllocateShmMemory() to re-allocate Shm pool.
- Remove WaylandShmPool::Resize() and use WaylandShmPool::Create() only.
- Implement and use WaylandShmPool::Release().
- Make WindowSurfaceWayland::CreateWaylandBuffer() as fallible.

Differential Revision: https://phabricator.services.mozilla.com/D94735
2020-10-27 14:21:02 +00:00
Landry Breuil cc89bad1d3 Bug 1671813. Avoid a naming conflict between gfx::Glyph and Xrender.h:Glyph. r=aosmond
Non wayland unified builds end up with a different set of files
combined which ends up causing the conflict. Remove the 'using namespace
mozilla::gfx' to avoid this.

Differential Revision: https://phabricator.services.mozilla.com/D94825
2020-10-27 12:58:53 +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
Haik Aftandilian da539131b7 Bug 1673506 - Correctly detect GPUs on Apple Silicon Macs r=mstange
Detect GPUs on Apple Silicon Macs using the AGXAccelerator IOService similarly to Chromium's method.

This may need updating for future Apple Silicon hardware, but works with the device on the DTK.

Differential Revision: https://phabricator.services.mozilla.com/D93120
2020-10-27 04:38:32 +00:00
Sonia Singla f7195cd8ae Bug 1656280 - Enable remaining ESLint rules for widget/test/*.xhtml files. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D86485
2020-10-26 17:37:26 +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
Jeff Muizelaar c87281cba8 Bug 1673095 - Include Intel gen6 gt1 in rollout. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94651
2020-10-23 20:07:51 +00:00
Jeff Muizelaar 4adea29e63 Bug 1673088 - Let Stoneyridge ride to release. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94645
2020-10-23 19:38:43 +00:00
Jeff Muizelaar 5af9de9181 Bug 1672743 - Rollout WebRender to R700 on Nightly. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94456
2020-10-23 19:13:42 +00:00
Markus Stange 2e46f93110 Bug 1673053 - Remove unnecessary #ifdef, now that we no longer have 32 bit macOS builds. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D94617
2020-10-23 18:22:45 +00:00
Markus Stange 4e4a9ca261 Bug 1673046 - Change the menu separator color to a transparent black. r=haik
This matches the native appearance more closely.

Differential Revision: https://phabricator.services.mozilla.com/D94610
2020-10-23 18:22:45 +00:00
Andrew Osmond 7dbd895ab1 Bug 1672464 - Block WebRender for NVIDIA users with mixed refresh rates. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94477
2020-10-23 15:12:41 +00:00
Emilio Cobos Álvarez 5a616bbd7e Bug 1670943 - Add monochrome support for OSX. r=jwatt,jfkthame
See comments for fun.

Differential Revision: https://phabricator.services.mozilla.com/D93527
2020-10-23 11:58:42 +00:00
Emilio Cobos Álvarez ccea7aadbb Bug 1670943 - Remove two dead declarations in nsPrintSettingsX. r=jfkthame
While at it..

Differential Revision: https://phabricator.services.mozilla.com/D93535
2020-10-23 11:58:35 +00:00
Jonathan Kew 3c358ca383 Bug 1667053 patch 2 - If the user runs the system print UI, hold on to and use the printInfo it returns. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D94026
2020-10-23 11:07:46 +00:00
Jonathan Kew f2b9ae0184 Bug 1667053 - Refactor macOS print settings implementation for clarity. r=jwatt
Rather than wrapping an NSPrintInfo in nsPrintSettingsX, where we then have two
(potentially conflicting) sources of truth about various settings, we treat the
settings in the base nsPrintInfo class as authoritative, and just apply them to
a temporary NSPrintInfo when needed to interact with platform APIs.

Differential Revision: https://phabricator.services.mozilla.com/D92966
2020-10-23 11:07:21 +00:00
Makoto Kato 462059cb77 Bug 1672095 - Always send NOTIFY_IME_OF_BLUR on GeckoView. r=masayuki
This is regression by bug 1672095. `GeckoEditableSupport` expects that
NOTIFY_IME_OF_BLUR is always sent. I would like to allow this even if
IME content observer is being destroyed.

To reproduce this, we have to lost application focus, I cannot write
geckoview-junit test.

Differential Revision: https://phabricator.services.mozilla.com/D94414
2020-10-23 08:07:02 +00:00
Andrew Osmond 45803f0f80 Bug 1672467 - Rollout WebRender to Windows 7/8/8.1 on Release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94476
2020-10-22 20:04:27 +00:00
Andrew Osmond 5915f12bcf Bug 1672463 - Rollout WebRender to AMD Evergreen on Release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94475
2020-10-22 20:06:07 +00:00
Bob Owen e4f458e04e Bug 1672370: Revert paper size pref validation back to checking for either being less than 100 inches. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D94341
2020-10-22 08:13:35 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Jeff Muizelaar d84e779913 Bug 1672451 - Drop Nvidia driver blocklist. r=aosmond
This was just a risk reduction. We don't need it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D94339
2020-10-21 19:17:42 +00: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
Mihai Alexandru Michis b7f94b30ea Bug 1614465 - Revert mistakenly landed changes to SystemStatusBar.cpp
CLOSED TREE
2020-10-21 23:58:34 +03:00
Bernard Igiri 24f9294ade Bug 1614465 - Replacing ASRouter calls to MessageChannel with JSWindowActors to eliminate ASRouterFeed r=k88hudson
Patch by Bernard Igiri <bigiri@mozilla.com>

Replacing async events with async method calls that use JSWindowActors to communicate with the parent process.
This will simplify these calls, bring the relevant code into local scope, and eliminate the need for MessageChannel.
Eliminating the MessageChannel dependency allows us to move the ASRouter initialization out of ASRouterFeed and into
JSWindowActors.

Differential Revision: https://phabricator.services.mozilla.com/D71796
2020-10-21 20:04:13 +00:00
Jeff Muizelaar de7ea65b36 Bug 1672270 - Add missed Polaris GPU. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94199
2020-10-21 15:48:23 +00:00
Razvan Maries 5e0d52e2cc Backed out 6 changesets (bug 1650118) as per Aaron's request. CLOSED TREE
Backed out changeset 4a7fc6398ad6 (bug 1650118)
Backed out changeset b9fa3dd9c05d (bug 1650118)
Backed out changeset 2cb9109dee0a (bug 1650118)
Backed out changeset a6ca38804021 (bug 1650118)
Backed out changeset 66b9527aecad (bug 1650118)
Backed out changeset 74fd3eb970a6 (bug 1650118)
2020-10-21 07:32:57 +03:00
Toshihito Kikuchi e61c0c2555 Bug 1671314 - Expand the region to be scanned for a trampoline. r=mhowell
The latest launcher process ping showed one of the reasons why we failed to
detour `NtMapViewOfSection` is that `MMPolicyBase::FindRegion` failed to find
a free region.  Inspecting the function carefully, there were three problems.

Firstly, `FindRegion` did not fully scan the given range.  To randomize
the address of a free region we use, we start scanning from a random address
within the given range.  The problem is we scan only addresses bigger than
that random address, without scanning smaller addresses.  Probably this is
the reason why `FindRegion` fails.

Secondly, `FindRegion` may return an address not aligned with the allocation
granularity because `VirtualQueryEx` returns such an address.  If that happens,
the subsequent mapping API fails with the alignment error.

Lastly, when we randomize an address to start scanning from, we divide a random
number by `maxOffset`, but with that, we never start scanning from the last
region.  It does not affect the product's behavior, but to have fair randomization,
a divisor should be `maxOffset + 1`.

This patch fixes all of these three problems along with a new test program.

Differential Revision: https://phabricator.services.mozilla.com/D94110
2020-10-20 22:51:00 +00:00
Aaron Klotz 00e06da12d Bug 1672221: Add null check in NPZCSupport::InputEvent::Run; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D94131
2020-10-20 16:46:41 +00:00
Markus Stange f714904a27 Bug 1672044 - Convert DrawScrollbarThumb to use DrawTarget. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D93843
2020-10-20 03:57:26 +00:00
Markus Stange 1a0cd33cd1 Bug 1672044 - Convert DrawScrollCorner to use DrawTarget. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D93842
2020-10-20 03:57:25 +00:00
Markus Stange 43bd48b7a2 Bug 1672044 - Convert DrawScrollbarTrack to use DrawTarget. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D93841
2020-10-20 03:57:25 +00:00
Markus Stange a41db84c43 Bug 1672044 - Create a path that draws native widgets using DrawTarget instead of CGContext. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D93840
2020-10-20 03:57:25 +00:00
Jamie Nicol a20ad91067 Bug 1672196 - Enable webrender on Nightly for Mali-Txxx devices. r=ktaeleman
Differential Revision: https://phabricator.services.mozilla.com/D94118
2020-10-20 16:47:14 +00:00
Andrew Osmond 38752f6def Bug 1656211 - Force recompositing frames on GTK when popup window configuration changes. r=nical
Similar to bug 1280653, it appears that GLX invalidates the back buffer
while we are drawing. The only indication we get of this are resize and
configure events from X. We suppress the configure event for popups for
various reasons, so this patch explicitly generates a forced recomposite
of the frame. It does it immediately so that most of the time it should
beat the presentation of the buffer and avoid displaying of the bad
frame to the user; popups generally are not complicated and should have
plenty of budget to perform the second composite.

Differential Revision: https://phabricator.services.mozilla.com/D93862
2020-10-19 07:44:59 +00:00
Aaron Klotz 1709d6e45f Bug 1650118: Part 1 - Remove non-e10s mode from GeckoView; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90929
2020-10-19 17:08:28 +00:00
Edgar Chen 83a3099eea Bug 1671849 - Move drag threshold setting to nsLookAndFeel; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93902
2020-10-19 15:16:49 +00:00
Makoto Kato 179a0134a9 Bug 1670731 - Key down event isn't fired during composition when using Wayland IM Module. r=masayuki
Wayland IM module (im-wayland.so, [*1]) doesn't use `gtk_key_snooper_install`,
so snooper mode is different of other IM modules.

*1 https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gtk/gtkimcontextwayland.c

Differential Revision: https://phabricator.services.mozilla.com/D93894
2020-10-18 09:46:41 +00:00
Sean Feng 6eb1ed8c33 Bug 1671592 - Remove PuppetWidget::PaintTask and PuppetWidget::Paint r=emilio
After Bug 1669239, The way we use `PuppetWidget::Paint` starts to be
more async. For instance, `PuppetWidget::Invalidate` will schedule
an async `PaintTask`, when the `PaintTask` runs, it'll request
the next `Tick` to paint which is also async.

It starts to cause some tests to fail because of the timing. This
patch just improves the overall usage to be less async.

Differential Revision: https://phabricator.services.mozilla.com/D93855
2020-10-17 18:07:03 +00:00
Haik Aftandilian 8264ddfcc9 Bug 1650615 - Part 2 - Library search field has incorrect styling r=mstange
For Big Sur toolbar search fields, don't return YES from _isToolbarMode(). And adjust the search field border for better spacing after the search icon.

Differential Revision: https://phabricator.services.mozilla.com/D93705
2020-10-17 13:59:51 +00:00
Haik Aftandilian 94b553fca4 Bug 1650615 - Part 1 - Manually draw toolbar button backgrounds on Big Sur r=mstange
Draw toolbar button segment backgrounds manually on Big Sur to workaround a problem where they are filled with the toolbar gradient.

Differential Revision: https://phabricator.services.mozilla.com/D93578
2020-10-17 13:59:49 +00:00
Sylvestre Ledru c47fc76053 Bug 1671775 - Provide the correct using namespace to fix a build failure r=stransky DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93879
2020-10-17 12:19:22 +00:00
Cameron McCormack d7eee82ba1 Bug 1671401 - Use separate Scrollbar and ThemedScrollbar ColorIDs. r=spohl
Otherwise on Windows, we have a ColorID::Scrollbar but not any of the other scrollbar part
colors, and the Windows-provided value for Scrollbar doesn't work well
with the default values for the other scrollbar parts that come from the
non-native theme.

Differential Revision: https://phabricator.services.mozilla.com/D93728
2020-10-16 12:49:47 +00:00
Markus Stange 7c5c0899bf Bug 1670023 - Emulate native scrollbar colors and sizes with custom drawing. r=haik
This removes the CoreUI draw calls for scrollbars.

We already have code to manually draw scrollbars, which is used to support the
scrollbar-color CSS property. But this code was only used for non-overlay
scrollbars in the past, because scrollbar-color only affects non-overlay scrollbars.
This patch adjusts that custom drawing code to work for overlay scrollbars as well.
It computes the correct sizes, positions, and colors, to match native scrollbars.

The scrollbar track drawing code is changed from "background fill with strokes on
top" to "multiple adjacent non-overlapping filled rectangle segments" so that it
works better with translucent track colors.

Differential Revision: https://phabricator.services.mozilla.com/D93715
2020-10-16 23:11:50 +00:00
Masayuki Nakano edfe4e01f5 Bug 1629347 - Make `TSFTextStore::SetInputContext()` emulate focus when the menu keyboard event listener is uninstalled r=m_kato
Currently, `IMEStateManager` sets `InputContext` to disable IME when the
menu keyboard event listener is installed, but does not destroy
`IMEContentObserver` which may be in a remote process.  And similarly,
it setns `InputContext` to enable IME when the menu keyboard event listener
is uninstalled, but does not make `IMEContentObserver` which may be in a remote
process send `NOTIFY_IME_OF_FOCUS` again.  Therefore, from point of view of
native IME handlers in widget, `NOTIFY_IME_OF_FOCUS` won't be sent in this
case, but `TSFTextStore::SetInputContext()` expects that it'll be followed
by `NOTIFY_IME_OF_FOCUS` unless it's called for `FOCUS_NOT_CHANGED`.
Therefore, `sEnabledTextStore` is `nullptr` when this bug occurs.

For fixing this bug **quickly**, this patch makes
`TSFTextStore::SetInputContext()` treat  `MENU_LOST_PSEUDO_FOCUS` as
`FOCUS_NOT_CHANGED` to create `TSFTextStore` instance if new state is
"enabled".

Ideally, we should redesign `IMEStateManager` because while menu keyboard
event listener has pseudo focus, web apps may change focus or create something
complicated cases.

Unfortunately, we still cannot write automated tests for `TSFTextStore`
due to bug 1322744.

Differential Revision: https://phabricator.services.mozilla.com/D93469
2020-10-16 06:14:23 +00:00
Sean Feng 40945e8a39 Bug 1669239 - Call Tick to paint in PuppetWidget::Paint instead of using WillPaintWindow r=emilio,mattwoodrow
The `WillPaintWindow` call is problematic for FirstContentfulPaint
algorithm because it causes paints that outside of ticks, which would
revoke the viewer flush for the next tick, hence no firstContentful
paint entries are fired.

However, this `WillPaintWindow` call is also useful because it allows
the parent to aware that the layers are updated, so that the parent
can fire corresponding events based on the status. If we don't do it,
parent may end up not knowing that the layers are updated, so some
tests may stall because of the missing events.

The proposed solution here is simply using Tick here to satisfy both
requirements.

It's okay to remove mDirtyRegion in this patch because the
mDirtyRegion usage was for BASIC_LAYERS. BASIC_LAYERS means
BasicLayerManager which does in-process drawing which is nonsense
from the content process.

Differential Revision: https://phabricator.services.mozilla.com/D92445
2020-10-15 17:51:36 +00:00
Hiroyuki Ikezoe 9a755619ac Bug 1667978 - Use cupsEnumDests to filter out CUPS_PRINTER_DISCOVERED etc. r=AlaskanEmily
It looks like the combination of cupsGetDests and filtering
CUPS_PRINTER_DISCOVERED filters a certain type of printers which shouldn't be
filtered.

As I wrote [1], cupsEnumDests didn't filter out a printer which hadn't been
configured in the system, but the printer didn't make opening the print preview
window slow at all, so it would be better than the case where users can't use
printers at all.

[1] https://phabricator.services.mozilla.com/D90508#2928340

Differential Revision: https://phabricator.services.mozilla.com/D92892
2020-10-15 05:02:46 +00:00
Cameron McCormack c529225214 Bug 1669368 - Use LookAndFeelCache to pass Gtk theme-derived scrollbar colors to content processes. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93467
2020-10-15 04:54:41 +00:00
Cameron McCormack 075e4a0192 Bug 1670853 - Unified build fix.
Differential Revision: https://phabricator.services.mozilla.com/D93628
2020-10-15 04:54:06 +00:00
Cameron McCormack 0534c6ad1a Bug 1670853 - Support scrollbar-color and scrollbar-width on cross-platform and Linux non-native theme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93307
2020-10-15 04:54:41 +00:00
Cameron McCormack 76405ab8fe Bug 1670145 - Record telemetry on Gtk version and other theme related info. r=tdsmith,spohl
Differential Revision: https://phabricator.services.mozilla.com/D93051
2020-10-15 04:50:48 +00:00
Cameron McCormack e12bf6716b Bug 1670694 - Use larger minimum size for Gtk-like non-native theme scrollbar thumbs. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93281
2020-10-15 04:50:45 +00:00
Razvan Maries 8d3a29c27b Backed out 4 changesets (bug 1670694, bug 1670853, bug 1669368, bug 1670145) for build bustages on nsNativeBasicTheme.h. CLOSED TREE
Backed out changeset fcb1b57645e0 (bug 1669368)
Backed out changeset 6ac5b674c3b6 (bug 1670853)
Backed out changeset 913fd041e5dd (bug 1670145)
Backed out changeset 89504c0fb0cd (bug 1670694)
2020-10-15 07:45:35 +03:00
Cameron McCormack 76b30e3307 Bug 1669368 - Use LookAndFeelCache to pass Gtk theme-derived scrollbar colors to content processes. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93467
2020-10-15 00:24:09 +00:00
Cameron McCormack 7105217e53 Bug 1670853 - Support scrollbar-color and scrollbar-width on cross-platform and Linux non-native theme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93307
2020-10-15 00:24:06 +00:00
Cameron McCormack 7f8dad291b Bug 1670145 - Record telemetry on Gtk version and other theme related info. r=tdsmith,spohl
Differential Revision: https://phabricator.services.mozilla.com/D93051
2020-10-15 00:23:57 +00:00
Cameron McCormack 67b7fe9431 Bug 1670694 - Use larger minimum size for Gtk-like non-native theme scrollbar thumbs. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D93281
2020-10-15 00:24:03 +00:00
Andrew Osmond fea5897e94 Bug 1671253 - Enable WebRender for Intel driver 23.20.16.4973 on nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D93579
2020-10-14 18:25:28 +00:00
Daniel Holbert d2893e70f0 Bug 1631452 part 1: Give nsIPrintSettings a "numPagesPerSheet" attribute. r=TYLin
As noted in the attribute's documentation, we only intend to support a short
list of numeric values. The underlying platform code that reacts to this
attribute (added in a later patch) will screen for whether the provided value
is supported or unsupported, and will gracefully fall back as-needed.

(The corresponding frontend code will probably expose this attribute via a
dropdown widget that only allows users to choose among the supported values, so
there shouldn't really be any way to get an unsupported value into this
attribute anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D86799
2020-10-13 22:55:03 +00:00
Jeff Muizelaar 6e32d24323 Bug 1668388 - Rollout WebRender to Carrizo on Nightly/Early beta. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92774
2020-10-09 12:24:28 +00:00
Masayuki Nakano 190b2c2740 Bug 1612802 - Make `IMEStateManager` stop notifying `PuppetWidget` of editor state changes while its `StopIMEStateManagement()` r=m_kato
Currently, `BrowserParent` rejects any notifications which come after
it blurs from IME focus.
https://searchfox.org/mozilla-central/rev/919607a3610222099fbfb0113c98b77888ebcbfb/dom/ipc/BrowserParent.cpp#2157,2169,2181,2192,2203,2216

But for saving unnecessary IPC messages, we should make `IMEStateManager` in
a content process stop sending notifications which occurs during its
`StopIMEStateManagement()` is called.

Differential Revision: https://phabricator.services.mozilla.com/D93176
2020-10-13 23:29:29 +00:00
Emily McDonough 31f2236856 Bug 1667486 part 2 - Use our own localization for nsPrinterCUPS paper sizes when possible r=emilio
This should be able to avoid creating a printer-specific HTTP connection in
nsPrinterCUPS::DefaultSettings when the paper size is a PWG-recognized size.

The current maximum error when comparing paper sizes is 4 points. This may need
to be revised later.

Differential Revision: https://phabricator.services.mozilla.com/D91497
2020-10-13 21:52:04 +00:00
Emily McDonough 8202fe3024 Bug 1667486 part 1 - Make fallback paper sizes public to nsPaper, localize the sizes only once in nsPrinterListBase r=jwatt,emilio
We will use the fallback, PWG paper sizes for localization of paper sizes in
the CUPS backend when possible. This will make paper names more consistent, and
may allow us to avoid extra connections in CUPS.

This also makes the paper size data constexpr data. The localized paper data is
held in a RefPtr as it will be shared with the printers created by the printers
when we start using localized PWG names where possible.

Differential Revision: https://phabricator.services.mozilla.com/D91496
2020-10-13 21:53:47 +00:00
Simon Giesecke df470c3e5a Bug 1669419 - Remove unnecessary literal string constant from nsDataObj::CMemStream::Stat. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D92617
2020-10-13 21:39:09 +00:00
owlishDeveloper 532e1b8155 Bug 1665426 - Implement fetch flag for private browsing downloads in WebExecutor r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93044
2020-10-13 17:59:49 +00:00
Marco Bonardo 1019bbf009 Bug 1626016 - Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93189
2020-10-13 10:20:16 +00:00
Vincent Bernat 10ae6bfc55 Bug 1554850 - handle fractional DPI change on Linux. r=karlt
On Linux, Firefox is listening on notify::scale-factor to detect DPI
change. However, scale-factor is an int and on the lower-end side of
the DPI scale, some devices are using fractional scale factors encoded
into Xft/DPI setting. Changing from ×1 to ×1.5 scale is therefore
undetected.

The proposed change is two-folds:

 - remove use of a cached sDPI value and rely on GTK being the cache

 - listening on notify::gtk-xft-dpi to trigger a DPI change

What is missing:

 - performance evaluation of not caching sDPI (on a 10s session
   loading 2 pages, there is an "overhead" of 6ms on my setup, nothing
   visible from my point of view)

 - when changing Xft/DPI and scale, the change is done twice, this
   seems harmless

Differential Revision: https://phabricator.services.mozilla.com/D92095
2020-10-13 02:47:27 +00:00
Robert Mader 68c683bf52 Bug 1619246 - Only use Wayland Vsync source for toplevels. r=stransky
In order to make it usable again until certain issues around child
widgets have been propperly resolved.

Differential Revision: https://phabricator.services.mozilla.com/D93158
2020-10-12 19:02:31 +00:00
Toshihito Kikuchi 8b206d0aad Bug 1588245 - More values to DetourResultCode. r=mhowell
This is the third attempt to investigate the launcher failure of our detour.
The previous commits d8315e4ed18d and 1b81ea85c43d added the assembly bytes
of a detour target and a special error code `DetourResultCode` to the launcher
failure ping.

In the latest telemetry data, however, the most common value of `hresult`
is still `ERROR_UNIDENTIFIED_ERROR`, meaning the previous commit missed to
set an error code in the common fallible codepath we wanted to know.
Besides `ERROR_UNIDENTIFIED_ERROR`, we're seeing `DETOUR_PATCHER_DO_RESERVE_ERROR`
in the telemetry, but having that code is not enough to pinpoint a falling
operation.

For further investigation, this patch adds ten more values to `DetourResultCode`.
`FUNCHOOKCROSSPROCESS_COPYSTUB_ERROR` is the last codepath we forgot to cover
in the previous commit.  The values of `MMPOLICY_RESERVE_*` are to investigate
`DETOUR_PATCHER_DO_RESERVE_ERROR` in the MMPolicy level.  In both cases, we add
the last Windows error code to `DetourError::mOrigBytes`.

Differential Revision: https://phabricator.services.mozilla.com/D92974
2020-10-12 18:25:47 +00:00
Andreea Pavel 7543d11ee1 Merge mozilla-central to autoland on a CLOSED TREE 2020-10-12 18:32:20 +03:00
Andreea Pavel e921b46c56 Backed out changeset 0a114b5e07eb (bug 1588245) on suspicion of crashing Firefox on startup (bug 1670546 etc.) a=backout 2020-10-12 14:31:40 +03:00
Kartikaya Gupta 264e82488a Bug 1670003 - Add back the scroll input methods telemetry. r=botond
This is mostly a revert of the patch in bug 1425686 that removed the old
probe, but rebased to new code locations and clang-formatted. The histogram
entry is also updated with new bug numbers and fields.

The next patch will refine some of these telemetry recording points; the patch
is split into two for easier reviewing as this part is basically what landed
originally.

Differential Revision: https://phabricator.services.mozilla.com/D92995
2020-10-10 17:41:47 +00:00
stransky aeb4f0f089 Bug 1656727 [Wayland] Track delayed commits globally, r=jhorak
Track delayed commits in a global list and don't store them in actual wayland surfaces.
When a delayed commit is called, check that the associated wayland surface is still valid.

Differential Revision: https://phabricator.services.mozilla.com/D92432
2020-10-09 18:44:36 +00:00
Bas Schouten 25a1b0f61f Bug 1669256 - Part 1: Remove AbstractEventQueue and de-templatize ThreadEventQueue. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92709
2020-10-09 17:56:34 +00:00
Simon Giesecke 9b3f7ff4ef Bug 1665661 - Opt into UnusedZero<WindowsError>::value == true to enable mozilla::Result optimizations. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D90685
2020-10-12 13:48:43 +00:00
Makoto Kato 57889a7d2c Bug 1670370 - Move BUG_COMPONENT of widget's IME code to UI Events & Focus Handling. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D93150
2020-10-12 12:26:45 +00:00
Mike Conley 119b2d05fb Bug 1669649 - Use ShowPopupAtScreen to get the SystemStatusBar menu to open at the right coordinates. r=mhowell
Unfortunately, it's pretty difficult to write an automated test for this.

Differential Revision: https://phabricator.services.mozilla.com/D93123
2020-10-09 21:12:08 +00:00
Jonathan Watt a6599d6437 Bug 1669723. Stop unnecessarily catching exceptions from nsIPrintSettingsService.lastUsedPrinterName. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D92768
2020-10-09 10:21:44 +00:00
Toshihito Kikuchi 481aa7905b Bug 1588245 - More values to DetourResultCode. r=mhowell
This is the third attempt to investigate the launcher failure of our detour.
The previous commits d8315e4ed18d and 1b81ea85c43d added the assembly bytes
of a detour target and a special error code `DetourResultCode` to the launcher
failure ping.

In the latest telemetry data, however, the most common value of `hresult`
is still `ERROR_UNIDENTIFIED_ERROR`, meaning the previous commit missed to
set an error code in the common fallible codepath we wanted to know.
Besides `ERROR_UNIDENTIFIED_ERROR`, we're seeing `DETOUR_PATCHER_DO_RESERVE_ERROR`
in the telemetry, but having that code is not enough to pinpoint a falling
operation.

For further investigation, this patch adds ten more values to `DetourResultCode`.
`FUNCHOOKCROSSPROCESS_COPYSTUB_ERROR` is the last codepath we forgot to cover
in the previous commit.  The values of `MMPOLICY_RESERVE_*` are to investigate
`DETOUR_PATCHER_DO_RESERVE_ERROR` in the MMPolicy level.  In both cases, we add
the last Windows error code to `DetourError::mOrigBytes`.

Differential Revision: https://phabricator.services.mozilla.com/D92974
2020-10-08 19:00:22 +00:00
Kagami Sascha Rosylight bc9baaf7ab Bug 1652259 - Update client margins when DPI changes r=aklotz
Currently margin values only change when the window goes fullscreen, causes unexpected white borders when moving to a lower-DPI display. This patch fixes that by updating the values whenever DPI changes.

Differential Revision: https://phabricator.services.mozilla.com/D89493
2020-10-08 21:45:30 +00:00
Haik Aftandilian 4b8141a376 Bug 1669890 - Workaround MOZ_DIAGNOSTIC_ASSERT(mNumGPUsDetected > 0) DTK crash r=mstange
Until we have GPU detection for the DTK ARM hardware, skip the diagnostic ASSERT on ARM builds.

Differential Revision: https://phabricator.services.mozilla.com/D92983
2020-10-08 19:19:00 +00:00
Matt Woodrow 92c3e52975 Bug 1662336 - Pass print recording dependency list across to parent process and use CrossProcessPaint to resolve it. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D90807
2020-10-08 08:40:15 +00:00
Christoph Kerschbaumer faf05f7d19 Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
Jan Horak e516ab4cc5 Bug 1669495 Fix wrong tooltips sizes on wayland and hidpi displays;r=stransky
The tooltip width can be real number in the hidpi display setup
or when the font scaling is used. In this case the nsWindow GTK
implementation will cut out the non integer part which leads to
narrowing the tooltip and later overflowing the text which
is in the tooltip to next line. This workaround patch adds
a one pixel to the tooltip frame when the tooltip has real number
width or height.

Differential Revision: https://phabricator.services.mozilla.com/D92620
2020-10-08 08:04:32 +00:00
Jan Horak a94fa9e7e0 Bug 1634404 Fix popup position when layout.css.devPixelsPerPx > 0; r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D92759
2020-10-08 07:50:02 +00:00
alwu a3dd72e3a6 Bug 1663128 - part4 : enable SMTC after finishing other initializations. r=chunmin
In order to only call `EnableControl()` twice, once in in `Open()` and another one in `Close()`, so reduce other necessary call of `EnableControl()`.

Differential Revision: https://phabricator.services.mozilla.com/D92118
2020-10-07 09:23:05 +00:00
alwu 17ff21b7c5 Bug 1663128 - part3 : the event source should do the cleanup when it closes. r=chunmin
When close the event source, it should be responsible to clear up and reset the virtual control interface, rather than doing so by `Media Control Server` via setting some empty results.

Differential Revision: https://phabricator.services.mozilla.com/D92116
2020-10-07 09:23:08 +00:00