From: DongHyun Song Date: Wed, 29 Nov 2023 13:33:37 +0000 (+0900) Subject: Add privilege check for fullscreen request X-Git-Tag: submit/tizen/20231130.160026~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d98af15a6f3630ff0a537e27990fb217aa75421;p=platform%2Fframework%2Fweb%2Fwrtjs.git 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 --- 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