From 4d98af15a6f3630ff0a537e27990fb217aa75421 Mon Sep 17 00:00:00 2001 From: DongHyun Song Date: Wed, 29 Nov 2023 22:33:37 +0900 Subject: [PATCH] Add privilege check for fullscreen request Add fullscreen privilege check. Related patch: https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/302018 Change-Id: Ic48be84b97bedfa97abb8ae19811cc5106e19395 Signed-off-by: DongHyun Song --- wrt_app/src/web_application.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 3c8d7991..56541a92 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -110,6 +110,11 @@ export class WebApplication { console.log(`Raising a geolocation permission request with id: ${id}`); this.pendingCallbacks.set(id, callback); wrt.handleGeolocationPermissionRequest(id, webContents); + } else if (permission === 'fullscreen') { + const id = ++this.pendingID; + console.log(`Raising a fullscreen permission request with id: ${id}`); + this.pendingCallbacks.set(id, callback); + wrt.handleFullScreenPermissionRequest?.(id, webContents); } else { /* electron by default allows permission for all if no request handler is there; so granting permission only temporarily to not have any -- 2.34.1