diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-06-29 23:15:26 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2020-06-29 23:15:26 +0000 |
commit | 17fb721ef9cd40ecf29475b7849581186546bc64 (patch) | |
tree | 7962154d69cccaebb40ff913384d54e87970f845 /www/firefox/files/patch-bug1618914 | |
parent | a84c6b015be0049b8e8682a982d220359a7a2dd2 (diff) | |
download | ports-17fb721ef9cd40ecf29475b7849581186546bc64.tar.gz ports-17fb721ef9cd40ecf29475b7849581186546bc64.zip |
MFH: r534395 r539972 r540400 r540404 r540515
www/firefox: update to 78.0
Changes: https://www.mozilla.org/firefox/78.0/releasenotes/
PR: 247329
Approved by: ports-secteam blanket
Differential Revision: https://reviews.freebsd.org/D25301
Notes
Notes:
svn path=/branches/2020Q2/; revision=540842
Diffstat (limited to 'www/firefox/files/patch-bug1618914')
-rw-r--r-- | www/firefox/files/patch-bug1618914 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/www/firefox/files/patch-bug1618914 b/www/firefox/files/patch-bug1618914 index a2966b44f5e7..817d00032222 100644 --- a/www/firefox/files/patch-bug1618914 +++ b/www/firefox/files/patch-bug1618914 @@ -4,7 +4,7 @@ diff --git widget/gtk/WindowSurfaceWayland.cpp widget/gtk/WindowSurfaceWayland.c index 9a73326399bd5..9e42a7f1c5d18 100644 --- widget/gtk/WindowSurfaceWayland.cpp +++ widget/gtk/WindowSurfaceWayland.cpp -@@ -235,23 +235,24 @@ +@@ -222,20 +222,21 @@ static int WaylandAllocateShmMemory(int aSize) { #ifdef HAVE_POSIX_FALLOCATE do { ret = posix_fallocate(fd, 0, aSize); @@ -12,11 +12,9 @@ index 9a73326399bd5..9e42a7f1c5d18 100644 - if (ret != 0) { + if (ret == 0) { + return fd; -+ } else if (ret != EINVAL && ret != EOPNOTSUPP) { ++ } else if (ret != ENODEV && ret != EINVAL && ret != EOPNOTSUPP) { close(fd); - MOZ_CRASH_UNSAFE_PRINTF( - "posix_fallocate() fails on %s size %d error code %d\n", filename, - aSize, ret); + MOZ_CRASH("posix_fallocate() fails to allocate shm memory"); } -#else +#endif @@ -25,19 +23,19 @@ index 9a73326399bd5..9e42a7f1c5d18 100644 } while (ret < 0 && errno == EINTR); if (ret < 0) { close(fd); - MOZ_CRASH_UNSAFE_PRINTF("ftruncate() fails on %s size %d error code %d\n", - filename, aSize, ret); + MOZ_CRASH("ftruncate() fails to allocate shm memory"); } -#endif return fd; } -@@ -265,7 +266,7 @@ bool WaylandShmPool::Resize(int aSize) { +@@ -265,8 +266,8 @@ bool WaylandShmPool::Resize(int aSize) { + #ifdef HAVE_POSIX_FALLOCATE do { errno = posix_fallocate(mShmPoolFd, 0, aSize); } while (errno == EINTR); - if (errno != 0) return false; -+ if (errno != 0 && errno != EINVAL && errno != EOPNOTSUPP) return false; ++ if (errno != 0 && errno != ENODEV && errno != EINVAL && errno != EOPNOTSUPP) return false; #endif wl_shm_pool_resize(mShmPool, aSize); |