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

27222 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez b94fd775e1 Bug 1668406 - Fix nsIPrintSettings.showMarginGuides. r=jfkthame
So that:

 * It accounts for @page.
 * It is correctly serialized and deserialized over IPC.
 * It's nicer to use.

Depends on D92004

Differential Revision: https://phabricator.services.mozilla.com/D92005
2020-10-01 10:54:18 +00:00
Emilio Cobos Álvarez fbd95bb29e Bug 1668406 - Introduce nsIPrintSettings.honorPageRuleMargins. r=jfkthame
(Doing the obvious)

This should allow the front-end to expose it in one way or another in
bug 1661663.

Differential Revision: https://phabricator.services.mozilla.com/D92004
2020-10-01 13:18:01 +00:00
Jan Horak cd1ea79e7c Bug 1661192 Don't use popup offset when we don't have anchor rect; r=stransky
Popups like autoscroll does not have anchor rectangle while it has set negative
margin to center the popup under cursor. Adding this offset to the final position
leads recursive repositioning of the popup to upper-left position under Wayland.

On the other hand we have to keep the offset for the popups with given anchor rect
like hamburger menus which use the offset to correctly position their pointing arrow.

Differential Revision: https://phabricator.services.mozilla.com/D92045
2020-10-01 11:35:23 +00:00
Edgar Chen 8df93e148e Bug 1666201 - Part 3: Ensure synthesized mouse event is dispatched on correct thread; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91493
2020-10-01 08:52:20 +00:00
Edgar Chen 91c7e03f17 Bug 1666201 - Part 2: Make Dispatch*Thread support multiple types of event; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91491
2020-10-01 08:52:22 +00:00
Edgar Chen 007c999be8 Bug 1666201 - Part 1: Rename ToWidget{Wheel|Mouse}Event to ToWidgetEvent; r=kats
So they can be used in template.

Differential Revision: https://phabricator.services.mozilla.com/D91490
2020-10-01 08:52:10 +00:00
Jeff Gilbert 449098b7b4 Bug 1668144 - Add blocklisting for OOP WebGL. r=mattwoodrow
* Add FEATURE_THREADSAFE_GL and FEATURE_ALLOW_WEBGL_OUT_OF_PROCESS
* Add gfxVars::AllowWebglOop()
* Blocklist THREADSAFE_GL on mesa/nouveau

Differential Revision: https://phabricator.services.mozilla.com/D91879
2020-10-01 08:14:12 +00:00
Julian Seward cbaaa09c79 Bug 1665553 - Undefined value use in `moz_gtk_button_paint()`. r=stransky@redhat.com.
nsNativeThemeGTK::GetGtkWidgetAndState looks as if it should write to
out-parameters `*aState` and `*aWidgetFlags` any time it returns `true`.  But
it is possible to observe that `*aWidgetFlags` is uninitialised when `true` is
returned.  This simple patch zero-initialises `*aWidgetFlags` at the start, in
the same way that `*aState` is already zero-initialised at the start.

Differential Revision: https://phabricator.services.mozilla.com/D90697
2020-09-18 17:32:13 +00:00
Mike Conley a2b31f221f Bug 1663784 - Make StatusBarEntry and IconLoader classes work with the cycle collector. r=mccr8
Depends on D90007

Differential Revision: https://phabricator.services.mozilla.com/D91644
2020-09-30 21:13:55 +00:00
Mike Conley 3ddb8f58e7 Bug 1663784 - Add Windows platform support for IconLoader. r=mhowell
Depends on D89972

Differential Revision: https://phabricator.services.mozilla.com/D90007
2020-09-30 21:14:00 +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
Bogdan Tara 222e4f64b7 Backed out 5 changesets (bug 1662094, bug 1666201, bug 1520785) for pointerevent related failures CLOSED TREE
Backed out changeset 0ff76cb4b991 (bug 1662094)
Backed out changeset 94bf1aff7bff (bug 1520785)
Backed out changeset 1688cdab3d48 (bug 1666201)
Backed out changeset e960f750c588 (bug 1666201)
Backed out changeset cb30150e8289 (bug 1666201)
2020-10-01 11:46:32 +03:00
Narcis Beleuzu dd8c9cd0e6 Backed out changeset 5e2b23ee8200 (bug 1668076) for mochitest failure on test_bug509055.html CLOSED TREE 2020-10-01 03:58:46 +03:00
Botond Ballo 01b3c7969d Bug 1667594 - Move nsLayoutUtils::RectCallback to namespace scope. r=emilio,jgilbert
This allows it to be forward-declared (while a nested class cannot be),
such that headers files that use RectCallback by pointer or reference
do not need to include nsLayoutUtils.h.

