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

28111 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 6fc115d39f Bug 1697195 - Force enable Software WebRender if Fission is enabled. r=jrmuizel
Fission without WebRender is an unsupported configuration and enrolls
users based on their compositor. However because of our own rollout of
WebRender, a user might start in early beta with WebRender and lose it
in late beta, while they remain enrolled in the Fission experiment.
Also, a user could lose WebRender because of crashes or device reset,
and we may fall back to Basic.

This patch forces Software WebRender as available (but does not override
Hardware WebRender) if Fission is enabled. It also prevents fallback to
Basic layers when disabling acceleration due to crashes and runtime
errors, so the user will be stuck with Software WebRender at a minimum.
It also enables Software WebRender for Windows popups with transparency.

Differential Revision: https://phabricator.services.mozilla.com/D107661
2021-03-09 16:53:01 +00:00
Emilio Cobos Álvarez 8c86af797e Bug 1697127 - Also propagate disabled selection color. r=fix CLOSED TREE 2021-03-09 19:40:11 +02:00
Emilio Cobos Álvarez a2e1a2b3e5 Bug 1697127 - Fix propagation of system color changes to content processes on Mac. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107625
2021-03-09 15:49:25 +00:00
mazin a0a63035c4 Bug 1612738 - Set minimum widget size for mContainer. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D105514
2021-03-09 15:46:08 +00:00
Simon Giesecke ca86d54b8c Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with nsCOMPtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105964
2021-03-09 11:39:36 +00:00
Simon Giesecke bc9766c354 Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with RefPtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105963
2021-03-09 11:39:36 +00:00
Emilio Cobos Álvarez f36c63a891 Bug 1684001 - Add a pref-based blocklist to control default deltaMode. r=masayuki
Depends on D107456

Differential Revision: https://phabricator.services.mozilla.com/D107457
2021-03-09 01:59:43 +00:00
owlishDeveloper 5f323edf67 Bug 1432949 - Return error if channel cannot be opened. Expand download blob test case r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75687
2021-03-09 00:45:22 +00:00
Emilio Cobos Álvarez 30cf04d26c Bug 1696988 - Add backgrounds for non-native tooltips on Linux and OSX. r=ntim
The Linux styles match Adwaita trunk[1], so it's a bit smaller than the
native ones but I think that's fine (it matches other themes more
closely, like Arc).

On OSX the system color needs to be tweaked (will do in a follow-up)
since it is windows-style yellow right now, which is rather ugly. But
this is a progression regardless.

[1]: https://gitlab.gnome.org/GNOME/gtk/-/issues/3352

Differential Revision: https://phabricator.services.mozilla.com/D107548
2021-03-09 00:33:06 +00:00
Emilio Cobos Álvarez 0f8e07ccf7 Bug 1696988 - Support tooltips in nsNativeBasicThemeCocoa. r=mstange
Not sure if you prefer to go this way, your call.

Depends on D107574

Differential Revision: https://phabricator.services.mozilla.com/D107575
2021-03-09 00:05:51 +00:00
Emilio Cobos Álvarez 085d087cf3 Bug 1696988 - Fix InfoBackground system color on mac to be the background of popups. r=mstange
Like it is in other platforms. We have no uses of this on the UI currently
except the one in the other patch on this bug, if I'm reading it correctly, and
this makes the popups look decent.

I have another alternative / complementary patch on the bug if you want, but
this shouldn't be objectionable regardless I think.

Differential Revision: https://phabricator.services.mozilla.com/D107574
2021-03-09 00:05:51 +00:00
stransky dca8b9611f Bug 1696937 [Linux] Remove wayland/drm info from about:support, r=jhorak
We can't get meaningful drm info at about:config as the info gathered too early and GfxPlatformGtk() is not initialized yet.

Differential Revision: https://phabricator.services.mozilla.com/D107502
2021-03-08 21:26:19 +00:00
Doug Thayer e2fa1effe1 Bug 1696568 - Ensure skeleton UI window is always consumed if created r=emalysz
If we error out in, say, DrawSkeletonUI, the window we created will be orphaned
and left to sit there indefinitely. This patch fixes that by separating the
error from the consume result.

Differential Revision: https://phabricator.services.mozilla.com/D107301
2021-03-08 21:26:06 +00:00
Emilio Cobos Álvarez 343674f3d5 Bug 1678487 - Color-manage system colors from style too. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D104947
2021-03-08 18:12:07 +00:00
Bogdan Tara 544268f5a4 Backed out 2 changesets (bug 1678487) for static gfxPlatform::InitializeCMS crashes CLOSED TREE
Backed out changeset af0927300d51 (bug 1678487)
Backed out changeset 9ed081f10e63 (bug 1678487)
2021-03-08 04:47:16 +02:00
Emilio Cobos Álvarez 5506f49e17 Bug 1678487 - Color-manage system colors from style too. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D104947
2021-03-08 02:02:42 +00:00
Emilio Cobos Álvarez 757f7268c6 Bug 1675949 - Use a non-fixed value for pixel deltas. r=masayuki
Your call if you think this is worth it. Might need some test
adjustments.

