diff --git a/patches/chromium/.patches b/patches/chromium/.patches index 7cc9b8c2de314..ea04e58a07500 100644 --- a/patches/chromium/.patches +++ b/patches/chromium/.patches @@ -115,3 +115,4 @@ short-circuit_permissions_checks_in_mediastreamdevicescontroller.patch chore_add_electron_deps_to_gitignores.patch chore_allow_chromium_to_handle_synthetic_mouse_events_for_touch.patch add_maximized_parameter_to_linuxui_getwindowframeprovider.patch +add_electron_deps_to_license_credits_file.patch diff --git a/patches/chromium/add_electron_deps_to_license_credits_file.patch b/patches/chromium/add_electron_deps_to_license_credits_file.patch new file mode 100644 index 0000000000000..e789eaad6a8d0 --- /dev/null +++ b/patches/chromium/add_electron_deps_to_license_credits_file.patch @@ -0,0 +1,45 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Charles Kerr +Date: Tue, 9 Aug 2022 12:35:36 -0500 +Subject: add electron deps to license credits file + +Ensure that licenses for the dependencies introduced by Electron +are included in `LICENSES.chromium.html` + +diff --git a/tools/licenses.py b/tools/licenses.py +index a58dbf44370baabbfa2986c734c96a210cc16f1d..1d6934460f788ab76275710e727fb062f5c92b5b 100755 +--- a/tools/licenses.py ++++ b/tools/licenses.py +@@ -347,6 +347,32 @@ SPECIAL_CASES = { + "License File": + "/third_party/swiftshader/third_party/SPIRV-Headers/LICENSE", + }, ++ ++ os.path.join('third_party', 'electron_node'): { ++ "Name": "Node.js", ++ "URL": "https://github.com/nodejs/node", ++ "License": "MIT", ++ "License File": "/third_party/electron_node/LICENSE", ++ }, ++ os.path.join('third_party', 'squirrel.mac'): { ++ "Name": "Squirrel", ++ "URL": "https://github.com/Squirrel/Squirrel.Mac", ++ "License": "MIT", ++ "License File": "/third_party/squirrel.mac/LICENSE", ++ }, ++ os.path.join('third_party', 'squirrel.mac', 'vendor', 'mantle'): { ++ "Name": "Mantle", ++ "URL": "https://github.com/Mantle/Mantle", ++ "License": "MIT", ++ "License File": "/third_party/squirrel.mac/vendor/mantle/LICENSE.md", ++ }, ++ os.path.join('third_party', 'squirrel.mac', 'vendor', 'ReactiveObjC'): { ++ "Name": "ReactiveObjC", ++ "URL": "https://github.com/ReactiveCocoa/ReactiveObjC", ++ "License": "MIT", ++ "License File": ++ "/third_party/squirrel.mac/vendor/ReactiveObjC/LICENSE.md", ++ }, + } + + # Special value for 'License File' field used to indicate that the license file