[VideoSplash] Fix focus issue of VSS and refactors 87/259987/10
authorDongHyun Song <dh81.song@samsung.com>
Fri, 25 Jun 2021 05:38:55 +0000 (14:38 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 25 Jun 2021 06:33:38 +0000 (15:33 +0900)
commit78bf70348608dfb192f43661fa0093da6cce8b5a
tree7e5c277af29cc21e3173412ef4e9be38b5d981d6
parent715718671e3494ae4c2e2b834f564547174f8491
[VideoSplash] Fix focus issue of VSS and refactors

[PROBLEM] Before the update to VSS's player, the WRT.js could
          call WRT.hideSplashScreen(...), with one window show
          (after 'ready-to-show').

          With VSS player reacting to focus steal, now showing
          the window will result in premature playback stop.

[SOLUTION] With change in WRT interface in libchromium the
           WebApplication can now check, if the reason for
           hiding was valid.

           Side effect is, if the RENDERED was not a valid reason
           to hide a window, the window is not shown at any other
           event. The additional show() is therefore added to
           LOADFINISHED and CUSTOM (VIDEOFINISHED and CUSTOM's
           show() is already in the Chromium patch).

NOTE: part of this change was provided in Chromium project as change
[259340][1]. To have current change compile, you either have to have
chromium RPM with its change, or -- after first unsuccessfull build --
go to your GBS scratch area, into /usr/include/wrt/ and edit the
native_wrtjs.d.ts to have WRT.hideSplashScreen method return `boolean`.

[1]: https://review.tizen.org/gerrit/c/259340

Change-Id: Id63f6b4192cdc9da8da1e4ff0296f11bc15b10b3
Bug-Id: https://cam.sprc.samsung.pl/browse/WPMEDMAIN-2915
Signed-off-by: Marcin Zdun <m.zdun@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/web_application_delegate.ts
wrt_app/src/runtime.ts
wrt_app/src/tv/web_application_tv.ts
wrt_app/src/web_application.ts