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
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
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
- 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
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
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
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
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
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
- 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