[VD] Segregates NativeWebRuntime for TV profile 14/231814/15 accepted/tizen/unified/20200508.045044 submit/tizen/20200507.023320 submit/tizen/20200507.080200
authorDongHyun Song <dh81.song@samsung.com>
Fri, 24 Apr 2020 08:45:45 +0000 (17:45 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 6 May 2020 01:14:58 +0000 (10:14 +0900)
Adds TV APIs for disk cache setting and handling app-control data
explicitly to simplify NotifyAppControl's original logic.

Related patch:
  https://review.tizen.org/gerrit/231832/

Change-Id: Id82d6e3010a69ccc0116a15f473d32483fc7a6a2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/src/runtime.js

index 606fe2b..30301b8 100755 (executable)
@@ -134,6 +134,10 @@ class Runtime {
                             _this.webApplication.inspectorSrc = src;
                             src = "about:blank";
                         }
+                        let useDiskCache = appControl.getData('USE_DISKCACHE');
+                        let halfWindowOption = appControl.getData('http://samsung.com/appcontrol/data/half_window_support');
+                        wrt.tv.setDiskCache(useDiskCache);
+                        wrt.tv.handleAppControlData(launchMode, halfWindowOption);
                     }
                     _this.webApplication.mainWindow.loadURL(src);
                     _this.webApplication.prelaunch(src);