qt6-webengine: make sure to disable safe_browsing_mode by default.

This commit is contained in:
Luis Guzmán 2025-01-16 23:44:54 +00:00
parent e1d249923d
commit 7ed3fcbcff
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,14 @@
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake_
index 320a84a2..804d9237 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake_
@@ -188,6 +188,9 @@ function(extend_gn_list outList)
endif()
message(DEBUG "extend_gn_list(${outList} ${GN_ARGS} CONDITION ${GN_CONDITION} ...): Evaluated to ${value}")
foreach(gnArg ${GN_ARGS})
+ if(NOT "${gnArg}" MATCHES "safe_browsing_mode")
+ set(${outList} "${${outList}}" "safe_browsing_mode=0")
+ endif()
set(${outList} "${${outList}}" "${gnArg}=${value}")
endforeach()
set(${outList} "${${outList}}" PARENT_SCOPE)

View file

@ -22,8 +22,8 @@ VERSION=5
. ./config
# 'safe_browsing_mode=0' already present by default via
# 'src/core/CMakeLists.txt'
# disable safe_browsing_mode by default.
patch_p1 $DATA/001-disable_safe_browsing_mode.patch
#Increase parallel restriction (it fails at full speed).
sed -i 's|j2|j4|' debian/rules