Add privilege check for fullscreen request 17/302017/3
authorDongHyun Song <dh81.song@samsung.com>
Wed, 29 Nov 2023 13:33:37 +0000 (22:33 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 29 Nov 2023 13:51:36 +0000 (22:51 +0900)
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 <dh81.song@samsung.com>
wrt_app/src/web_application.ts

index 3c8d7991bae4ed09f546d96ab24feb48c791af28..56541a92ce282abf2615d8b7599c620b3f9c8f27 100644 (file)
@@ -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