From owner-svn-ports-head@freebsd.org Fri May 15 04:59:11 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4594B2E9FCE; Fri, 15 May 2020 04:59:10 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49NbmF4W8cz4M9w; Fri, 15 May 2020 04:59:08 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0F861EDE5; Fri, 15 May 2020 04:59:08 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04F4x8jB092575; Fri, 15 May 2020 04:59:08 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04F4x75T092569; Fri, 15 May 2020 04:59:07 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202005150459.04F4x75T092569@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 15 May 2020 04:59:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r535269 - in head: Mk mail/thunderbird mail/thunderbird/files www/firefox www/firefox-esr www/firefox-esr/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head: Mk mail/thunderbird mail/thunderbird/files www/firefox www/firefox-esr www/firefox-esr/files X-SVN-Commit-Revision: 535269 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 04:59:11 -0000 Author: jbeich Date: Fri May 15 04:59:07 2020 New Revision: 535269 URL: https://svnweb.freebsd.org/changeset/ports/535269 Log: gecko: drop x11/startup-notification dependency https://bugzilla.mozilla.org/show_bug.cgi?id=726479 Added: head/mail/thunderbird/files/patch-bug726479 (contents, props changed) head/www/firefox-esr/files/patch-bug726479 (contents, props changed) Modified: head/Mk/bsd.gecko.mk (contents, props changed) head/mail/thunderbird/Makefile (contents, props changed) head/www/firefox-esr/Makefile (contents, props changed) head/www/firefox/Makefile (contents, props changed) Modified: head/Mk/bsd.gecko.mk ============================================================================== --- head/Mk/bsd.gecko.mk Fri May 15 04:59:00 2020 (r535268) +++ head/Mk/bsd.gecko.mk Fri May 15 04:59:07 2020 (r535269) @@ -213,9 +213,7 @@ RUN_DEPENDS+= libcanberra>0:audio/libcanberra .if ${PORT_OPTIONS:MDBUS} BUILD_DEPENDS+= libnotify>0:devel/libnotify LIB_DEPENDS+= libdbus-1.so:devel/dbus \ - libdbus-glib-1.so:devel/dbus-glib \ - libstartup-notification-1.so:x11/startup-notification -MOZ_OPTIONS+= --enable-startup-notification + libdbus-glib-1.so:devel/dbus-glib .else MOZ_OPTIONS+= --disable-dbus .endif Modified: head/mail/thunderbird/Makefile ============================================================================== --- head/mail/thunderbird/Makefile Fri May 15 04:59:00 2020 (r535268) +++ head/mail/thunderbird/Makefile Fri May 15 04:59:07 2020 (r535269) @@ -3,7 +3,7 @@ PORTNAME= thunderbird DISTVERSION= 68.8.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail news net-im MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build2/source Added: head/mail/thunderbird/files/patch-bug726479 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/thunderbird/files/patch-bug726479 Fri May 15 04:59:07 2020 (r535269) @@ -0,0 +1,237 @@ +commit b92dbf54798e +Author: Ben Iofel +Date: Mon Jan 6 12:03:38 2020 +0000 + + Bug 726479 - Use GTK's support for startup notifications, r=karlt + + Original author: Ben Iofel + + Differential Revision: https://phabricator.services.mozilla.com/D58594 + + --HG-- + extra : moz-landing-system : lando +--- + config/system-headers.mozbuild | 10 ---------- + old-configure.in | 35 ----------------------------------- + toolkit/library/moz.build | 3 --- + toolkit/xre/nsAppRunner.cpp | 6 ------ + widget/gtk/moz.build | 4 ---- + widget/gtk/mozgtk/mozgtk.c | 1 + + widget/gtk/nsWindow.cpp | 37 +------------------------------------ + 7 files changed, 2 insertions(+), 94 deletions(-) + +diff --git config/system-headers.mozbuild config/system-headers.mozbuild +index 33ba01eaea3ae..2081d0c683a4c 100644 +--- config/system-headers.mozbuild ++++ config/system-headers.mozbuild +@@ -1267,16 +1267,6 @@ if CONFIG['MOZ_SYSTEM_ZLIB']: + 'zlib.h', + ] + +-if CONFIG['MOZ_ENABLE_STARTUP_NOTIFICATION']: +- system_headers += [ +- 'libsn/sn-common.h', +- 'libsn/sn.h', +- 'libsn/sn-launchee.h', +- 'libsn/sn-launcher.h', +- 'libsn/sn-monitor.h', +- 'libsn/sn-util.h', +- ] +- + if CONFIG['MOZ_SYSTEM_LIBEVENT']: + system_headers += [ + 'event2/event_compat.h', +diff --git old-configure.in old-configure.in +index f9278ba3f8451..2ac7fd92dfaa7 100644 +--- old-configure.in ++++ old-configure.in +@@ -61,7 +61,6 @@ GTK2_VERSION=2.18.0 + GTK3_VERSION=3.4.0 + GDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 + W32API_VERSION=3.14 +-STARTUP_NOTIFICATION_VERSION=0.8 + DBUS_VERSION=0.60 + SQLITE_VERSION=3.30.1 + +@@ -1759,40 +1758,6 @@ fi # COMPILE_ENVIRONMENT + + AC_SUBST(MOZ_FS_LAYOUT) + +-dnl ======================================================== +-dnl = startup-notification support module +-dnl ======================================================== +- +-if test "$MOZ_ENABLE_GTK" +-then +- MOZ_ENABLE_STARTUP_NOTIFICATION= +- +- MOZ_ARG_ENABLE_BOOL(startup-notification, +- [ --enable-startup-notification +- Enable startup-notification support (default: disabled) ], +- MOZ_ENABLE_STARTUP_NOTIFICATION=force, +- MOZ_ENABLE_STARTUP_NOTIFICATION=) +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" +- then +- PKG_CHECK_MODULES(MOZ_STARTUP_NOTIFICATION, +- libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION, +- [MOZ_ENABLE_STARTUP_NOTIFICATION=1], [ +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" = "force" +- then +- AC_MSG_ERROR([* * * Could not find startup-notification >= $STARTUP_NOTIFICATION_VERSION]) +- fi +- MOZ_ENABLE_STARTUP_NOTIFICATION= +- ]) +- fi +- +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"; then +- AC_DEFINE(MOZ_ENABLE_STARTUP_NOTIFICATION) +- fi +- +- TK_LIBS="$TK_LIBS $MOZ_STARTUP_NOTIFICATION_LIBS" +-fi +-AC_SUBST(MOZ_ENABLE_STARTUP_NOTIFICATION) +- + AC_SUBST_LIST(TK_CFLAGS) + AC_SUBST_LIST(TK_LIBS) + +diff --git toolkit/library/moz.build toolkit/library/moz.build +index 736acbaae7fa9..af8400f4931f6 100644 +--- toolkit/library/moz.build ++++ toolkit/library/moz.build +@@ -285,9 +285,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': + 'gthread-2.0', + ] + +-if CONFIG['MOZ_ENABLE_STARTUP_NOTIFICATION']: +- OS_LIBS += CONFIG['MOZ_STARTUP_NOTIFICATION_LIBS'] +- + if CONFIG['MOZ_ENABLE_LIBPROXY']: + OS_LIBS += CONFIG['MOZ_LIBPROXY_LIBS'] + +diff --git toolkit/xre/nsAppRunner.cpp toolkit/xre/nsAppRunner.cpp +index 219265cbfda75..5e8dfb68e1ca5 100644 +--- toolkit/xre/nsAppRunner.cpp ++++ toolkit/xre/nsAppRunner.cpp +@@ -278,7 +278,6 @@ nsString gAbsoluteArgv0Path; + # ifdef MOZ_X11 + # include + # endif /* MOZ_X11 */ +-# include "nsGTKToolkit.h" + # include + #endif + #include "BinaryPath.h" +@@ -3851,7 +3850,6 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) { + #endif + #if defined(MOZ_WIDGET_GTK) + g_set_application_name(mAppData->name); +- gtk_window_set_auto_startup_notification(false); + + #endif /* defined(MOZ_WIDGET_GTK) */ + #ifdef MOZ_X11 +@@ -4492,10 +4490,6 @@ nsresult XREMain::XRE_mainRun() { + #endif + + #if defined(HAVE_DESKTOP_STARTUP_ID) && defined(MOZ_WIDGET_GTK) +- nsGTKToolkit* toolkit = nsGTKToolkit::GetToolkit(); +- if (toolkit && !mDesktopStartupID.IsEmpty()) { +- toolkit->SetDesktopStartupID(mDesktopStartupID); +- } + // Clear the environment variable so it won't be inherited by + // child processes and confuse things. + g_unsetenv("DESKTOP_STARTUP_ID"); +diff --git widget/gtk/moz.build widget/gtk/moz.build +index 2cbd226ef2222..1c8ee424aeb11 100644 +--- widget/gtk/moz.build ++++ widget/gtk/moz.build +@@ -146,8 +146,6 @@ DEFINES['CAIRO_GFX'] = True + + DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME'] + +-CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] +- + # When building with GTK3, the widget code always needs to use + # system Cairo headers, regardless of whether we are also linked + # against and using in-tree Cairo. By not using in-tree Cairo +@@ -158,8 +156,6 @@ CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] + if not (CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk' and CONFIG['MOZ_TREE_CAIRO']): + CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] + +-CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] +- + CFLAGS += CONFIG['TK_CFLAGS'] + CXXFLAGS += CONFIG['TK_CFLAGS'] + +diff --git widget/gtk/mozgtk/mozgtk.c widget/gtk/mozgtk/mozgtk.c +index 9954083d5c1ef..84599830ca00a 100644 +--- widget/gtk/mozgtk/mozgtk.c ++++ widget/gtk/mozgtk/mozgtk.c +@@ -529,6 +529,7 @@ STUB(gtk_window_set_geometry_hints) + STUB(gtk_window_set_icon_name) + STUB(gtk_window_set_modal) + STUB(gtk_window_set_skip_taskbar_hint) ++STUB(gtk_window_set_startup_id) + STUB(gtk_window_set_title) + STUB(gtk_window_set_transient_for) + STUB(gtk_window_set_type_hint) +diff --git widget/gtk/nsWindow.cpp widget/gtk/nsWindow.cpp +index 05902ac3bfb26..89748404988c3 100644 +--- widget/gtk/nsWindow.cpp ++++ widget/gtk/nsWindow.cpp +@@ -64,11 +64,6 @@ + + #include "nsGkAtoms.h" + +-#ifdef MOZ_ENABLE_STARTUP_NOTIFICATION +-# define SN_API_NOT_YET_FROZEN +-# include +-#endif +- + #include "mozilla/Assertions.h" + #include "mozilla/Likely.h" + #include "mozilla/Preferences.h" +@@ -1393,8 +1388,6 @@ void nsWindow::SetSizeMode(nsSizeMode aMode) { + + typedef void (*SetUserTimeFunc)(GdkWindow* aWindow, guint32 aTimestamp); + +-// This will become obsolete when new GTK APIs are widely supported, +-// as described here: http://bugzilla.gnome.org/show_bug.cgi?id=347375 + static void SetUserTimeAndStartupIDForActivatedWindow(GtkWidget* aWindow) { + nsGTKToolkit* GTKToolkit = nsGTKToolkit::GetToolkit(); + if (!GTKToolkit) return; +@@ -1414,35 +1407,7 @@ static void SetUserTimeAndStartupIDForActivatedWindow( + return; + } + +-#if defined(MOZ_ENABLE_STARTUP_NOTIFICATION) +- // TODO - Implement for non-X11 Gtk backends (Bug 726479) +- if (GDK_IS_X11_DISPLAY(gdk_display_get_default())) { +- GdkWindow* gdkWindow = gtk_widget_get_window(aWindow); +- +- GdkScreen* screen = gdk_window_get_screen(gdkWindow); +- SnDisplay* snd = sn_display_new( +- gdk_x11_display_get_xdisplay(gdk_window_get_display(gdkWindow)), +- nullptr, nullptr); +- if (!snd) return; +- SnLauncheeContext* ctx = sn_launchee_context_new( +- snd, gdk_screen_get_number(screen), desktopStartupID.get()); +- if (!ctx) { +- sn_display_unref(snd); +- return; +- } +- +- if (sn_launchee_context_get_id_has_timestamp(ctx)) { +- gdk_x11_window_set_user_time(gdkWindow, +- sn_launchee_context_get_timestamp(ctx)); +- } +- +- sn_launchee_context_setup_window(ctx, gdk_x11_window_get_xid(gdkWindow)); +- sn_launchee_context_complete(ctx); +- +- sn_launchee_context_unref(ctx); +- sn_display_unref(snd); +- } +-#endif ++ gtk_window_set_startup_id(GTK_WINDOW(aWindow), desktopStartupID.get()); + + // If we used the startup ID, that already contains the focus timestamp; + // we don't want to reuse the timestamp next time we raise the window Modified: head/www/firefox-esr/Makefile ============================================================================== --- head/www/firefox-esr/Makefile Fri May 15 04:59:00 2020 (r535268) +++ head/www/firefox-esr/Makefile Fri May 15 04:59:07 2020 (r535269) @@ -3,7 +3,7 @@ PORTNAME= firefox DISTVERSION= 68.8.0 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= www MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ Added: head/www/firefox-esr/files/patch-bug726479 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/firefox-esr/files/patch-bug726479 Fri May 15 04:59:07 2020 (r535269) @@ -0,0 +1,237 @@ +commit b92dbf54798e +Author: Ben Iofel +Date: Mon Jan 6 12:03:38 2020 +0000 + + Bug 726479 - Use GTK's support for startup notifications, r=karlt + + Original author: Ben Iofel + + Differential Revision: https://phabricator.services.mozilla.com/D58594 + + --HG-- + extra : moz-landing-system : lando +--- + config/system-headers.mozbuild | 10 ---------- + old-configure.in | 35 ----------------------------------- + toolkit/library/moz.build | 3 --- + toolkit/xre/nsAppRunner.cpp | 6 ------ + widget/gtk/moz.build | 4 ---- + widget/gtk/mozgtk/mozgtk.c | 1 + + widget/gtk/nsWindow.cpp | 37 +------------------------------------ + 7 files changed, 2 insertions(+), 94 deletions(-) + +diff --git config/system-headers.mozbuild config/system-headers.mozbuild +index 33ba01eaea3ae..2081d0c683a4c 100644 +--- config/system-headers.mozbuild ++++ config/system-headers.mozbuild +@@ -1267,16 +1267,6 @@ if CONFIG['MOZ_SYSTEM_ZLIB']: + 'zlib.h', + ] + +-if CONFIG['MOZ_ENABLE_STARTUP_NOTIFICATION']: +- system_headers += [ +- 'libsn/sn-common.h', +- 'libsn/sn.h', +- 'libsn/sn-launchee.h', +- 'libsn/sn-launcher.h', +- 'libsn/sn-monitor.h', +- 'libsn/sn-util.h', +- ] +- + if CONFIG['MOZ_SYSTEM_LIBEVENT']: + system_headers += [ + 'event2/event_compat.h', +diff --git old-configure.in old-configure.in +index f9278ba3f8451..2ac7fd92dfaa7 100644 +--- old-configure.in ++++ old-configure.in +@@ -61,7 +61,6 @@ GTK2_VERSION=2.18.0 + GTK3_VERSION=3.4.0 + GDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 + W32API_VERSION=3.14 +-STARTUP_NOTIFICATION_VERSION=0.8 + DBUS_VERSION=0.60 + SQLITE_VERSION=3.30.1 + +@@ -1759,40 +1758,6 @@ fi # COMPILE_ENVIRONMENT + + AC_SUBST(MOZ_FS_LAYOUT) + +-dnl ======================================================== +-dnl = startup-notification support module +-dnl ======================================================== +- +-if test "$MOZ_ENABLE_GTK" +-then +- MOZ_ENABLE_STARTUP_NOTIFICATION= +- +- MOZ_ARG_ENABLE_BOOL(startup-notification, +- [ --enable-startup-notification +- Enable startup-notification support (default: disabled) ], +- MOZ_ENABLE_STARTUP_NOTIFICATION=force, +- MOZ_ENABLE_STARTUP_NOTIFICATION=) +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" +- then +- PKG_CHECK_MODULES(MOZ_STARTUP_NOTIFICATION, +- libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION, +- [MOZ_ENABLE_STARTUP_NOTIFICATION=1], [ +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" = "force" +- then +- AC_MSG_ERROR([* * * Could not find startup-notification >= $STARTUP_NOTIFICATION_VERSION]) +- fi +- MOZ_ENABLE_STARTUP_NOTIFICATION= +- ]) +- fi +- +- if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"; then +- AC_DEFINE(MOZ_ENABLE_STARTUP_NOTIFICATION) +- fi +- +- TK_LIBS="$TK_LIBS $MOZ_STARTUP_NOTIFICATION_LIBS" +-fi +-AC_SUBST(MOZ_ENABLE_STARTUP_NOTIFICATION) +- + AC_SUBST_LIST(TK_CFLAGS) + AC_SUBST_LIST(TK_LIBS) + +diff --git toolkit/library/moz.build toolkit/library/moz.build +index 736acbaae7fa9..af8400f4931f6 100644 +--- toolkit/library/moz.build ++++ toolkit/library/moz.build +@@ -285,9 +285,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': + 'gthread-2.0', + ] + +-if CONFIG['MOZ_ENABLE_STARTUP_NOTIFICATION']: +- OS_LIBS += CONFIG['MOZ_STARTUP_NOTIFICATION_LIBS'] +- + if CONFIG['MOZ_ENABLE_LIBPROXY']: + OS_LIBS += CONFIG['MOZ_LIBPROXY_LIBS'] + +diff --git toolkit/xre/nsAppRunner.cpp toolkit/xre/nsAppRunner.cpp +index 219265cbfda75..5e8dfb68e1ca5 100644 +--- toolkit/xre/nsAppRunner.cpp ++++ toolkit/xre/nsAppRunner.cpp +@@ -278,7 +278,6 @@ nsString gAbsoluteArgv0Path; + # ifdef MOZ_X11 + # include + # endif /* MOZ_X11 */ +-# include "nsGTKToolkit.h" + # include + #endif + #include "BinaryPath.h" +@@ -3851,7 +3850,6 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) { + #endif + #if defined(MOZ_WIDGET_GTK) + g_set_application_name(mAppData->name); +- gtk_window_set_auto_startup_notification(false); + + #endif /* defined(MOZ_WIDGET_GTK) */ + #ifdef MOZ_X11 +@@ -4492,10 +4490,6 @@ nsresult XREMain::XRE_mainRun() { + #endif + + #if defined(HAVE_DESKTOP_STARTUP_ID) && defined(MOZ_WIDGET_GTK) +- nsGTKToolkit* toolkit = nsGTKToolkit::GetToolkit(); +- if (toolkit && !mDesktopStartupID.IsEmpty()) { +- toolkit->SetDesktopStartupID(mDesktopStartupID); +- } + // Clear the environment variable so it won't be inherited by + // child processes and confuse things. + g_unsetenv("DESKTOP_STARTUP_ID"); +diff --git widget/gtk/moz.build widget/gtk/moz.build +index 2cbd226ef2222..1c8ee424aeb11 100644 +--- widget/gtk/moz.build ++++ widget/gtk/moz.build +@@ -146,8 +146,6 @@ DEFINES['CAIRO_GFX'] = True + + DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME'] + +-CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] +- + # When building with GTK3, the widget code always needs to use + # system Cairo headers, regardless of whether we are also linked + # against and using in-tree Cairo. By not using in-tree Cairo +@@ -158,8 +156,6 @@ CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] + if not (CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk' and CONFIG['MOZ_TREE_CAIRO']): + CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] + +-CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS'] +- + CFLAGS += CONFIG['TK_CFLAGS'] + CXXFLAGS += CONFIG['TK_CFLAGS'] + +diff --git widget/gtk/mozgtk/mozgtk.c widget/gtk/mozgtk/mozgtk.c +index 9954083d5c1ef..84599830ca00a 100644 +--- widget/gtk/mozgtk/mozgtk.c ++++ widget/gtk/mozgtk/mozgtk.c +@@ -529,6 +529,7 @@ STUB(gtk_window_set_geometry_hints) + STUB(gtk_window_set_icon_name) + STUB(gtk_window_set_modal) + STUB(gtk_window_set_skip_taskbar_hint) ++STUB(gtk_window_set_startup_id) + STUB(gtk_window_set_title) + STUB(gtk_window_set_transient_for) + STUB(gtk_window_set_type_hint) +diff --git widget/gtk/nsWindow.cpp widget/gtk/nsWindow.cpp +index 05902ac3bfb26..89748404988c3 100644 +--- widget/gtk/nsWindow.cpp ++++ widget/gtk/nsWindow.cpp +@@ -64,11 +64,6 @@ + + #include "nsGkAtoms.h" + +-#ifdef MOZ_ENABLE_STARTUP_NOTIFICATION +-# define SN_API_NOT_YET_FROZEN +-# include +-#endif +- + #include "mozilla/Assertions.h" + #include "mozilla/Likely.h" + #include "mozilla/Preferences.h" +@@ -1393,8 +1388,6 @@ void nsWindow::SetSizeMode(nsSizeMode aMode) { + + typedef void (*SetUserTimeFunc)(GdkWindow* aWindow, guint32 aTimestamp); + +-// This will become obsolete when new GTK APIs are widely supported, +-// as described here: http://bugzilla.gnome.org/show_bug.cgi?id=347375 + static void SetUserTimeAndStartupIDForActivatedWindow(GtkWidget* aWindow) { + nsGTKToolkit* GTKToolkit = nsGTKToolkit::GetToolkit(); + if (!GTKToolkit) return; +@@ -1414,35 +1407,7 @@ static void SetUserTimeAndStartupIDForActivatedWindow( + return; + } + +-#if defined(MOZ_ENABLE_STARTUP_NOTIFICATION) +- // TODO - Implement for non-X11 Gtk backends (Bug 726479) +- if (GDK_IS_X11_DISPLAY(gdk_display_get_default())) { +- GdkWindow* gdkWindow = gtk_widget_get_window(aWindow); +- +- GdkScreen* screen = gdk_window_get_screen(gdkWindow); +- SnDisplay* snd = sn_display_new( +- gdk_x11_display_get_xdisplay(gdk_window_get_display(gdkWindow)), +- nullptr, nullptr); +- if (!snd) return; +- SnLauncheeContext* ctx = sn_launchee_context_new( +- snd, gdk_screen_get_number(screen), desktopStartupID.get()); +- if (!ctx) { +- sn_display_unref(snd); +- return; +- } +- +- if (sn_launchee_context_get_id_has_timestamp(ctx)) { +- gdk_x11_window_set_user_time(gdkWindow, +- sn_launchee_context_get_timestamp(ctx)); +- } +- +- sn_launchee_context_setup_window(ctx, gdk_x11_window_get_xid(gdkWindow)); +- sn_launchee_context_complete(ctx); +- +- sn_launchee_context_unref(ctx); +- sn_display_unref(snd); +- } +-#endif ++ gtk_window_set_startup_id(GTK_WINDOW(aWindow), desktopStartupID.get()); + + // If we used the startup ID, that already contains the focus timestamp; + // we don't want to reuse the timestamp next time we raise the window Modified: head/www/firefox/Makefile ============================================================================== --- head/www/firefox/Makefile Fri May 15 04:59:00 2020 (r535268) +++ head/www/firefox/Makefile Fri May 15 04:59:07 2020 (r535269) @@ -3,7 +3,7 @@ PORTNAME= firefox DISTVERSION= 76.0.1 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= www MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \