Commit Graph

24977 Commits

Author SHA1 Message Date
Oana Pop Rus
b93335c27f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-13 13:04:19 +03:00
Peter Van der Beken
8b00dd9ff2 Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33507

--HG--
extra : moz-landing-system : lando
2019-06-13 09:00:59 +00:00
Ryan Hunt
d7b4b6a1a4 Bug 1558482 - Restrict the composition size to the visibleRect for OOP-iframes. r=kats
Even if we don't have a root displayport, the composition size is still used for
displayport margins calculations. For extremely tall iframes, this will create
a displayport that is way to big. We should instead report a composition size that
is equivalent to the visible rect for OOP-iframes.

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

--HG--
extra : rebase_source : 1f43cb16a0841eb3cd892401c83a46d56276cf2e
2019-06-11 07:57:52 -05:00
Martin Stransky
6ada4a5f73 Bug 1555899 - [Wayland] Don't wait to fullscreen update as it can block forever, r=jhorak"
- Don't block all drawing until whole screen was painted, clear the screen and
allow partial drawing instead.
- Detect window resize and allow partial drawing directly to wayland buffer in this case.
- Remove backbuffer copy - wait to buffer release instead.

Depends on D33910

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

--HG--
extra : moz-landing-system : lando
2019-06-11 20:38:56 +00:00
Martin Stransky
d9c5ad8e86 Bug 1555899 - [Wayland] Added more wayland logging, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33910

--HG--
extra : moz-landing-system : lando
2019-06-11 20:38:44 +00:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Martin Stransky
2c519e8d1b Bug 1557266 - [Wayland] Use widget.wayland_dmabuf_backend.enabled preference to enable wayland dmabuf backend, r=jhorak
- Add widget.wayland_dmabuf_backend.enabled
- Expose it to Wayland backend by WaylandDisplay object
- Add more logging to Wayland DMABuf backend

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

--HG--
extra : moz-landing-system : lando
2019-06-10 12:37:06 +00:00
Martin Stransky
b9dd89a7c5 Bug 1557271 - [Wayland] Merge nsWaylandDisplayShutdown.h and nsWaylandDisplay.h, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33921

--HG--
extra : moz-landing-system : lando
2019-06-10 12:41:35 +00:00
Martin Stransky
7c09d4b7af Bug 1557658 - [Wayland] Don't use developers version of libdrm.so and libgbm.so, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D34146

--HG--
extra : moz-landing-system : lando
2019-06-07 21:45:46 +00:00
Martin Stransky
df1a302293 Bug 1555565 - Export correct user's preference for dark theme by prefers-color-scheme media query, r=mats
Differential Revision: https://phabricator.services.mozilla.com/D33133

--HG--
extra : moz-landing-system : lando
2019-06-10 09:43:27 +00:00
Brindusan Cristian
1d5124f5f9 Merge inbound to mozilla-central. a=merge 2019-06-10 00:43:09 +03:00
Boris Zbarsky
5eb248348f Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D34243

--HG--
extra : moz-landing-system : lando
2019-06-09 01:06:39 +00:00
Sylvestre Ledru
f1fbd2ff00 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-06-08 08:26:37 +00:00
Tarek Ziadé
b18ccf9c4e Bug 1529023 - Enable threads on macOS for GetProcInfo r=jld,mstange
To run task_for_pid() on child processes, we need the child task port for
security reasons. This port can be obtained via a Mach IPC exchange.

This is what GeckoChildProcessHost::GetChildTask() provides, so we use it
in cocoa's version of GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-07 19:56:51 +00:00
Dorel Luca
486b17b628 Backed out 2 changesets (bug 1555899) for Build bustage. CLOSED TREE
Backed out changeset 2de31fc4c99c (bug 1555899)
Backed out changeset 335510024f81 (bug 1555899)
2019-06-08 00:37:35 +03:00
Dorel Luca
f304631202 Backed out changeset 37138554f34a (bug 1557266) for Build bustage in /builds/worker/workspace/build/src/widget/gtk/WindowSurfaceWayland.cpp. CLOSED TREE 2019-06-08 00:31:56 +03:00
Dorel Luca
0c58ec27a3 Backed out changeset 819a428097dc (bug 1557658) for backout conflicts with Bug 1557266. CLOSED TREE 2019-06-08 00:30:30 +03:00
Dorel Luca
0c6758a3a2 Backed out changeset 4a658ccf88a0 (bug 1557271) for Build bustage. CLOSED TREE 2019-06-08 00:11:14 +03:00
Martin Stransky
fcb02207a1 Bug 1557658 - [Wayland] Don't use developers version of libdrm.so and libgbm.so, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D34146

--HG--
extra : moz-landing-system : lando
2019-06-07 14:37:54 +00:00
Martin Stransky
0f49145143 Bug 1557271 - [Wayland] Merge nsWaylandDisplayShutdown.h and nsWaylandDisplay.h, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33921

