Commit Graph

27274 Commits

Author SHA1 Message Date
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
Csoregi Natalia
708c2f0ad2 Backed out changeset d42dc1f995bb (bug 1669275) for gfx crashes. CLOSED TREE 2020-10-08 04:26:03 +03:00
Robert Mader
8a5c42d45a Bug 1669275 - [WR/EGL/X11] Use GLX features on mesa. r=stransky
This allows mesa to continue using the existing vsync implementation
and nvidia to use the new EGL xvisual logic.

It is an intermediate solution until the issues are fixed. However,
assuming it will take a while to do so, it's probably worth it.

Differential Revision: https://phabricator.services.mozilla.com/D92466
2020-10-07 21:21:20 +00:00
Razvan Maries
98e7259515 Backed out 4 changesets (bug 1663128) for perma failures on browser_control_page_with_audible_and_inaudible_media.js. CLOSED TREE
Backed out changeset c9bd215fdafa (bug 1663128)
Backed out changeset 0ea9bcad0ff8 (bug 1663128)
Backed out changeset 6791eacd4868 (bug 1663128)
Backed out changeset 1f6e8e343055 (bug 1663128)
2020-10-07 12:14:56 +03:00
alwu
2d509cd2f4 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-06 18:15:06 +00:00
alwu
d81f601202 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-06 21:43:25 +00:00
Daniel Holbert
675e1e5b28 Bug 1669409: Convert the nsIPrintSettings:kEnableSelectionRB flag into a boolean, since it's the only entry in a bitfield. r=jwatt,emilio
This was the last flag that the PrintOptions bitfield was tracking.

So, this patch is effectively converting that bitfield (and its alias
"PrintOptionsBits") into a new, simpler boolean field named
"isPrintSelectionRBEnabled".

Differential Revision: https://phabricator.services.mozilla.com/D92542
2020-10-07 00:36:51 +00:00
Chris Martin
a9c66594af Bug 1654619 - Do not use local backbuffer when remote backbuffer enabled r=mstange
BasicCompositor defaults to using BufferMode::BUFFERED, which causes it to draw
into a temporary backbuffer, which it then copies to the widget's surface.

With the addition of the "remote backbuffer" feature, there is now a second
buffering stage. This makes the original backbuffer redundant when
"remote backbuffer" is enabled.

This changes the mode to BufferMode::BUFFER_NONE in that case, and also ensures
that the remote backbuffer preserves contents when resized (which is necessary
because the remote backbuffer needs to be a stand-in for the widget surface)

Differential Revision: https://phabricator.services.mozilla.com/D92661
2020-10-06 22:37:51 +00:00
Kartikaya Gupta
36fe42d67a Bug 1642526 - Force the macOS scrollthumbs to be drawn via the custom drawing codepath. r=mstange
The default drawing codepath requests the OS to draw it, but the OS seems to
ignore the scaling factor of the transform. So when drawing scrollbars after
APZ-zooming, the scrollthumbs appear abnormally thin. This patch forces us into
the custom drawing codepath which gets scaled properly.

Differential Revision: https://phabricator.services.mozilla.com/D92677
2020-10-06 21:18:41 +00:00
Emilio Cobos Álvarez
4ad501e86f Bug 1666497 - Don't flush layout from popuppositioned events. r=mconley,Gijs,smaug
We don't need to flush before dispatching the event because we know that
if the values we cared about changed, then we'd get another event.

Differential Revision: https://phabricator.services.mozilla.com/D92444
2020-10-06 16:28:41 +00:00
Sylvestre Ledru
d9cd198ba1 Bug 1519636 - Reformat recent changes to the Google coding style r=andi,necko-reviewers,dragana
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92459
2020-10-06 16:12:00 +00:00
Daniel Holbert
63230729cd Bug 1669375 part 2: Remove code that partially implemented the "print only even/odd pages" feature. r=jwatt
This code looked like it might work, but it seems to have only ever been backed
by per-printer about:config prefs.  I believe we only ever exposed UI for this
feature on Linux, via the native GTK dialog; and even there, the UI doesn't
actually seem to have done anything -- it was never wired up to the actual
implementation of even/odd page-skipping.

Differential Revision: https://phabricator.services.mozilla.com/D92528
2020-10-06 15:33:29 +00:00
Daniel Holbert
2b7e596021 Bug 1669375 part 1: Don't expose "print only even/odd pages" option in our GTK Print Dialog, since we don't actually honor it. r=jwatt
This patch simply removes GTK_PRINT_CAPABILITY_PAGE_SET from our
GtkPrintCapabilities struct.  This flag is documented as controlling whether
the gtk "Print dialog will offer printing even/odd pages", per
https://developer.gnome.org/gtk3/stable/GtkPrintUnixDialog.html

