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

27602 Коммитов

Автор SHA1 Сообщение Дата
Razvan Maries ed2a6dcd8e Backed out changeset d7c59b738279 (bug 1681356) for multiple Wr perma failures. CLOSED TREE 2020-12-11 13:12:23 +02:00
stransky 85782992d9 Bug 1681356 [Linux] Fix titlebar setup for popup windows and use default CSD titlebar mode, r=jhorak
- Use different titlebar decoration setup for toplevel windows and popup windows.
- Use default CSD (client side decoration) mode when we can't get window manager name.
- Rename GetSystemCSDSupportLevel() to GetToplevelWindowDecoration()
- Rename CSD_SUPPORT_* to GTK_* decoration setup constants.

Differential Revision: https://phabricator.services.mozilla.com/D99242
2020-12-11 08:58:03 +00:00
Markus Stange 241c52c3ae Bug 1679839 - Convert some TouchBarInput properties into ObjC properties, and change the grouping of method implementations. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D98213
2020-12-11 04:09:52 +00:00
Markus Stange cab4fdbbdf Bug 1679839 - Move BaseIdentifier into nsTouchBar.h and rename it to kTouchBarBaseIdentifier. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D98212
2020-12-11 04:09:18 +00:00
Markus Stange e14509eebf Bug 1679839 - Add some missing includes. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D98211
2020-12-11 04:09:45 +00:00
Brad Werth 2b39e2b7ea Bug 1674142: Add a runtime assert to InProcessCompositorWidget constructor. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D98982
2020-12-10 16:24:24 +00:00
Simon Giesecke 4cab6ac723 Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8
This moves parts of IPCMessageUtils.h to two new header files and adapts
the include directives as necessary. The new header files are:
- EnumSerializer.h, which defines the templates for enum serializers
- IPCMessageUtilsSpecializations.h, which defines template specializations
  of ParamTraits with extra dependencies (building upon both IPCMessageUtils.h
  and EnumSerializer.h)

This should minimize the dependencies pulled in by every consumer of
IPCMessageUtils.h

Differential Revision: https://phabricator.services.mozilla.com/D94459
2020-12-10 11:09:21 +00:00
Chris Peterson 4415bec7a4 Bug 1681242 - Remove obsolete CGEvent workaround needed for macOS versions < 10.10.2. r=haik,spohl
This workaround is no longer needed because Firefox >= 79 requires macOS >= 10.12.

Differential Revision: https://phabricator.services.mozilla.com/D99019
2020-12-09 19:31:23 +00:00
Doug Thayer e893f4d2dc Bug 1680258 - Ensure UI state initialized for skeleton UI r=mhowell
This was causing us to have slightly wrong focusring behavior, leading to wpt
failures in focus-visible-005.html.

Differential Revision: https://phabricator.services.mozilla.com/D98479
2020-12-10 03:38:22 +00:00
Mihai Alexandru Michis 822e8ce413 Backed out 7 changesets (bug 1680258) for causing osx mochitest timeouts.
CLOSED TREE

Backed out changeset 4b885b40c787 (bug 1680258)
Backed out changeset 8eb4ebbd13d0 (bug 1680258)
Backed out changeset 403d7441eb0c (bug 1680258)
Backed out changeset a253801a3155 (bug 1680258)
Backed out changeset 183d89827d4b (bug 1680258)
Backed out changeset 268d2aac128e (bug 1680258)
Backed out changeset e9b9f97caa6c (bug 1680258)
2020-12-09 23:03:09 +02:00
Doug Thayer 253764a885 Bug 1680258 - Ensure UI state initialized for skeleton UI r=mhowell
This was causing us to have slightly wrong focusring behavior, leading to wpt
failures in focus-visible-005.html.

Differential Revision: https://phabricator.services.mozilla.com/D98479
2020-12-08 22:35:26 +00:00
Simon Giesecke e06a2d56fc Bug 1680269 - Fix build when building without MOZ_GECKO_PROFILER. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D99063
2020-12-09 08:58:06 +00:00
Makoto Kato bbb3785586 Bug 1678844 - Don't call SetInputContext on keyboard event. r=masayuki
This is another regression by bug 1658948 and Windows only.

When user script calls element.focus() during keyboard event, our TSF client
implementation commits composition string.

It is unnecessary to call SetInputContext when real keybaord event is fired.

Because,

- If keybaord event is fired, virtual keybaord is already shown
- We don't open virtual keyboard when physical keyboard is available on Android

So I shouldn't call SetInputContext on user interaction by keyboard.