Differential Revision: https://phabricator.services.mozilla.com/D107199
2021-03-08 00:24:04 +00:00
Emilio Cobos Álvarez 6283dfa76c Bug 1696833 - Vertical range input paints value in the wrong direction. r=mstange
When the value increases we make the bar smaller, that's unfortunate!

Differential Revision: https://phabricator.services.mozilla.com/D107398
2021-03-07 21:44:37 +00:00
alaaemad 44695ef057 Bug 1692023 - Add more tests for Linux touchpad zooming r=botond
Differential Revision: https://phabricator.services.mozilla.com/D106132
2021-03-07 18:57:40 +00:00
Emilio Cobos Álvarez 089ba70779 Bug 1696709 - Fix rect used to paint outline-style: auto when there's no border-radius. r=mstange
Embarrassing regression from bug 1694059.

Differential Revision: https://phabricator.services.mozilla.com/D107358
2021-03-06 01:53:38 +00:00
Markus Stange df845dfee9 Bug 1692379 - Reverse the range inclusion check, to avoid Objective C exceptions from -[NSString substringWithRange:]. r=masayuki
There are two ranges here:
 - The requested range aRange, and
 - the IME composition range: [`mIMECompositionStart`, `mIMECompositionStart + [mIMECompositionString length]`].

Whenever this function was called with a requested range that included the IME
composition range and was larger than the IME composition range, we would
request an invalid substring, and doing so would trigger an Objective C exception.

Differential Revision: https://phabricator.services.mozilla.com/D107256
2021-03-05 21:17:16 +00:00
Robert Mader ddd065ed26 Bug 1696319 - Stick to GDK_IS_X11_DISPLAY for now, r=stransky
In D106726 this was changed to `GDK_IS_WAYLAND_DISPLAY` as a drive-by
cleanup, in order to eventually support compiling FF without X11 support.
Turns out that was misguided as it breaks compatability with
setups that have GTK compiled without Wayland support.

Stick to `GDK_IS_X11_DISPLAY` until we have a better solution.

Differential Revision: https://phabricator.services.mozilla.com/D107345
2021-03-05 17:42:48 +00:00
Cosmin Sabou b0e01e4fe5 Backed out changeset 32e20e00382d (bug 1612738) for causing bc failures on browser_closePipPause.js. CLOSED TREE 2021-03-05 19:33:36 +02:00
mazin 14ba15ff64 Bug 1612738 - Set minimum widget size for mContainer. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D105514
2021-03-05 16:08:34 +00:00
stransky 7ae7603cfa Bug 1693460 [Linux] Always check GTK_CSD variable and use client decorations on Elementary OS, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D107253
2021-03-05 13:27:14 +00:00
Alexandru Michis 4cff4186cb Backed out changeset 2d9ef4afb05d (bug 1675949) for causing mochitest plain failures in test_dom_wheel_event.html
CLOSED TREE
2021-03-05 05:51:36 +02:00
Emilio Cobos Álvarez e1a48f33c9 Bug 1675949 - Use a non-fixed value for pixel deltas. r=masayuki
Your call if you think this is worth it. Might need some test
adjustments.

Differential Revision: https://phabricator.services.mozilla.com/D107199
2021-03-05 02:28:21 +00:00
Emilio Cobos Álvarez a9ec257d55 Bug 1696378 - Fix snapping issues with outlines. r=mstange
This isn't really an uneven border (because we snap border widths
correctly); this is the textfield border snapping differently than the
outline, actually, in a way such that the outline shows underneath. We
use negative offsets to try to cover the border but that breaks in this
case.

I thought of two ways to fix it, but this one looks slightly more
future-proof (and simpler), see the comment in ComputeBorderColor. Let
me know if you want me to go the other way (snapping offsets instead) or
both, actually.

The transparent border uncovered that the radius was slightly off, and
also that I forgot to snap the auto-style outline width properly, so I
fixed those drive-by too (without the first one stuff looks off
otherwise, at least, the second one I could move).

Differential Revision: https://phabricator.services.mozilla.com/D107287
2021-03-05 01:35:17 +00:00
Brindusan Cristian 8687336f7f Backed out changeset 42731d5daba6 (bug 1696378) for reftest failures in textarea-focus.html. CLOSED TREE 2021-03-05 03:15:14 +02:00
Emilio Cobos Álvarez dfd193480f Bug 1696378 - Fix snapping issues with outlines. r=mstange
This isn't really an uneven border (because we snap border widths
correctly); this is the textfield border snapping differently than the
outline, actually, in a way such that the outline shows underneath. We
use negative offsets to try to cover the border but that breaks in this
case.

I thought of two ways to fix it, but this one looks slightly more
future-proof (and simpler), see the comment in ComputeBorderColor. Let
me know if you want me to go the other way (snapping offsets instead) or
both, actually.

The transparent border uncovered that the radius was slightly off, and
also that I forgot to snap the auto-style outline width properly, so I
fixed those drive-by too (without the first one stuff looks off
otherwise, at least, the second one I could move).

Differential Revision: https://phabricator.services.mozilla.com/D107287
2021-03-04 23:19:58 +00:00
Andrew Osmond 3d4284f915 Bug 1696495 - Block WebRender on XWayland explicitly due to bug 1635186. r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D107297
2021-03-04 23:06:17 +00:00
Gijs Kruitbosch 664ab77972 Bug 1695873 - remove nativemenuservice remnants and fix macOS openedwithkey attribute use, r=mak,mstange
Although 11 years ago feature-checking for native menus made sense, right now we do not
expect any other OSes to implement native menus, and macOS' behaviour is currently not
quite right because we stopped exposing the relevant XPCOM component.

The change in browser-menubar.inc fixes macOS behaviour. The nsWidgetsCID.h change
is just clean-up.

Differential Revision: https://phabricator.services.mozilla.com/D106962
2021-03-04 22:54:23 +00:00
Markus Stange 444bc03207 Bug 1696307 - Remove overrides that achieved full-size content views on 10.9. r=mac-reviewers,bradwerth
This code is no longer needed.
This patch also removes a comment that was referring a CoreAnimation pref that
no longer exists, and replaces it with a better comment.

Differential Revision: https://phabricator.services.mozilla.com/D107254
2021-03-04 21:26:36 +00:00
Andrew Osmond a2beb921ac Bug 1696495 - Ship WebRender to XWayland and/or KDE/XFCE Intel/AMD users to release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D107252
2021-03-04 20:34:09 +00:00
Simon Giesecke 6da5224516 Bug 1634281 - Add nsHashtablesFwd.h and remove all other forward declarations for hashtables. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105960
2021-03-04 18:52:17 +00:00
Tom Schuster 5f997c8d2b Bug 1694844 - In nsPrinterListCUPS::SystemDefaultPrinterName return NS_OK even without working CUPS. r=emilio
The other nsPrinterListCUPS methods already handle !InitOkay() without returning an error or rejecting
the promise.

Differential Revision: https://phabricator.services.mozilla.com/D107210
2021-03-04 16:03:30 +00:00
Simon Giesecke c6ace2f153 Bug 1673931 - Avoid including BindingDeclarations.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D97612
2021-03-04 14:32:14 +00:00
Emilio Cobos Álvarez dc59483894 Bug 941356 - Fix start offset of transformed drag images. r=botond
I'm not sure whether we should deal with ancestor scales and such. There
seemed to be a discussion about that in D77436 but dealing with
partially-3d-transformed content sounds like a massive pain. For now
this fixes the start point, which is a progression.

Differential Revision: https://phabricator.services.mozilla.com/D106896
2021-03-04 10:56:22 +00:00
Markus Stange 4c77fa1cb4 Bug 1694853 - Stop giving the nsMenuBarX a reference to the widget. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106379
2021-03-04 01:24:58 +00:00
Markus Stange 8ce2592621 Bug 1694853 - Use return value instead of outparam for HideItem. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106378
2021-03-04 01:24:57 +00:00
Markus Stange 6674dda1ba Bug 1694853 - Rename arguments in nsMenuBarX methods to use aArgument style. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106377
2021-03-04 01:24:57 +00:00
Markus Stange f6812daef9 Bug 1694853 - Remove nsMenuObjectX::Content() and put it on the individual subclasses instead. r=harry
This removes some polymorphism and makes it easier to understand what's actually going on.
The explicit if checks added in this patch will go away once nsMenuX and nsMenuItemX are unified.

Differential Revision: https://phabricator.services.mozilla.com/D106376
2021-03-04 01:24:57 +00:00
Markus Stange e619b59d75 Bug 1694853 - Remove some commented out logging code. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106375
2021-03-04 01:24:56 +00:00
Markus Stange acffc3e5ad Bug 1694853 - Use return value instead of outparam for GetMenuPopupContent. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106374
2021-03-04 01:24:56 +00:00
Markus Stange 25e6e927bf Bug 1694853 - Split mDestroyHandlerCalled into mDidFirePopupHiding and mDidFirePopupHidden, for increased clarity. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106373
2021-03-04 01:24:55 +00:00
Markus Stange f09a47916b Bug 1694853 - Replace outdated 'in' prefix with the more common 'a' prefix. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106372
2021-03-04 01:24:55 +00:00
Markus Stange de9c44a290 Bug 1694853 - Replace getter and setter calls with property gets and sets. r=harry
This does the same but looks more modern.

Differential Revision: https://phabricator.services.mozilla.com/D106371
2021-03-04 01:24:55 +00:00
Markus Stange 48c3f3447c Bug 1694853 - Use UniquePtr in more places. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106370
2021-03-04 01:24:54 +00:00
Markus Stange 107415a9dd Bug 1694853 - Move nsMenuX::Create into the constructor. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106369
2021-03-04 01:24:54 +00:00
Markus Stange 0bdf1ba9a1 Bug 1694853 - Move nsMenuItemX::Create into the constructor. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D106368
2021-03-04 01:24:53 +00:00