forked from pool/nodejs-electron
* Node 22.15.1 * Added innerWidth and innerHeight options for window.open. #47045 (Also in 36, 37) * Added support for screen.dipToScreenPoint(point) and screen.screenToDipPoint(point) on Linux X11. * Added support for node option --experimental-network-inspection. * Security fixes for for CVE-2025-4609 CVE-2025-4664 (bsc#1243205) - Do not build Chromium extensions support as it's not used by us * reduce-gn-tree.patch * build-without-extensions.patch * build-without-guest-view.patch * extensions-common-assert.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=211
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
--- src/components/permissions/permission_context_base.cc.orig 2025-05-22 20:15:04.346176805 +0200
|
|
+++ src/components/permissions/permission_context_base.cc 2025-05-24 13:09:21.758872333 +0200
|
|
@@ -26,6 +26,7 @@
|
|
#include "components/content_settings/core/common/content_settings_pattern.h"
|
|
#include "components/content_settings/core/common/content_settings_types.h"
|
|
#include "components/content_settings/core/common/features.h"
|
|
+#include "components/guest_view/buildflags/buildflags.h"
|
|
#include "components/permissions/features.h"
|
|
#include "components/permissions/permission_context_base.h"
|
|
#include "components/permissions/permission_decision_auto_blocker.h"
|
|
@@ -46,7 +47,7 @@
|
|
#include "services/network/public/mojom/permissions_policy/permissions_policy_feature.mojom.h"
|
|
#include "url/gurl.h"
|
|
|
|
-#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
|
|
+#if BUILDFLAG(ENABLE_GUEST_VIEW)
|
|
#include "components/guest_view/browser/guest_view_base.h"
|
|
#endif
|
|
|
|
@@ -316,7 +317,7 @@ content::PermissionResult PermissionCont
|
|
}
|
|
}
|
|
|
|
-#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
|
|
+#if BUILDFLAG(ENABLE_GUEST_VIEW)
|
|
guest_view::GuestViewBase* guest =
|
|
guest_view::GuestViewBase::FromRenderFrameHost(render_frame_host);
|
|
if (guest) {
|