Commit Graph

24076 Commits

Author SHA1 Message Date
Martin Stransky
a9fb723907 Bug 1495404 - Postpone dbus_bus_get() call until we need it at WakeLockListener::Callback(), r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D7281

--HG--
extra : moz-landing-system : lando
2018-10-01 13:22:48 +00:00
Martin Stransky
4e05ab8ff2 Bug 1415078 - Use DBus remote exclusively on MOZ_WAYLAND builds, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D6899

--HG--
extra : moz-landing-system : lando
2018-10-01 08:17:04 +00:00
Stephen A Pohl
01b7969db1 Bug 1489785: Remove a workaround for gcc, introduced in bug 678607, that is no longer needed and that causes hangs in modal dialogs on macOS 10.14. r=mstange 2018-09-30 01:02:08 -04:00
Xidorn Quan
4fef447d51 Bug 1473816 - When exiting fullscreen, move window inside and clamp it with screen bounds. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D7156

--HG--
extra : moz-landing-system : lando
2018-09-29 02:21:28 +00:00
Adam Gashlin
c4b29e1ba9 Bug 1302168: Fix maximized caption height with per-monitor DPI r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D4957

--HG--
extra : moz-landing-system : lando
2018-09-26 15:40:48 +00:00
sotaro
6d9aae580d Bug 1494528 - Call GPUProcessManager::EnsureGPUReady() before accessing gfxVars::UseWebRender() r=aosmond 2018-09-28 09:06:26 +09:00
Xidorn Quan
cb87cec282 Bug 1494501 - Rename pref "layout.css.scrollbar-colors.enabled" to "layout.css.scrollbar-color.enabled". r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7030

--HG--
extra : moz-landing-system : lando
2018-09-27 00:38:16 +00:00
Neil Deakin
0a19485e1f Bug 326944, remove nsIComboboxControlFrame interface, r=mats 2018-09-26 10:41:12 -04:00
Martin Stransky
3595f59e15 Bug 1489963 - Draw scrollbars with Gtk widget state and use backdrop state for inactive scrollbars, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D6763

--HG--
extra : moz-landing-system : lando
2018-09-25 11:57:53 +00:00
Martin Stransky
7e77a65a6b Bug 1492764 - Set .left class to headerbar box element as Gtk+ does, r=jhorak
Gtk+ sets .left/.right classes to GtkBox element at GtkHeaderBar according to button placement (left/right).
We don't support that now so set .left at least to be compatible with themes - BlueMenta for instance.

Differential Revision: https://phabricator.services.mozilla.com/D6657

