From owner-svn-ports-head@freebsd.org Sat Nov 14 15:08:01 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 232382EC948; Sat, 14 Nov 2020 15:08:01 +0000 (UTC) (envelope-from jrm@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CYJcK0VCsz3JSv; Sat, 14 Nov 2020 15:08:01 +0000 (UTC) (envelope-from jrm@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 EDA62401C; Sat, 14 Nov 2020 15:08:00 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AEF80x8091436; Sat, 14 Nov 2020 15:08:00 GMT (envelope-from jrm@FreeBSD.org) Received: (from jrm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AEF80W0091434; Sat, 14 Nov 2020 15:08:00 GMT (envelope-from jrm@FreeBSD.org) Message-Id: <202011141508.0AEF80W0091434@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jrm set sender to jrm@FreeBSD.org using -f From: Joseph Mingrone Date: Sat, 14 Nov 2020 15:08:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r555115 - in head/www/chromium: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jrm X-SVN-Commit-Paths: in head/www/chromium: . files X-SVN-Commit-Revision: 555115 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.34 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: Sat, 14 Nov 2020 15:08:01 -0000 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 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 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;