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

29745 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez b699e8cdc8 Bug 1753995 - Remove nsDOMWindowUtils.screenPixelsPerCSSPixel. r=smaug,dholbert
For all purposes, this is the same as devicePixelRatio. It was meant to
skip the resistFingerprinting check the devicePixelRatio getter does,
but we do that now using CallerType in WebIDL, so if we cared about that
for these tests (which we don't) we could just do
SpecialPowers.wrap(window).devicePixelRatio.

As a follow-up we could move the NoOverride to window for symmetry. But
it's only used by devtools touch simulation so not sure if worth it.

Differential Revision: https://phabricator.services.mozilla.com/D138021
2022-02-07 18:23:36 +00:00
Jonathan Kew 99a2c35e7f Bug 1748520 - Add checks in GfxInfoBase to avoid undesired (re-)initializaton of gfxPlatform if it is not currently available. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D138040
2022-02-07 18:21:04 +00:00
Emilio Cobos Álvarez 70d562520d Bug 1748181 - Provide a pref to make scrollbar-width: thin behave as auto. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D137898
2022-02-07 18:14:31 +00:00
Butkovits Atila 96d2a50568 Backed out changeset 14ef7c10fef4 (bug 1617283) for causing bustages complaining about Unified_cpp_widget_windows0.obj. CLOSED TREE 2022-02-07 00:24:45 +02:00
Shazib Summar a913da4c47 Bug 1617283 - Removed COM violations and shifted AudioSession to MTA r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D136377
2022-02-06 22:01:29 +00:00
Makoto Kato 3f8469a7bd Bug 1753412 - back to unistd.h due to beta build failure. r=geckoview-reviewers,agi
I mistake bug 1753139. It seems to require unistd.h for gettid.

Differential Revision: https://phabricator.services.mozilla.com/D137825
2022-02-05 04:40:05 +00:00
Emily McDonough 9a4e68bfd7 Bug 1746956 - Assume that a CUPS server name and hostname are not textually equal when the hostname might have been normalized to "localhost" r=dholbert
This accounts for a specific situation where our check for Bug 1691347 was not
quite identical to the code in CUPS.

In httpGetHostname, there are some cases where the result is "localhost" rather
than `http->hostname`:
2201569857/cups/http-addr.c (L794-L818)

We will now assume that if the result is "localhost" then this could have
occurred. This change might block some printers that would otherwise work
properly, but eventually this fix can be placed behind a CUPS version check.

Differential Revision: https://phabricator.services.mozilla.com/D137903
2022-02-05 00:39:04 +00:00
Emilio Cobos Álvarez 8185be07ba Bug 1753411 - Add an include to fix X11-only build after unified file changes.
MANUAL PUSH: Trivial Tier2 bustage fix CLOSED TREE
2022-02-04 23:47:28 +01:00
Emilio Cobos Álvarez f12fb4f2ba Bug 1753411 - Remove wayland clipboard mutex. r=stransky
Not sure why would it be needed now.

Differential Revision: https://phabricator.services.mozilla.com/D137736
2022-02-04 22:09:45 +00:00
Emilio Cobos Álvarez 578901ebf4 Bug 1753411 - Deduplicate a bunch of the X11 vs. Wayland clipboard code. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D137735
2022-02-04 22:09:44 +00:00
Chris Peterson 43e2ed0c97 Bug 1744425 - widget/windows: Use nsID::GenerateUUIDInPlace() instead of the nsUUIDGenerator service. r=tkikuchi
This change is needed to avoid toolkit/components/backgroundtasks/tests/browser/browser_xpcom_graph_wait.js test failures where the nsUUIDGenerator service was loaded during ASan test runs but not non-ASan test runs (due to differences in temp profile directory paths).

Using nsID::GenerateUUIDInPlace() also avoids the overhead of instantiating the nsUUIDGenerator service.

Depends on D132866

Differential Revision: https://phabricator.services.mozilla.com/D136992
2022-02-03 04:39:35 +00:00
Makoto Kato 4b78ec16c1 Bug 1753139 - Clean up AndroidBridge.h. r=geckoview-reviewers,emilio,agi
- AndroidBridge inclues a lot of unused headers.
- Remove unused enum.
- Move AndroidSystemColor to nsLookAndFeel.h since this struct is used in it.

Differential Revision: https://phabricator.services.mozilla.com/D137595
2022-02-03 01:42:51 +00:00
Emilio Cobos Álvarez aec3a092c3 Bug 1753067 - Follow-up: Fix 32-bit build.
MANUAL PUSH: Minor fixup to avoid backout.
2022-02-02 23:48:26 +01:00
Jamie Nicol 85737329f2 Bug 1719327 - Block webrender on Vivante GC7000UL devices. r=gfx-reviewers,jrmuizel
Webrender crashes during draw calls on this GPU. Move users to
software webrender instead.

Differential Revision: https://phabricator.services.mozilla.com/D137666
2022-02-02 17:21:08 +00:00
Emilio Cobos Álvarez acc20a552e Bug 1753067 - Make ClipboardData / ClipboardTargets members private. r=stransky
As per https://phabricator.services.mozilla.com/D137549#inline-756817,
though honestly not sure if worth it.

Differential Revision: https://phabricator.services.mozilla.com/D137651
2022-02-02 14:55:13 +00:00
Emilio Cobos Álvarez c6da6d392f Bug 1753067 - Make Wayland and X11 clipboard implementations a bit more similar. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D137619
2022-02-02 14:55:13 +00:00
Emilio Cobos Álvarez 63348aa663 Bug 1753067 - Fix some leaks in GDK atom handling. r=stransky
Some of them are logging, some of them are not.

Differential Revision: https://phabricator.services.mozilla.com/D137550
2022-02-02 14:55:12 +00:00
Emilio Cobos Álvarez 85f8575823 Bug 1753067 - Cleanup handling of clipboard data lifetime. r=stransky
This is a bit harder to mess up, and a bit simpler to read too.

Differential Revision: https://phabricator.services.mozilla.com/D137549
2022-02-02 14:55:12 +00:00
criss e01ea0834c Backed out 6 changesets (bug 1753067) for causing multiple failures. CLOSED TREE
Backed out changeset ea6f7e57b5a1 (bug 1753067)
Backed out changeset 6458601b04d5 (bug 1753067)
Backed out changeset d98c8d344eb4 (bug 1753067)
Backed out changeset a949392fdc43 (bug 1753067)
Backed out changeset 5cdcd60f751f (bug 1753067)
Backed out changeset c4c5b405438a (bug 1753067)
2022-02-02 16:26:24 +02:00
Emilio Cobos Álvarez 61333f12cc Bug 1753067 - And a similar trivial fix for nsClipboardWayland to avoid sign getting lost before checking for <= 0.
MANUAL PUSH: Similar fix to the last orange fix.
2022-02-02 14:40:39 +01:00
Emilio Cobos Álvarez 34d6731a67 Bug 1753067 - Restore clipboard data len check in nsClipboardX11.
MANUAL PUSH: Orange fix.
2022-02-02 14:26:47 +01:00
Emilio Cobos Álvarez 4755c564c2 Bug 1753067 - Make ClipboardData / ClipboardTargets members private. r=stransky
As per https://phabricator.services.mozilla.com/D137549#inline-756817,
though honestly not sure if worth it.

Differential Revision: https://phabricator.services.mozilla.com/D137651
2022-02-02 13:11:28 +00:00
Emilio Cobos Álvarez 7c3784140a Bug 1753067 - Make Wayland and X11 clipboard implementations a bit more similar. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D137619
2022-02-02 13:11:28 +00:00
Emilio Cobos Álvarez 5541461979 Bug 1753067 - Fix some leaks in GDK atom handling. r=stransky
Some of them are logging, some of them are not.

Differential Revision: https://phabricator.services.mozilla.com/D137550
2022-02-02 13:11:27 +00:00
Emilio Cobos Álvarez 60b8996475 Bug 1753067 - Cleanup handling of clipboard data lifetime. r=stransky
This is a bit harder to mess up, and a bit simpler to read too.

Differential Revision: https://phabricator.services.mozilla.com/D137549
2022-02-02 13:11:27 +00:00
Emilio Cobos Álvarez 521569f2ab Bug 1753067 - Consistently use g_malloc in nsClipboardX11. r=stransky
We were passing a g_malloc-ed pointer to free():

  https://searchfox.org/mozilla-central/rev/b0c5c3b9821c2f22193fd6e1e9f66032639da1a1/widget/gtk/nsClipboardX11.cpp#198

Do the same as Wayland, and use g_malloc consistently.

Differential Revision: https://phabricator.services.mozilla.com/D137548
2022-02-02 11:31:35 +00:00
Hiroyuki Ikezoe ef0e6ea3cf Bug 1751124 - Disable SwipeTracker on Windows. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D137576
2022-02-02 02:12:55 +00:00
Stephen A Pohl 9b316675f5 Bug 1752047: Ensure that Voice Over continues to function correctly for elements with tooltips. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D137585
2022-02-02 00:52:52 +00:00
stransky bb5b1a9d35 Bug 1747475 [Linux] Don't assert/crash if we're missing mGdkWindow r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D137554
2022-02-01 19:12:32 +00:00
stransky 074a18f1f6 Bug 1752506 [Linux] Don't hold clipboard data in nsRetrievalContext r=emilio
Right now we hold clipboard data in nsRetrievalContext and we don't allow any
clipboard operation until ReleaseClipboardData call.

That also lock nsRetrievalContext on Wayland untill ReleaseClipboardData call.
It may lead to clipboard failures when we're holding clipboard data but we want to read clipboard targets.

In this patch we:

- Transfer data ownership in GetClipboardData/GetClipboardText/GetTargets and don't store the data in nsRetrievalContext.
- On Wayland lock nsRetrievalContext only for GetClipboardData/GetClipboardText/GetTargets calls.
- Check mClipboardRequestNumber before assert due to unreleased mClipboardData.

Differential Revision: https://phabricator.services.mozilla.com/D137537
2022-02-01 18:35:40 +00:00
Emilio Cobos Álvarez e2e408cd72 Bug 1752862 - Allow some customization of the GTK kinetic scroll parameters. r=botond
This doesn't change behavior by default, but should allow users to tweak
them and provide feedback as to which scroll speed is better for them.

It seems for some people at least the current speed is too much. The
"pixel" mode I implemented should behave exactly like GNOME web, in
terms of scroll speed.

Differential Revision: https://phabricator.services.mozilla.com/D137472
2022-02-01 14:20:23 +00:00
stransky f8028fad27 Bug 1752666 [Linux] Enable VA-API on EGL only, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D137515
2022-02-01 14:17:25 +00:00
Chris Martin 2f8ba0583d Bug 1752619 - Remove aTargetScreen from nsIWidget::MakeFullScreen() r=handyman,spohl,agi,emilio
Differential Revision: https://phabricator.services.mozilla.com/D137336
2022-01-31 22:07:23 +00:00
Andi-Bogdan Postelnicu 30631a4a9b Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre
Updated with clang-format version 13.0.0 (taskcluster-dIIauZE0TkuXy6_23BQhcw)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D137147
2022-01-31 17:00:21 +00:00
stransky 6162647fa5 Bug 1752097 [Linux] Remove SW decoding to dmabuf textures r=alwu,media-playback-reviewers
Removing SW decoding to dmabuf surfaces in favour of decode to shm surfaces (Bug 1713276).

Differential Revision: https://phabricator.services.mozilla.com/D137032
2022-01-29 19:50:24 +00:00
Chris Martin f3b4019ca7 Bug 1751360 - Fix broken fullscreen behavior on Windows r=mhowell,handyman
Differential Revision: https://phabricator.services.mozilla.com/D137089
2022-01-28 22:08:34 +00:00
Chris Martin 73da862d96 Bug 1751360 - Backout changes made by D135606 r=mhowell,handyman
Differential Revision: https://phabricator.services.mozilla.com/D137088
2022-01-28 22:08:34 +00:00
Markus Stange c4ffbf4d17 Bug 1741682 - Don't let the profiler interrupt nsAppShell::ProcessNextNativeEvent. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D137091
2022-01-28 17:57:36 +00:00
stransky b237278698 Bug 1752503 [Wayland] Remove DataOffer class r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D137265
2022-01-28 12:33:41 +00:00
stransky c8f97fe56d Bug 1752503 [Wayland] Rename nsRetrievalContextWaylandAsync to nsRetrievalContextWayland r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D137264
2022-01-28 12:33:40 +00:00
stransky 24b20003af Bug 1752503 [Wayland] Rename nsClipboardWaylandAsync to nsClipboardWayland r=rmader
We're removing sync Wayland clipboard backend as it's no longer used so there's no need to have explicitly stated async in clipboard name.

Differential Revision: https://phabricator.services.mozilla.com/D137263
2022-01-28 12:33:40 +00:00
Jan Alexander Steffens (heftig) 2c6ac8059a Bug 1530052 - Use remoting name for GDK program name and class. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80371
2022-01-28 10:30:37 +00:00
Norisz Fay 25b92a9ecc Backed out changeset 2d57471cb4b8 (bug 1530052) for causing build bustages CLOSED TREE 2022-01-28 10:40:29 +02:00
Jan Alexander Steffens (heftig) 458ff59930 Bug 1530052 - Use remoting name for GDK program name and class. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80371
2022-01-28 08:21:20 +00:00
Robert Mader 0d9e564523 Bug 1751339 - Revert "Replace gtk_widget_reparent", r=emilio
Switching to `gtk_container_[add|remove]` not only looked less
elegant but also broke input method window positions. Revert
it for now, until someone has time to dive deeper into the issue.

Differential Revision: https://phabricator.services.mozilla.com/D137233
2022-01-28 01:36:56 +00:00
Agi Sferro 722cb28924 Bug 1750231 - Add WebRequest::beConservative. r=calu,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D136387
2022-01-26 20:11:45 +00:00
Agi Sferro b1f93026e6 Bug 1745996 - Send a memory pressure event when deactivating sessions. r=jnicol,calu
WebRender retains about 50MBs of memory for every window. When switching
between lots of tabs on Android (where 1 tab = 1 window), this can cause
problems as the app will consume a significant amount of memory.

To avoid this problem, we send a memory pressure event whenever a session is
deactivated, which signals to WebRender that it should deallocate the memory.

This message is sent on a delay of 10s to avoid interfering with tab switching,
and we cancel the message if the tab becomes active again before we fire the
memory pressure event.

Co-Authored-By: Cathy Lu <calu@mozilla.com>
Co-Authored-By: Jonathan Almeida [:jonalmeida] <jonalmeida942@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D136965
2022-01-26 16:40:56 +00:00
stransky f42fb25101 Bug 1751710 [Linux] Allow VA-API decoding without GBM device and switch MOZ_WAYLAND_DRM_DEVICE to MOZ_DRM_DEVICE r=emilio,alwu,media-playback-reviewers
- Allow to use VA-API without GBM device as we need DRM device file descriptor only.
- Rename MOZ_WAYLAND_DRM_DEVICE to MOZ_DRM_DEVICE as it's used for both X11 and Wayland.
- Use gbm_device_destroy() to close opened GBM device on application quit.

Differential Revision: https://phabricator.services.mozilla.com/D136748
2022-01-26 12:34:03 +00:00
Emilio Cobos Álvarez f39ab4f51a Bug 1749531 - Allow to override native theme scrollbar styles. r=mstange
Depends on D136129

Differential Revision: https://phabricator.services.mozilla.com/D136130
2022-01-25 21:31:44 +00:00
Emilio Cobos Álvarez 94586650a4 Bug 1749531 - Remove scrollbar drawing code from nsNativeThemeCocoa, use ThemeCocoa drawing. r=mstange
Depends on D136128

Differential Revision: https://phabricator.services.mozilla.com/D136129
2022-01-25 21:31:43 +00:00