Date: Sat, 14 Nov 2020 15:08:00 +0000 (UTC) From: Joseph Mingrone <jrm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r555115 - in head/www/chromium: . files Message-ID: <202011141508.0AEF80W0091434@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jrm Date: Sat Nov 14 15:08:00 2020 New Revision: 555115 URL: https://svnweb.freebsd.org/changeset/ports/555115 Log: www/chromium: Make online detection always positive Summary: navigator.onLine is currently broken in www/chromium. This change introduce a workaround that always return positive for online detection. Sponsored by: The FreeBSD Foundation Submitted by: Ka Ho Ng <khng300@gmail.com> Differential Revision: https://reviews.freebsd.org/D26490 Modified: head/www/chromium/Makefile (contents, props changed) head/www/chromium/files/patch-net_base_network__change__notifier.cc (contents, props changed) Modified: head/www/chromium/Makefile ============================================================================== --- head/www/chromium/Makefile Sat Nov 14 14:31:49 2020 (r555114) +++ head/www/chromium/Makefile Sat Nov 14 15:08:00 2020 (r555115) @@ -3,7 +3,7 @@ PORTNAME= chromium PORTVERSION= 85.0.4183.121 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES?= www java MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ LOCAL/rene/chromium/:fonts Modified: head/www/chromium/files/patch-net_base_network__change__notifier.cc ============================================================================== --- head/www/chromium/files/patch-net_base_network__change__notifier.cc Sat Nov 14 14:31:49 2020 (r555114) +++ head/www/chromium/files/patch-net_base_network__change__notifier.cc Sat Nov 14 15:08:00 2020 (r555115) @@ -1,4 +1,4 @@ ---- net/base/network_change_notifier.cc.orig 2020-02-03 21:52:49 UTC +--- net/base/network_change_notifier.cc.orig 2020-08-10 18:39:31 UTC +++ net/base/network_change_notifier.cc @@ -35,7 +35,7 @@ #include "net/base/network_change_notifier_linux.h" @@ -9,18 +9,14 @@ #include "net/base/network_change_notifier_posix.h" #elif defined(OS_FUCHSIA) #include "net/base/network_change_notifier_fuchsia.h" -@@ -229,7 +229,7 @@ std::unique_ptr<NetworkChangeNotifier> NetworkChangeNo - // service in a separate process. - return std::make_unique<NetworkChangeNotifierPosix>(initial_type, - initial_subtype); --#elif defined(OS_CHROMEOS) -+#elif defined(OS_CHROMEOS) || defined(OS_BSD) - return std::make_unique<NetworkChangeNotifierPosix>(initial_type, - initial_subtype); - #elif defined(OS_LINUX) -@@ -241,7 +241,6 @@ std::unique_ptr<NetworkChangeNotifier> NetworkChangeNo +@@ -240,8 +240,11 @@ std::unique_ptr<NetworkChangeNotifier> NetworkChangeNo + #elif defined(OS_FUCHSIA) return std::make_unique<NetworkChangeNotifierFuchsia>( 0 /* required_features */); ++#elif defined(OS_BSD) ++ return std::make_unique<MockNetworkChangeNotifier>( ++ std::make_unique<SystemDnsConfigChangeNotifier>( ++ nullptr /* task_runner */, nullptr /* dns_config_service */)); #else - NOTIMPLEMENTED(); return NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011141508.0AEF80W0091434>