--HG--
extra : moz-landing-system : lando
2018-09-25 08:51:40 +00:00
Martin Stransky
89822d9f40 Bug 1493145 - [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query, r=dao
Replace mozilla.widget.use-argb-visuals pref by -moz-gtk-csd-transparent-background media query at browser.css
to draw transparent background. The media query is set by toolkit code and enabled when compatible
window manager is detected.

Differential Revision: https://phabricator.services.mozilla.com/D6658

--HG--
extra : moz-landing-system : lando
2018-09-25 11:53:04 +00:00
Chris Peterson
b1044c0330 Bug 1336712 - widget: Drop test check for OS X 10.6. r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D6586

--HG--
extra : source : 9d07ac90374dbfa5a60bd859760bbd86b7cbe557
extra : histedit_source : 281632aefc44053f51f28bc4f35fc72b935ba99e
2018-09-13 21:33:19 -07:00
Eitan Isaacson
0206ea9620 Bug 1479034 - Make GeckoView's SessionAccessibility a JNIObject associated with a nsWindow. r=jchen 2018-09-21 16:03:35 -07:00
Aaron Klotz
ea460b73f7 Bug 1488627: Part 1 - Add FileUniqueId and DoPathsPointToIdenticalFile to WinHeaderOnlyUtils.h; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D6340

--HG--
extra : moz-landing-system : lando
2018-09-20 17:27:22 +00:00
Martin Stransky
e4767bd3b2 Bug 1491374 - Don't use backdrop state for scrollbars, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D6396

--HG--
extra : moz-landing-system : lando
2018-09-20 14:15:30 +00:00
Ehsan Akhgari
8d7c2999dc Bug 1491594 - Remove the XPCOM registration for the native theme renderer r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6275

--HG--
extra : moz-landing-system : lando
2018-09-20 01:20:55 +00:00
Jonathan Kingston
2ce3b8373f Bug 1485305 - misc Ensure loadURI always passes a triggeringPrincipal() r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D4560

--HG--
extra : source : 3e184da8273decac0f3e7d88be89125a2a027588
extra : intermediate-source : ddea69395fbca528529f4491bc8ea7c701ff45b4
2018-08-29 15:48:52 +01:00
Miko Mynttinen
861ebd5ede Bug 1492210 - Cast AVAuthorizationStatus to GeckoAVAuthorizationStatus r=haik
Differential Revision: https://phabricator.services.mozilla.com/D6214

--HG--
extra : moz-landing-system : lando
2018-09-18 23:59:04 +00:00
Xidorn Quan
8396cd75c7 Bug 1483075 - Merge the two scrollbar color properties into scrollbar-color. r=heycam,hiro
Differential Revision: https://phabricator.services.mozilla.com/D6115

--HG--
extra : moz-landing-system : lando
2018-09-19 05:33:12 +00:00
Hiroyuki Ikezoe
2fbe11f20e Bug 1492284 - sharedWorkspace.notificationCenter for Mojave to get the accessibilityDisplayShouldReduceMotion changes. r=mstange
On Mojave (or later versions) defaultCenter doesn't get the
accessibilityDisplayShouldReduceMotion changes, we need to use
sharedWorkspace.notificationCenter instead.

Note that the reason why we use defaultCenter originally is that using
sharedWorkspace.notificationCenter to post a notification (for mochitest)
crashed on MacOSX 10.10 (on a try).

Differential Revision: https://phabricator.services.mozilla.com/D6201

--HG--
extra : moz-landing-system : lando
2018-09-19 03:25:08 +00:00
arthur.iakab
1ee75a928a Merge inbound to mozilla-central a=merge 2018-09-19 05:18:50 +03:00
Jeff Muizelaar
14d863897b Bug 1491395. Replace BorderWidths with LayoutSideOffsets. on a CLOSED TREE
--HG--
extra : source : 432d22af68c825eebd86482c714b3cffcba408c7
extra : amend_source : e38a2ed15ae4a93613244726fbfad2d196876ad8
2018-09-18 09:01:36 -04:00
Ehsan Akhgari
77ce9e051f Backout changeset b4f8cb6afab6 (bug 1491594) for talos performance regressions 2018-09-18 18:33:56 -04:00
Andreea Pavel
21be148b05 Backed out 2 changesets (bug 1491395) for failing awsy\test_memory_usage.py TestMemoryUsage.test_open_tabs on a CLOSED TREE
Backed out changeset 432d22af68c8 (bug 1491395)
Backed out changeset 153d6dc38962 (bug 1491395)
2018-09-18 21:23:03 +03:00
Bas Schouten
3f601ce856 Bug 1479640: Restructure cleartype parameter code to run less frequently and only in the parent process. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D4784

--HG--
extra : moz-landing-system : lando
2018-09-13 18:59:27 +00:00
Martin Stransky
5c0377f7dd Bug 1491824 - [Wayland/Clipboard] Clipboard minor fixes, r=jhorak
when g_io_channel_set_encoding() fails we return invalid/uninitialized clipboardData,
so initialize clipboardData explicitly.

When SetClipboardDataOffer() is called with null aWaylandDataOffer,
delete our recent clipboard content and not throw an error message.

Differential Revision: https://phabricator.services.mozilla.com/D6039

--HG--
extra : moz-landing-system : lando
2018-09-18 15:12:02 +00:00
Masayuki Nakano
6d56c9b541 Bug 1491032 - Make TISInputSourceWrapper::WillDispatchKeyboardEvent() decide charCode value with keypress event index r=m_kato
If a key inputs multiple characters, we dispatch same number eKeyPress
events to input each character.  However,
TISInputSourceWrapper::WillDispatchKeyboardEvent() always sets
charCode of all eKeyPress events to first character of inserting.
Instead, it should set charCode value to nth character of the
inserting string.

Differential Revision: https://phabricator.services.mozilla.com/D5884

--HG--
extra : moz-landing-system : lando
2018-09-18 01:46:29 +00:00
Bogdan Tara
c8f52c0158 Merge inbound to mozilla-central. a=merge 2018-09-18 00:58:07 +03:00
Jim Chen
fe39a234fe Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp
If we're trying to detach and reattach the same compositor object for
whatever reason, we should skip it so we don't inadvertently end up not
attaching the object at all.

Differential Revision: https://phabricator.services.mozilla.com/D5608

--HG--
extra : moz-landing-system : lando
2018-09-17 17:29:30 +00:00
Gurzau Raul
c03510c273 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-17 19:48:54 +03:00
Henri Sivonen
89ca07c012 Bug 1487341 - Make Truncate(), SetLength() and Capacity() more efficient by keeping memcpying to the minimum. r=froydnj
MozReview-Commit-ID: 2LeRrWcN8vF

Differential Revision: https://phabricator.services.mozilla.com/D4661

--HG--
extra : moz-landing-system : lando
2018-09-17 09:45:02 +00:00
Martin Stransky
15f23785df Bug 1489097 - [Linux/Gtk] Enable default ARGB visual for toplevel windows on GNOME, r=jhorak
Some Gtk+ themes use non-rectangular toplevel windows. To fully support
such themes we need to make toplevel window transparent with ARGB visual.

It may cause performanance issue so make it configurable
and enable it by default for GNOME right now as it already uses ARGB visual
for widgets.

Also use mozilla.widget.use-argb-visuals to override this.

Differential Revision: https://phabricator.services.mozilla.com/D5754

--HG--
extra : moz-landing-system : lando
2018-09-17 09:56:05 +00:00
Ehsan Akhgari
7c7f4d95f6 Bug 1491595 - Remove the XPCOM registration for the bidi keyboard; r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5962
2018-09-17 00:02:58 -04:00
shindli
e599043c55 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-17 00:42:34 +03:00
Narcis Beleuzu
949ee81e73 Backed out changeset 87d667d7ad73 (bug 1491595) for geckoview-junit failures on nsContentUtils. CLOSED TREE 2018-09-16 22:12:43 +03:00
Ehsan Akhgari
ffa5ec335e Bug 1491595 - Remove the XPCOM registration for the bidi keyboard; r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5962
2018-09-16 13:52:38 -04:00
Ehsan Akhgari
7c90f6f4f5 Bug 1491594 - Remove the XPCOM registration for the native theme renderer; r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5961
2018-09-16 13:51:21 -04:00
Andreea Pavel
737bd284b4 Backed out changeset 52573727971b (bug 1449567) for braking android build bustages on a CLOSED TREE 2018-09-16 07:29:22 +03:00
Jim Chen
5055667930 Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp
If we're trying to detach and reattach the same compositor object for
whatever reason, we should skip it so we don't inadvertently end up not
attaching the object at all.

Differential Revision: https://phabricator.services.mozilla.com/D5608

--HG--
extra : moz-landing-system : lando
2018-09-13 16:25:26 +00:00
Hiroyuki Ikezoe
d879a93c1d Bug 1478505 - Run test_mq_prefers_reduced_motion_dynamic.html on Android. r=jchen
To make the test work properly, there needs two functions.  One is just setting
a value for testing and sending the notificaiton for the value changes, the
other one is to reset the state for testing.

The test itself will be introduced in bug 1486971, especially in
https://phabricator.services.mozilla.com/D5004

Depends on D5503

Differential Revision: https://phabricator.services.mozilla.com/D5504

--HG--
extra : moz-landing-system : lando
2018-09-15 10:05:37 +00:00
Hiroyuki Ikezoe
2948ca3af5 Bug 1478505 - Implement prefers-reduced-motion on Android. r=jchen
Depends on D5502

Differential Revision: https://phabricator.services.mozilla.com/D5503

--HG--
extra : moz-landing-system : lando
2018-09-15 10:03:42 +00:00
Hiroyuki Ikezoe
670b9b1d28 Bug 1478505 - Rename GeckoInputDeviceListener to GeckoSystemStateListener. r=jchen
Because we are going to use it for prefers-reduced-motion media feature which
is tied to a system setting.

Differential Revision: https://phabricator.services.mozilla.com/D5502

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoInputDeviceListener.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSystemStateListener.java
rename : widget/android/GeckoInputDeviceListener.h => widget/android/GeckoSystemStateListener.h
extra : moz-landing-system : lando
2018-09-15 10:03:29 +00:00
Hiroyuki Ikezoe
5f958f80c7 Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange
The framework to simulate the setting change works as following;

 - nsIDOMWindowUtils.setPrefersReducedMotion() calls an IPC function which ends
   up calling nsChildView::SetPrefersReducedMotion() in the parent process

 - nsChildView::SetPrefersReducedMotion() sets the given value into
   nsLookAndFeel::mPrefersReducedMotionCached just like we set the value queried
   via NSWorkspace.accessibilityDisplayShouldReduceMotion in the parent process
   and send a notification which is the same notification MacOSX sends when the
   system setting changed

 - Normally the cached value is cleared before quering new values since the
   cache value is stale, but in this case the value is up-to-date one, so
   nsChildView::SetPrefersReducedMotion() tells that we don't need to clear the
   cache, and nsIDOMWindowUtils.resetPrefersReducedMotion() resets that state
   of 'we don't need to clear the cache'

There are two test cases with the framework in this commit, one is just setting
the value and checking the value queried by window.matchMedia.  The other one is
receiving 'change' event and checking the value of the event target.

Note that to make this test works the patch for bug 1478212 is necessary since
the test runs in an iframe.

Depends on D5003

Differential Revision: https://phabricator.services.mozilla.com/D5004

--HG--
extra : moz-landing-system : lando
2018-09-15 01:00:07 +00:00
Hiroyuki Ikezoe
1683335036 Bug 1486971 - Query NSWorkspace.accessibilityDisplayShouldReduceMotion only if it's on parent processes or it's the initial query on child processes. r=mstange
In child processes on MacOSX we don't spin native event loop at all.
Without native event loops NSWorkspace.accessibilityDisplayShouldReduceMotion
doesn't return up-to-date value when the system setting changed for some reasons.
To workaround this we use NSWorkspace.accessibilityDisplayShouldReduceMotion
only on the parent process which spins native event loop or when it's the
initial query on the child process.  And we give the up-to-date value to the
child process via an IPC call just like other cached values do.

Depends on D5002

Differential Revision: https://phabricator.services.mozilla.com/D5003

--HG--
extra : moz-landing-system : lando
2018-09-15 00:59:54 +00:00
Hiroyuki Ikezoe
04128e57a7 Bug 1486971 - Receive accessibilityDisplayShouldReduceMotion change and notify it. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5002

--HG--
extra : moz-landing-system : lando
2018-09-15 00:59:41 +00:00
Hiroyuki Ikezoe
235406a619 Bug 1491580 - Use NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification only for MacOSX 10.10 or later versions. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5968

--HG--
extra : moz-landing-system : lando
2018-09-16 05:04:18 +00:00
sotaro
24c5a93279 Bug 1486958 - Sync FlushRendering() only during resizing on windows r=mattwoodrow 2018-09-14 17:13:55 +09:00
Makoto Kato
82b98972c8 Bug 1488803 - Don't allocate PendingAction twice. r=masayuki
--HG--
extra : histedit_source : 2197a1ddf204b19e1ecd3cf5142fe22e0a2aa04e
2018-09-14 15:23:32 +09:00
Andrew Osmond
e9f7db43b8 Bug 1446309 - Part 1. Return draw result from imgIContainer::GetImageContainerAtSize. r=tnikkel
In addition to the image container, the draw result can also be useful
for callers to know whether or not the surface(s) in the container are
fully decoded or not. This is used in subsequent parts to avoid
flickering in some cases.
2018-09-13 19:48:21 -04:00
Ehsan Akhgari
f439189b1a Bug 1491595 follow-up: Address reviewbot nit: no else after return 2018-09-17 09:51:23 -04:00