--HG--
extra : moz-landing-system : lando
2019-06-07 14:35:45 +00:00
Martin Stransky
5d9ce4b333 Bug 1557266 - [Wayland] Use widget.wayland_dmabuf_backend.enabled preference to enable wayland dmabuf backend, r=jhorak
- Add widget.wayland_dmabuf_backend.enabled
- Expose it to Wayland backend by WaylandDisplay object
- Add more logging to Wayland DMABuf backend

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

--HG--
extra : moz-landing-system : lando
2019-06-07 14:34:25 +00:00
Martin Stransky
355ef12f87 Bug 1555899 - [Wayland] Don't wait to fullscreen update as it can block forever, r=jhorak"
- Don't block all drawing until whole screen was painted, clear the screen and
allow partial drawing instead.
- Detect window resize and allow partial drawing directly to wayland buffer in this case.
- Remove backbuffer copy - wait to buffer release instead.

Depends on D33910

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

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:31 +00:00
Martin Stransky
6b29386225 Bug 1555899 - [Wayland] Added more wayland logging, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33910

--HG--
extra : moz-landing-system : lando
2019-06-06 09:38:28 +00:00
Boris Zbarsky
877c6cfe77 Bug 1557794. Stop using [array] in nsIGfxInfo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D34210

--HG--
extra : moz-landing-system : lando
2019-06-07 20:13:56 +00:00
Sebastian Hengst
0d6b93005b Backed out changeset 0635eeb2fad4 (bug 1529023) for bustage in ChromeUtils.cpp. CLOSED TREE 2019-06-07 19:09:41 +02:00
Tarek Ziadé
2f870d3a3e Bug 1529023 - Enable threads on macOS for GetProcInfo r=jld,mstange
To run task_for_pid() on child processes, we need the child task port for
security reasons. This port can be obtained via a Mach IPC exchange.

This is what GeckoChildProcessHost::GetChildTask() provides, so we use it
in cocoa's version of GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-07 07:48:37 +00:00
Tarek Ziadé
c10664f1c1 Bug 1533675 - Name all threads in Firefox r=Ehsan
This patch adds thread names where they are missing

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

--HG--
extra : moz-landing-system : lando
2019-06-06 21:07:29 +00:00
Mihai Alexandru Michis
9f96be64a8 Backed out changeset 1731c1e39b8c (bug 1555565) for causing xpcshell failures. CLOSED TREE 2019-06-07 16:35:00 +03:00
Martin Stransky
84dabd109d Bug 1555565 - Export correct user's preference for dark theme by prefers-color-scheme media query, r=mats
Differential Revision: https://phabricator.services.mozilla.com/D33133

--HG--
extra : moz-landing-system : lando
2019-06-07 12:02:48 +00:00
Nicolas Silva
c44ff5af9a Bug 1546894 - Keep track of current and begin points in path objects in case we'll create a builder from them. r=lsalzman
Because of the way the canvas 2D implementation juggles between path builders and paths, we have to keep track of current and first points in the path, in case a builder is created out of it.

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

--HG--
extra : source : c79b3af2395894b449731fccdd9eb006b4d0189e
2019-06-05 09:55:46 +02:00
Jonathan Watt
88526e9eac Bug 1557878. Replace nsIWebBrowserPrint::enumerateDocumentNames with a getter for the top document's name. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D34260

--HG--
extra : rebase_source : cbac94e78d57371ec1f4bdfcd1739367fb79f864
2019-05-30 11:43:16 +01:00
Andrew Osmond
d639d2c5ac Bug 1435586 - Use static gfxPlatform methods directly instead of requiring initialization. r=kats
gfxPlatform::GetSourceSurfaceForSurface and CreateDrawTargetForSurface
are both static methods that we sometimes use via the pattern
gfxPlatform::GetPlatform()->... This is problematic because this forces
gfxPlatform to be initialized in the process, and in the GPU process, we
don't support this. It should be safe to call these methods without
initializing gfxPlatform, so this patch removes the GetPlatform() call.

GetSourceSurfaceForSurface may end up initializing gfxPlatform anyways,
depending on whether or not a DrawTarget was given. This should not be a
concern for the crashes observed in bug 1435586.

Differential Revision: https://phabricator.services.mozilla.com/D33785
2019-06-05 12:40:26 -04:00
Mihai Alexandru Michis
d07d090c31 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-06-05 12:59:10 +03:00
sotaro
3d0c73c202 Bug 1537586 - Address build failure with --disable-printing r=bobowen,froydnj
Make nsIWebBrowserPrint included unconditionally for addressing nsIDocShell.rs build failure.

Remove direct_call of PPrinting and PRemotePrintJob. Their ipdl are built unconditionally, but their derived classes are not built with --disable-printing.

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