After this change, the "Only Print: All Sheets | Even Sheets | Odd Sheets"
dropdown-menu in the GTK Print Dialog will be grayed out & disabled, which will
accurately indicate that we don't support this feature.

Differential Revision: https://phabricator.services.mozilla.com/D92527
2020-10-06 14:49:31 +00:00
Jeff Muizelaar
6195db9460 Bug 1669484 - Rollout WebRender to Cherryview (gen8lp) in Nightly and early beta. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92614
2020-10-06 15:08:43 +00:00
Simon Giesecke
59dd6d410d Bug 1668757 - Fix lifetime extension issues with 0-length literals. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D92179
2020-10-06 15:03:01 +00:00
Makoto Kato
17bba3d008 Bug 1666796 - Replace ALOGIME with MOZ_LOG in GeckoEditableSupport on Nightly. r=geckoview-reviewers,agi
When debugging text issue on GV, I sometimes enable `DEBUG_ANDROID_IME` to
output log. But I think that it is better to use `MOZ_LOG` since we can get
the log on Fenix build.

If using GVE, we can output log via the following command.

```
adb shell am start -n org.mozilla.geckoview_example/.GeckoViewActivity --es env0 "MOZ_LOG=GeckoEditableSupport:5"
```

But this change is Nightly only due to footprint etc at first.

Differential Revision: https://phabricator.services.mozilla.com/D92449
2020-10-05 16:11:02 +00:00
Jonathan Watt
c3bb0ca8ef Bug 1669370. Purge the worst/most obvious cases of corrupt/invalid printing prefs. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D92520
2020-10-06 00:35:40 +00:00
Cameron McCormack
37c635bfdc Bug 1669131 - Size and paint non-native theme scrollbars to emulate native non-overlay Gtk scrollbars. r=spohl
This doesn't yet use theme-derived colors, and also doesn't yet
support window active state dependent colors.

Differential Revision: https://phabricator.services.mozilla.com/D92368
2020-10-05 21:15:18 +00:00
Cameron McCormack
cf575b9af6 Bug 1669135 - Add telemetry for whether Gtk theme has scrollbar buttons. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D92367
2020-10-05 20:59:32 +00:00
Masayuki Nakano
ec2e1c9705 Bug 1669133 - Get rid of pref to disable text event in the default group and telemetry for it r=smaug
The telemetry probe was added in bug 1506434, and it's not necessary anymore
because of the event in the default group was completely disabled in
bug 1288640 (Gecko 65).

Therefore, we can get rid of the pref, and we can take back a room for a
bool member in `nsPIDOMWindowInner` for new telemetry probes which need
to know whether a specific event listener has been added or not.

Depends on D92395

Differential Revision: https://phabricator.services.mozilla.com/D92397
2020-10-05 11:17:17 +00:00
Emilio Cobos Álvarez
5e1e2a4c05 Bug 1669173 - Keep active state even if not hovering over scrollbars. r=spohl
This is different than most of the form controls, but matches windows,
gtk, and common sense.

Differential Revision: https://phabricator.services.mozilla.com/D92382
2020-10-05 13:29:54 +00:00
longsonr
67be8b29cb Bug 1669161 - Remove dead SVG event code r=smaug
-  onSVGZoom is gone and we no longer dispatch it.
- we've never dispatched SVGUnload or SVGResize events and if we did implement these they would be unload and resize events now.

Differential Revision: https://phabricator.services.mozilla.com/D92381
2020-10-05 11:19:47 +00:00
stransky
023b95641e Bug 1668771 [Wayland] Use timeout for frame callbacks for basic compositor, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D92200
2020-10-05 08:41:32 +00:00
Sylvestre Ledru
1a949d67b0 Bug 1669092 - declare 'hasAnchorRect' only for wayland r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D92347
2020-10-05 08:03:58 +00:00
Robert Mader
700c9a4115 Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky
Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Also adapt tests accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D92180
2020-10-05 02:19:10 +00:00
Razvan Maries
2be9c4503e Backed out changeset c3362c39bb7b (bug 1667116) for perma failures on browser_startup_syncIPC.js. 2020-10-05 02:04:41 +03:00
Robert Mader
1add6e5c9b Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky
Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Also adapt tests accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D92180
2020-10-04 21:12:52 +00:00
Narcis Beleuzu
5be2a7f229 Backed out changeset 3d48fba542df (bug 1667116) for bc failures on browser_startup_syncIPC.js CLOSED TREE 2020-10-03 14:44:35 +03:00
Robert Mader
2408479ab7 Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky
Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Differential Revision: https://phabricator.services.mozilla.com/D92180
2020-10-03 05:47:51 +00:00
Haik Aftandilian
f0efce15ed Bug 1668493 - macOS 11.0 - Popup Menus separator lines have blue tint r=mstange
Slight color adjustment of the separator.