This avoids including nsLayoutUtils.h in nsRange.h.

Differential Revision: https://phabricator.services.mozilla.com/D91685
2020-09-30 21:06:47 +00:00
Botond Ballo e6c29de3e7 Bug 1667594 - Move nsLayoutUtils::SurfaceFromElementResult to its own file. r=emilio
Along with a dependent struct DirectDrawInfo.

This allows nsImageRenderer.h and CanvasRenderingContext2D.h to
avoid including nsLayoutUtils.h.

For nsImageRenderer.h in particular, a forward declaration is
not sufficient as nsImageRenderer stores SurfaceFromElementResult
by value.

A couple of method definitions elsewhere are moved out of line
to keep things compiling without including nsLayoutUtils.h in
additional headers.

Differential Revision: https://phabricator.services.mozilla.com/D91684
2020-09-30 21:05:34 +00:00
Edgar Chen 6bea44b750 Bug 1666201 - Part 3: Ensure synthesized mouse event is dispatched on correct thread; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91493
2020-09-30 19:40:08 +00:00
Edgar Chen b91048c969 Bug 1666201 - Part 2: Make Dispatch*Thread support multiple types of event; r=kats
Differential Revision: https://phabricator.services.mozilla.com/D91491
2020-09-30 19:19:42 +00:00
Edgar Chen aa7ddc0905 Bug 1666201 - Part 1: Rename ToWidget{Wheel|Mouse}Event to ToWidgetEvent; r=kats
So they can be used in template.

Differential Revision: https://phabricator.services.mozilla.com/D91490
2020-09-30 17:29:17 +00:00
Toshihito Kikuchi 7034355c29 Bug 1588245 - Introduce an extra errorcode inside WindowsDllInterceptor. r=mhowell
The previous commit d8315e4ed18d introduced a new telemetry field
in the launcher process ping to collect the assembly pattern of
a target function on detour failure, but most of the crash instances
do not have a value in the field.  This means the failure happens
before or after `CreateTrampoline`.

To narrow down the root cause, this patch puts a fine-grained error value
in the "hresult" field instead of the hardcoded ERROR_UNIDENTIFIED_ERROR.

This patch also adds `IsPageAccessible` check before fetching data from
a different process because fetching data from an invalid address hits
`MOZ_RELEASE_ASSERT` in `EnsureLimit`, resulting in crash without sending
the launcher process failure.

Differential Revision: https://phabricator.services.mozilla.com/D91881
2020-09-30 20:09:22 +00:00
Emily McDonough f4918ad293 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-09-30 20:08:24 +00:00
Erik Nordin b86e2816bc Bug 1666918 - Prevent Duplicate Paper Sizes Returned From CUPS r=emilio
CUPS occasionally returns duplicate paper sizes, especially on
older versions of Ubuntu. This patch utilizes a hash set to
skip over any duplciate paper sizes, ensuring that the final list
contains only unique sizes.

These duplicate checks are currently being done on the front end,
and this patch will allow us to remove them.

Differential Revision: https://phabricator.services.mozilla.com/D91215
2020-09-30 18:37:50 +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
Jonathan Watt 9663c812c7 Bug 1668301. Merge the 'printing-widget' NSPR module into the 'printing' module. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D91949
2020-09-30 16:36:29 +00:00
Mike Conley 2a5f7a42c2 Bug 1663784 - Make StatusBarEntry and IconLoader classes work with the cycle collector. r=mccr8
Depends on D90007

Differential Revision: https://phabricator.services.mozilla.com/D91644
2020-09-30 15:15:27 +00:00
Mike Conley 455e99b3e0 Bug 1663784 - Add Windows platform support for IconLoader. r=mhowell
Depends on D89972

Differential Revision: https://phabricator.services.mozilla.com/D90007
2020-09-30 15:15:01 +00: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
Jonathan Watt 568f31deea Bug 1668296. Remove a bunch of DEBUG_rods code. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D91939
2020-09-30 15:54:30 +00:00
Narcis Beleuzu c3f877ffe4 Backed out changeset 499103fc4ccb (bug 1667674) for bc failures on browser_aboutCertError_offlineSupport.js . CLOSED TREE 2020-09-30 21:50:27 +03:00
stransky 3ee15b3859 Bug 1664911 [Wayland] Use DRM modifiers for WebGL surfaces, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D90168
2020-09-30 13:14:05 +00:00
Robert Mader 8397a4676b 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-09-30 12:35:49 +00:00
Jonathan Watt 1890bfffde Bug 1667265. Remove nsIPrintSettingsService.globalPrintSettings. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D91366
2020-09-30 12:25:02 +00:00
Csoregi Natalia b3bc0b7401 Backed out changeset 0028834844d2 (bug 1668210) for web platform failures on delayed_window_print.html. CLOSED TREE 2020-09-30 14:37:59 +03:00
Jonathan Watt 85b74a2951 Bug 1668210. Prevent print settings being saved to unprefixed prefs on non-Android. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D91907
2020-09-30 09:36:40 +00:00
Makoto Kato 27a2234974 Bug 1667914 - use async syntax for test_imestate.html. r=masayuki
Before updating test_imestate.html and adding new test to it, I want to use
async syntax.

And this component shouldn't be Core: I18N.

Differential Revision: https://phabricator.services.mozilla.com/D91666
2020-09-29 02:01:59 +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 afb5304855 Bug 1663784 - Make StatusBarEntry and IconLoader classes work with the cycle collector. r=mccr8
Depends on D90007

Differential Revision: https://phabricator.services.mozilla.com/D91644
2020-09-29 19:31:36 +00:00
Mike Conley 20847e1a3c Bug 1663784 - Add Windows platform support for IconLoader. r=mhowell
Depends on D89972

Differential Revision: https://phabricator.services.mozilla.com/D90007
2020-09-29 06:50:37 +00: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
Haik Aftandilian 7a37770f46 Bug 1656301 - Popup Menus Don't Match Big Sur Look and Feel, Have White Line Artifacts r=mstange
Avoid the menu separator artifacts caused by HIThemeDrawMenuSeparator() on macOS Big Sur by drawing the the separator with CGContextFillRect() instead.

Adjust the width of the separator and submenu right margin to resemble Big Sur native popups.

Differential Revision: https://phabricator.services.mozilla.com/D91381
2020-09-29 18:50:36 +00:00
Jonathan Watt 3f30f74084 Bug 1667953 p1. Stop reading printer specific settings from global prefs. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D91819
2020-09-29 18:51:35 +00:00
Jeff Muizelaar ed4a6ba576 Bug 1668000 - Rollout WebRender to Intel laptops with older drivers. r=aosmond
There's no distinction between 'Intel' and 'IntelModern' in release
so even though we switch to 'Intel' it has no effect.

Differential Revision: https://phabricator.services.mozilla.com/D91729
2020-09-29 17:51:52 +00:00
Razvan Maries 5fcc39162b Backed out changeset 41f94c3377e6 (bug 1668000) for build bustages on GfxInfo.cpp. CLOSED TREE 2020-09-29 20:29:39 +03:00
Bob Owen 0156691170 Bug 1667952: Only crash in DEBUG builds for system API failures in nsPrinterWin. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D91752
2020-09-29 15:50:16 +00:00
Jeff Muizelaar ca7e5f06dc Bug 1668000 - Rollout WebRender to Intel laptops with older drivers. r=aosmond
There's no distinction between 'Intel' and 'IntelModern' in release
so even though we switch to 'Intel' it has no effect.

Differential Revision: https://phabricator.services.mozilla.com/D91729
2020-09-29 14:32:45 +00:00
Butkovits Atila 1c3507c950 Backed out changeset 9811cad69b2c (bug 1664911) for causing build bustage on nsWaylandDisplay.h. CLOSED TREE 2020-09-29 14:47:26 +03:00
stransky d14d6c3e76 Bug 1664911 [Wayland] Use DRM modifiers for WebGL surfaces, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D90168
2020-09-29 09:32:54 +00:00
Toshihito Kikuchi cba747de45 Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin
Our telemetry data showed `WinUtils::GetNSWindowPtr` returned nullptr
when constructing `TaskbarTabPreview`.  We can't find a way to make such
a situation, but these crashes tell us we should not assume `GetNSWindowPtr`
always returns a valid pointer.

A proposed fix is to change the return value of `GetWindowHook()` from
a reference to a pointer so that the caller can decide what to do
when nullptr is returned.

Differential Revision: https://phabricator.services.mozilla.com/D91471
2020-09-28 21:22:11 +00:00