--HG--
extra : moz-landing-system : lando
2019-06-05 01:25:36 +00:00
Bogdan Tara
0152d321a5 Merge inbound to mozilla-central. a=merge 2019-06-04 19:05:52 +03:00
Neil Deakin
77fbcce9dc Bug 1443683, followup to fix drag feedback images, re-add lines that got lost in the last patch, r=nika
--HG--
extra : rebase_source : 322f8303af5af63d426caa473725d6f93c3b66b0
2019-06-04 08:51:23 -04:00
Martin Stransky
1db0f6d0a6 Bug 1554522 - [Wayland] Implement Wayland DMABuf surface, r=jhorak
- Implement WaylandDMABufSurface class which provides basic 2D surfaces located at GPU memory.
- Implement ability to bind it as wl_buffer for direct wayland rendering and R/W mapping for CPU

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

--HG--
extra : moz-landing-system : lando
2019-06-04 11:11:28 +00:00
Masayuki Nakano
5ac5e497b5 Bug 1555227 - Make GetInternalCommand() return new commands when the command is "cmd_align" without params r=m_kato
`cmd_align` is always with `nsCommandParams` when it's executed.  However,
when somebody checks whether the command is enabled or not, or retrieves the
state, `GetInternalCommand()` is called without `nsCommandParams`.  Therefore,
even when `nsCommandParmas` is nullptr for `cmd_align`, `GetInternalCommand()`
shouldn't warn it.

Additionally, internal command supports to set `align` to empty string.
Therefore, `GetInternalCommand()` also needs to support it.

This patch adds `Command::FormatJustify` for the former case and
`Command::FormatJustifyNone` for the latter case.

Note that this does not affect to actual behavior since `AlignCommand`
does not refer the result of `GetInternalCommand()`.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 10:01:31 +00:00
Martin Stransky
057f924f15 Bug 1554520 - [Wayland] Load DMABuf setup in WaylandDisplay class, r=jhorak
- Implement nsGbmLib object which binds symbols run-time from libgbm.so library.
- Load available DRM pixel formats from Wayland registry and store related modifiers at WaylandDisplay object.
- Implement Gbm device setup at WaylandDisplay.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 08:46:59 +00:00
Martin Stransky
73126f44cc Bug 1555866 - [Wayland] Don't position windows with zero height/width, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33492

--HG--
extra : moz-landing-system : lando
2019-06-03 14:27:29 +00:00
Emilio Cobos Álvarez
d143aaa5f3 Bug 1545499 - Remove dead code for threading accelerator state. r=NeilDeakin
It's only moved around, but not actually used anywhere.

I have no idea what this was supposed to control in the past but it doesn't seem
useful to keep it around.

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

--HG--
extra : moz-landing-system : lando
2019-06-03 15:29:06 +00:00
Edgar Chen
6c45f02a32 Bug 1553852 - Mark eCompositionChange as composed event; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33387

--HG--
extra : moz-landing-system : lando
2019-06-03 09:18:47 +00:00
Daniel Varga
f35d98dcc4 Merge mozilla-central to mozilla-inbound 2019-06-01 12:45:58 +03:00
arthur.iakab
36d75a7e56 Merge mozilla-central to mozilla-inbound 2019-06-01 01:30:47 +03:00
Emilio Cobos Álvarez
21d5c25734 Bug 1553769 - Make nsIWidget::SetFocus infallible, and make it take an enum class. r=NeilDeakin
Only gtk returns failure ever, and nobody checks the result anyway.

Use an enum class so that it's clear from the caller what it means.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 22:13:56 +00:00
Martin Stransky
97b937e201 Bug 1555812 - [Linux][HiDPI] Pass device pixel coordinates to nsXULPopupManager::Rollup(), r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D33251

--HG--
extra : moz-landing-system : lando
2019-05-31 13:20:28 +00:00
Martin Stransky
ce7abe5c5c Bug 1534936 - [Wayland] Clear transparent popup window background, r=jhorak
When transparent popup window is rendered clear window background to clear
visual artifacts and bold shadows over the popup.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 13:26:58 +00:00
Jonathan Watt
39945059b3 Bug 1552785. Remove printing related isFramesetDocument and isFramesetFrameSelected code. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D33696

--HG--
extra : rebase_source : 2e7f854a808059b4955ffaad425fe8b68263883e
2019-05-21 23:25:57 +01:00
Jonathan Watt
098392f093 Bug 1552785. Remove internal code for various frameset printing behaviors. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D33624

--HG--
extra : rebase_source : 336e87a05970895684602c9db3e5222918f861c8
extra : source : 98fbf1ed617549496036099b5aee333aa6b29925
2019-05-21 16:01:34 +01:00
Jonathan Watt
9516915bb5 Bug 1552785. Remove Linux print dialog UI for selecting frameset behavior. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D33390

--HG--
extra : rebase_source : cf725f00d9a6b8e8903bb472193efaeb65eade69
2019-05-15 20:13:46 +01:00