Differential Revision: https://phabricator.services.mozilla.com/D98882
2020-12-09 07:02:19 +00:00
Martin Stransky 4f499c0c54 Bug 1660336 Build ffvpx FFmpegVideoDecoder module with VAAPI support, r=jya,glandium,jgilbert
- Remove MOZ_WAYLAND_CFLAGS and /ipc/chromium/chromium-config.mozbuild from ffmpeg58/moz.build
- Build ffvpx with vaapi support at ffvpx/moz.build
- Move gfx related headers from DMABUFSurfaceImage.h to DMABUFSurfaceImage.cpp and implement
  the gfx methods there.
- Remove GL headers from DMABufSurface.h and forward declare GLuint/GLContext there.
- Move mutex/MessageLoop/task related headers from nsWaylandDisplay.h to nsWaylandDisplay.cpp.
- Move mozva.cpp to mozva.c due to linking issues

Depends on D90556

Differential Revision: https://phabricator.services.mozilla.com/D90557
2020-12-08 15:26:09 +00:00
stransky ad1862149f Bug 1681191 [Linux] Don't render titlebar with shape masks on Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D98976
2020-12-08 07:51:08 +00:00
Andrew Osmond 45b5262f91 Bug 1632698 - Better handle device resets when we don't have a GPU process. r=sotaro,kvark,nical
Aside from on Windows, we do not appear to handle device resets properly
without the GPU process. This patch adds in the necessary plumbing to
handle the device reset properly. It also ensures that whenever we check
for a device reset reason, we handle all of the reasons (e.g. not just
the NV video memory purge reset reason) to ensure they are not lost, and
handles them all consistently in the same manner.

It also tracks the number of device resets for thresholding purposes
with an in process compositor. While it will only disable WebRender on
Linux at this time, it will put a note in the critical log if the
threshold was exceeded on all platforms. This may prove useful in
evaluating whether or not we should do the same everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D98705
2020-12-07 20:36:11 +00:00
Christoph Kerschbaumer 01b80dad31 Bug 1680768: Remove unused argument aPrincipal within closeAlert() in nsIAlertsService.idl r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98776
2020-12-07 17:44:34 +00:00
Martin Stransky 66e8265510 Bug 1666839 [Linux] When we draw to container (CSD mode), shift mShell opaque mask to container position, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D98915
2020-12-07 15:40:26 +00:00
Simon Giesecke 1c53236b70 Bug 1679272 - Include ScopeExit.h exactly where used. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D98888
2020-12-07 14:25:59 +00:00
WGH 510853e1e9 Bug 1680909 - Fix slowdown in X keyboard layout handling. r=stransky
When ibus input method is changed, Firefox reinitializes the KeymapWrapper
object, causing duplicate calls to g_signal_connect. If Firefox is running
long enough, duplicate handlers accumulate, and Firefox starts to barrage the
X server with XkbGetUpdatedMap/XkbGetControls calls, slowing the X server and
itself down.

A symptom of this problem is that after switching the input methods, Firefox
ignores the input for a while (up to several seconds).

Differential Revision: https://phabricator.services.mozilla.com/D98847
2020-12-07 14:09:48 +00:00
Sylvestre Ledru bbb5f8a339 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D98301
2020-12-07 10:17:57 +00:00
Martin Stransky 606515a908 Bug 1652220 [Linux] Clean up titlebar setup, r=jhorak
- Ask for alpha visual for toplevel windows on composited screens only.
- Rename TitlebarCanUseShapeMask() to TitlebarUseShapeMask() to control titlebar shape mask usage.
- Allow to use shape mask under widget.titlebar-x11-use-shape-mask preference, it's off by default.
- Simplify HideTitlebarByDefault(), remove compositing/shape mask check as we use RGBA visual only now.

Differential Revision: https://phabricator.services.mozilla.com/D98598
2020-12-04 12:22:32 +00:00
Martin Stransky 3fd5700719 Bug 1652220 [Linux] Create titlebar style from actual widget, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D98597
2020-12-04 15:47:30 +00:00
Butkovits Atila 6772473e85 Backed out 4 changesets (bug 1660336) for causing build bustage on libmozavcodec.so. CLOSED TREE
Backed out changeset 13936ff79b4c (bug 1660336)
Backed out changeset 7315e7b327f7 (bug 1660336)
Backed out changeset b6ca98c5a3cc (bug 1660336)
Backed out changeset fb8fee4471de (bug 1660336)
2020-12-04 12:40:28 +02:00
Martin Stransky ae3e1f1aac Bug 1660336 Build ffvpx FFmpegVideoDecoder module with VAAPI support, r=jya,glandium,jgilbert
- Remove MOZ_WAYLAND_CFLAGS and /ipc/chromium/chromium-config.mozbuild from ffmpeg58/moz.build
- Build ffvpx with vaapi support at ffvpx/moz.build
- Move gfx related headers from DMABUFSurfaceImage.h to DMABUFSurfaceImage.cpp and implement
  the gfx methods there.
- Remove GL headers from DMABufSurface.h and forward declare GLuint/GLContext there.
- Move mutex/MessageLoop/task related headers from nsWaylandDisplay.h to nsWaylandDisplay.cpp.

Depends on D90556

Differential Revision: https://phabricator.services.mozilla.com/D90557
2020-12-04 09:41:46 +00:00
Butkovits Atila df75ae580c Backed out changeset 8c0e2919f6b2 (bug 1678684) for causing Bug 1680661. CLOSED TREE 2020-12-04 11:26:44 +02:00
Matt Woodrow d58b85c3c9 Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya
The main-thread requirements for DXVA appear to have been needed when we initialized a crash guard. We now only run DXVA in the GPU and RDD processes, which don't support crash guards. This removes the main thread dispatch and the crashguard code, and enforces that we're in the GPU/RDD process to init DXVA.

This also removes the DLL blocklist code. This was disabled via pref when in the GPU process, which should be the majority of the time. In rare cases we would have been running DXVA in the RDD process (on older win7 when the GPU process isn't available). In these cases we can just do the same as the GPU process, allowing crashes and recovering from them (and disabling DXVA).

Differential Revision: https://phabricator.services.mozilla.com/D98036
2020-12-04 00:49:27 +00:00
Dave Townsend 486e6c4fae Bug 1675329: Add an API for returning an exit code from the application. r=dthayer,necko-reviewers,dragana,nika
Callers can pass an exit code to nsIAppStartup::Quit and it will be returned from the process when
it exits.

Note that I have using uint16_t as the exit code because on Windows the exit code can be a uint and
elsewhere it is an int. A uint16_t will safely convert to either of those and no-one will ever need
more than 64k exit codes!

Differential Revision: https://phabricator.services.mozilla.com/D96857
2020-12-03 20:19:47 +00:00
Andrew Osmond 2c105f035d Bug 1680505 - Ship WebRender to GNOME/Wayland users to release, excluding XWayland. r=jrmuizel
Wayland users are explicitly opting in to use it via MOZ_ENABLE_WAYLAND.
We should give them WebRender if we would otherwise given it on X11.

Differential Revision: https://phabricator.services.mozilla.com/D98603
2020-12-03 14:49:43 +00:00
Martin Stransky f7c40422f5 Bug 1479135 [X11] disable WebRender for popus on X11/non-composited screens, r=jhorak"
Differential Revision: https://phabricator.services.mozilla.com/D98318
2020-12-03 10:50:07 +00:00
Jeff Muizelaar a843c1eee8 Bug 1680403 - Drop now unneeded blocking of WebRender on gen6. r=aosmond
Now that a fix for bug 1680063 has landed we don't need this anymore.

Differential Revision: https://phabricator.services.mozilla.com/D98551
2020-12-03 00:33:38 +00:00
Bogdan Tara 4a649093b9 Backed out changeset 3e90a3759639 (bug 1679208) for scrollbars-no-margin.html failures CLOSED TREE 2020-12-03 01:11:32 +02:00
Emilio Cobos Álvarez aa15236426 Bug 1679208 - Don't assume int return values in nsITheme. r=mstange
This doesn't hold with fractional scale values. Right now GTK truncates
the scale factor, Windows rounds, and non-native theme rounds as well.

With this native theme will propagate correctly the floating point
values.

I tried to not change behavior meaningfully in any of the other themes,
mostly to avoid risk. GTK and Windows can be trivially tweaked to
support fractional scale factors properly if we wanted to, but seems
better to not do that as part of this patch.

Depends on D98099

Differential Revision: https://phabricator.services.mozilla.com/D98100
2020-12-02 21:40:05 +00:00
Jeff Muizelaar 774896d5b3 Bug 1680161. Fix typo in Sandybridge.
Differential Revision: https://phabricator.services.mozilla.com/D98529
2020-12-02 20:34:13 +00:00
Masayuki Nakano 912a5bc76d Bug 1678553 - part 13: Make `WidgetQueryContentEvent` use `Maybe` to store some data r=m_kato,geckoview-reviewers
Sorry for this big patch.

This makes `WidgetQueryContentEvent::Reply` is stored with `Maybe` to get
rid of `WidgetQueryContentEvent`.  And `Reply` stores offset and string
with `Maybe` and ``OffsetAndData<uint32_t>`, and also tentative caret offset
with `Maybe`.  Then, we can get rid of `WidgetQueryContentEvent::NOT_FOUND`.

Note that I tried to make `OffsetAndData` have a method to create `NSRange`
for cocoa widget.  However, it causes the column limit`to 100 or longer
and that causes unrelated changes in `TextEvents.h` and `IMEData.h`.
Therefore, I create an inline function in `TextInputHandler.mm` instead.

Differential Revision: https://phabricator.services.mozilla.com/D98264
2020-12-02 05:32:19 +00:00
Jeff Muizelaar a69ac134ef Bug 1680161. Disable WebRender on gen6 on win7. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D98410
2020-12-02 01:16:23 +00:00
Jeff Muizelaar c1ba5c5eab Bug 1680164 - Don't restrict Nvidia device blocking to win10. r=aosmond
Having Win10 here dates back to when we only ran on Win10

Differential Revision: https://phabricator.services.mozilla.com/D98412
2020-12-02 01:16:46 +00:00
Christian Holler 894124e3cf Bug 1677049 - Skip problematic mochitest-bc tests in TSan. r=Gankro,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98365
2020-12-01 20:21:20 +00:00
Andrew Osmond c40cc92486 Bug 1679998 - Part 2. Add Apple GPUs to the WebRender allowlist. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D98311
2020-12-01 19:09:04 +00:00
Andrew Osmond da33064dce Bug 1679998 - Part 1. Add Apple as a GPU vendor to GfxInfo. r=jrmuizel,mstange
Differential Revision: https://phabricator.services.mozilla.com/D98310
2020-12-01 16:26:43 +00:00
Andrew McCreight 37d53cb0c1 Bug 1680042 - Fix "detroyed" typos. DONTBUILD r=necko-reviewers,geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D98341
2020-12-01 17:35:54 +00:00
Andrew Osmond d44b0fb763 Bug 1678474 - Add generic Darwin option for OSX for downloadable gfx blocklist. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97688
2020-11-27 14:04:09 +00:00
Mark Striemer 8a4e6bf3a5 Bug 1673713 - Part 1: Serialize the numPagesPerSheet property r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95334
2020-11-30 22:46:23 +00:00
Andrew Osmond 5edd4fabe8 Bug 1678917 - Make glxtest fail more gracefully. r=rmader
If we encounter a single error in glxtest, we typically bail immediately
with one liner message. This patch makes it put more effort into
returning what information it is able to, as well as the current error
messages. If certain errors are correlated to specific devices, it would
be useful if we had the information to make the connection.

Differential Revision: https://phabricator.services.mozilla.com/D97861
2020-12-01 11:52:14 +00:00
Emilio Cobos Álvarez f2a67dff2e Bug 1679208 - Fix pre-existing unit confusion in gtk scrollbar painting. r=heycam
This is very visible with the previous changes in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D98240
2020-11-30 21:34:09 +00:00
Emilio Cobos Álvarez a7773ac831 Bug 1679208 - Use more strongly typed rects in nsNativeBasicTheme. r=heycam
As per review comments.

Depends on D97937

Differential Revision: https://phabricator.services.mozilla.com/D98099
2020-11-29 22:19:10 +00:00
Emilio Cobos Alvarez ab2154bd1b Bug 1679208 - Improve non-native theme with fractional scaling. r=heycam
This greatly improves non-native theme on Windows in presence of fractional DPI
(see bug 1657191).

This matches what the Windows native theme does, to my knowledge, see
ScaleForFrameDPI in nsNativeThemeWin.h.

However I think the right fix is to not make these LayoutDeviceInt* things but
LayoutDevice*.

That's a bigger fix, and fits well as a follow-up to this bug, so let's land
this in the meantime.

Differential Revision: https://phabricator.services.mozilla.com/D97937
2020-11-30 04:48:07 +00:00
Razvan Maries 4d377757b2 Backed out 6 changesets (bug 1660336) for multiple perma failures. CLOSED TREE
Backed out changeset 0f7b1edcd999 (bug 1660336)
Backed out changeset b43bed57327d (bug 1660336)
Backed out changeset 6c74e8eef334 (bug 1660336)
Backed out changeset 5575575cc0c4 (bug 1660336)
Backed out changeset 6fb988919317 (bug 1660336)
Backed out changeset 04056b5c72d9 (bug 1660336)
2020-11-29 01:11:43 +02:00
Martin Stransky d27e30a0c9 Bug 1660336 Build ffvpx FFmpegVideoDecoder module with VAAPI support, r=jya,glandium,jgilbert
- Remove MOZ_WAYLAND_CFLAGS and /ipc/chromium/chromium-config.mozbuild from ffmpeg58/moz.build
- Build ffvpx with vaapi support at ffvpx/moz.build
- Move gfx related headers from DMABUFSurfaceImage.h to DMABUFSurfaceImage.cpp and implement
  the gfx methods there.
- Remove GL headers from DMABufSurface.h and forward declare GLuint/GLContext there.
- Move mutex/MessageLoop/task related headers from nsWaylandDisplay.h to nsWaylandDisplay.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D90557
2020-11-28 09:45:21 +00:00
Masayuki Nakano 88f679f680 Bug 1678553 - part 12: Make `ContentCache` store character rects with `Maybe` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D97981
2020-11-27 14:48:03 +00:00