commit 4c6c7c956021918b1eabff724e5eb1185a0f0dc7 Author: jrm Date: Sat Nov 14 15:08:00 2020 +0000 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 Differential Revision: https://reviews.freebsd.org/D26490 diff --git a/www/chromium/Makefile b/www/chromium/Makefile index f38570d89537..b912e104e4c9 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -3,7 +3,7 @@ PORTNAME= chromium PORTVERSION= 85.0.4183.121 -PORTREVISION= 1 +PORTREVISION= 3 CATEGORIES?= www java MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ LOCAL/rene/chromium/:fonts diff --git a/www/chromium/files/patch-net_base_network__change__notifier.cc b/www/chromium/files/patch-net_base_network__change__notifier.cc index b570610a6483..b037e73a1fb9 100644 --- a/www/chromium/files/patch-net_base_network__change__notifier.cc +++ b/www/chromium/files/patch-net_base_network__change__notifier.cc @@ -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 NetworkChangeNo - // service in a separate process. - return std::make_unique(initial_type, - initial_subtype); --#elif defined(OS_CHROMEOS) -+#elif defined(OS_CHROMEOS) || defined(OS_BSD) - return std::make_unique(initial_type, - initial_subtype); - #elif defined(OS_LINUX) -@@ -241,7 +241,6 @@ std::unique_ptr NetworkChangeNo +@@ -240,8 +240,11 @@ std::unique_ptr NetworkChangeNo + #elif defined(OS_FUCHSIA) return std::make_unique( 0 /* required_features */); ++#elif defined(OS_BSD) ++ return std::make_unique( ++ std::make_unique( ++ nullptr /* task_runner */, nullptr /* dns_config_service */)); #else - NOTIMPLEMENTED(); return NULL;