Differential Revision: https://phabricator.services.mozilla.com/D92273
2020-10-02 19:40:33 +00:00
Narcis Beleuzu
5d3d2e84a3 Backed out changeset 442928b108aa (bug 1667116) for failures on browser_startup_syncIPC.js . CLOSED TREE 2020-10-03 08:39:38 +03:00
Robert Mader
948e33f1f0 Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky CLOSED TREE
Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Differential Revision: https://phabricator.services.mozilla.com/D92180
2020-10-02 11:33:06 +00:00
Csoregi Natalia
dc6364ce5e Backed out changeset 2b03ab71a84c (bug 1667116) for failures on browser_startup_syncIPC.js. CLOSED TREE 2020-10-02 21:25:57 +03:00
Markus Stange
2e5e4bdcbc Bug 1668107 - Clean up how nsChildView decides to use acceleration and OMTC. r=jrmuizel
In the past we had a problem with transparent windows and window shadows. This
is no longer a problem, because we have dropped the versions of macOS where it
is a problem [1].

So we now support acceleration on all window types.

But we don't necessarily want to use the OpenGL compositor or WebRender for all
windows, due to per-window overhead.

[1] Specifically, the problematic macOS versions are 10.9 and 10.10. On 10.9,
transparent windows with CoreAnimation content never have shadows, and on 10.10,
those windows only get a shadow when they are opened for the second time without
their size changing, see bug 1632895 comment 5. We now support only 10.12+.

Depends on D91828

Differential Revision: https://phabricator.services.mozilla.com/D91829
2020-10-01 15:18:51 +00:00
Markus Stange
572cc297b2 Bug 1668107 - Be more consistent about having opaque non-popup windows. r=spohl
We already don't support transparency on non-popup windows, but the code in
nsChildView makes it look like we do.

The changes in this patch have the following effects:
 - nsCocoaWindow::SetTransparencyMode no longer sets a white background color on
   non-popup windows.
 - nsChildView picks up the default implementation for Get/SetTransparencyMode
   from nsBaseWidget, which ignores calls to SetTransparencyMode and always
   returns opaque. The nsChildView methods were only called for non-popup
   windows (popup windows call the nsCocoaWindow implementations), so this is
   what we want.

Differential Revision: https://phabricator.services.mozilla.com/D91828
2020-10-02 15:07:12 +00:00
Bert Peers
5444eeeaf6 Bug 1668145 - Detect all Mac GPUs. r=jrmuizel,haik
This also adds a diagonstic assert to make sure the code works in all process types.
And it adds another item to the sandbox IOKit property name allowlist, so that
the detection works in content processes.

This landed before, in bug 1649490, but without the sandbox adjustment (so it
didn't work in content processes).

Differential Revision: https://phabricator.services.mozilla.com/D91950
2020-10-02 01:10:20 +00:00
Emilio Cobos Álvarez
941e868780 Bug 1668767 - Make "print selection" setting independent of page range. r=jfkthame
It conceptually is, and this will allow to have UI independent of the
page range in bug 140718.

Differential Revision: https://phabricator.services.mozilla.com/D92201
2020-10-02 13:59:48 +00:00
Robert Mader
55405b7afc Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky
Until bug 1617002 Firefox would unintendedly not get unredirected on X11
when used with WR and OpenGL as it didn't fullfill the requirements -
not being transparent.

Now that this is fixed, fullscreen unredirection can happen on certain
compositors. For the basic compositor we already explicitely ask to not
get unredirected - do that for all backends.

Differential Revision: https://phabricator.services.mozilla.com/D92180
2020-10-02 11:33:06 +00:00
Robert Mader
71f8bab55f Bug 1667674 - [Wayland] Support public primary-selection unstable protocol. r=stransky
This is required to support pasting the primary selection into Firefox on compositors only
supporting the public protocol, such as KWin. Getting the selection *from* Firefox is done
via GTK and will be supported from GTK 3.24.23 on.

The public protocol, while practically identical, will replace the gtk-private one eventually.
However, support for the private one will still be needed for a while.

Note: this also updates the auto-generated gtk-primary-selection files.

Differential Revision: https://phabricator.services.mozilla.com/D91594
2020-10-02 09:13:06 +00:00
Emily McDonough
bcead76cbc Bug 1668076 - Fix formatting of nsPrinterListCUPS.cpp r=nordzilla
The functions are in the wrong order, and there was some missing whitespace.

Differential Revision: https://phabricator.services.mozilla.com/D91818
2020-10-01 23:14:32 +00:00