1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

www/firefox: switch to rc2

- Backport some Wayland fixes

Changes:	https://hg.mozilla.org/releases/mozilla-release/pushloghtml?startdate=2020-05-26&enddate=2020-05-28
This commit is contained in:
Jan Beich 2020-05-27 20:03:54 +00:00
parent 722569f05b
commit 388d9e9592
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536713
5 changed files with 103 additions and 4 deletions

View File

@ -3,10 +3,11 @@
PORTNAME= firefox
DISTVERSION= 77.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build1/source
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build2/source
DISTFILES= ${DISTNAME}.source${EXTRACT_SUFX}
MAINTAINER= gecko@FreeBSD.org

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1590430077
SHA256 (firefox-77.0.source.tar.xz) = df8fc50fa360b10de8076aa5409d6d97f361669d802e90d51651836d1d9ec348
SIZE (firefox-77.0.source.tar.xz) = 332501524
TIMESTAMP = 1590598572
SHA256 (firefox-77.0.source.tar.xz) = d1f3ddc41b1d89150cfcb1528db7054506ebbedb5edd4c8916525b4718056efc
SIZE (firefox-77.0.source.tar.xz) = 329059200

View File

@ -0,0 +1,40 @@
commit 0aaf67da2681
Author: Martin Stransky <stransky@redhat.com>
Date: Wed May 27 08:37:58 2020 +0000
Bug 1632456 [Wayland] Release mVAAPIDeviceContext when FFmpegVideoDecoder::CreateVAAPIDeviceContext() fails, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D76745
---
dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
index 889d1d1ed5b97..1bd144d7375f4 100644
--- dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
+++ dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
@@ -175,6 +175,10 @@ bool FFmpegVideoDecoder<LIBAV_VER>::CreateVAAPIDeviceContext() {
if (!mVAAPIDeviceContext) {
return false;
}
+
+ auto releaseVAAPIcontext =
+ MakeScopeExit([&] { mLib->av_buffer_unref(&mVAAPIDeviceContext); });
+
AVHWDeviceContext* hwctx = (AVHWDeviceContext*)mVAAPIDeviceContext->data;
AVVAAPIDeviceContext* vactx = (AVVAAPIDeviceContext*)hwctx->hwctx;
@@ -195,12 +199,12 @@ bool FFmpegVideoDecoder<LIBAV_VER>::CreateVAAPIDeviceContext() {
}
vactx->display = mDisplay;
-
if (mLib->av_hwdevice_ctx_init(mVAAPIDeviceContext) < 0) {
return false;
}
mCodecContext->hw_device_ctx = mLib->av_buffer_ref(mVAAPIDeviceContext);
+ releaseVAAPIcontext.release();
return true;
}

View File

@ -0,0 +1,33 @@
commit edbe69232a5b
Author: Martin Stransky <stransky@redhat.com>
Date: Tue May 12 09:20:25 2020 +0000
Bug 1636072 [Wayland] Don't crash when GetWlBuffer() fails, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74663
---
widget/gtk/WindowSurfaceWayland.cpp | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git widget/gtk/WindowSurfaceWayland.cpp widget/gtk/WindowSurfaceWayland.cpp
index 372158c9f0f33..56f5d3d530853 100644
--- widget/gtk/WindowSurfaceWayland.cpp
+++ widget/gtk/WindowSurfaceWayland.cpp
@@ -390,10 +390,13 @@ void WindowBackBuffer::Attach(wl_surface* aSurface) {
(void*)GetWlBuffer(),
GetWlBuffer() ? wl_proxy_get_id((struct wl_proxy*)GetWlBuffer()) : -1));
- wl_surface_attach(aSurface, GetWlBuffer(), 0, 0);
- wl_surface_commit(aSurface);
- wl_display_flush(WaylandDisplayGetWLDisplay());
- SetAttached();
+ wl_buffer* buffer = GetWlBuffer();
+ if (buffer) {
+ wl_surface_attach(aSurface, buffer, 0, 0);
+ wl_surface_commit(aSurface);
+ wl_display_flush(WaylandDisplayGetWLDisplay());
+ SetAttached();
+ }
}
void WindowBackBufferShm::Detach(wl_buffer* aBuffer) {

View File

@ -0,0 +1,25 @@
commit 9a89dccd2a85
Author: Martin Stransky <stransky@redhat.com>
Date: Fri May 15 07:52:39 2020 +0000
Bug 1638010 [Wayland] Make WaylandDMABUFTextureData::BorrowDrawTarget() fail when underlying dmabuf surface is not locked, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D75329
---
gfx/layers/opengl/WaylandDMABUFTextureClientOGL.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git gfx/layers/opengl/WaylandDMABUFTextureClientOGL.cpp gfx/layers/opengl/WaylandDMABUFTextureClientOGL.cpp
index bb556d9fcfaf5..da9c9cb6f4d19 100644
--- gfx/layers/opengl/WaylandDMABUFTextureClientOGL.cpp
+++ gfx/layers/opengl/WaylandDMABUFTextureClientOGL.cpp
@@ -86,6 +86,9 @@ already_AddRefed<DrawTarget> WaylandDMABUFTextureData::BorrowDrawTarget() {
return nullptr;
}
auto surf = mSurface->GetAsWaylandDMABufSurfaceRGBA();
+ if (!surf->GetMappedRegion()) {
+ return nullptr;
+ }
return Factory::CreateDrawTargetForData(
mBackend, (unsigned char*)surf->GetMappedRegion(),
IntSize(surf->GetWidth(), surf->GetHeight()),