[VD] Fix deeplink issue in current known scenario 27/221227/1
authorliwei <wei90727.li@samsung.com>
Mon, 30 Dec 2019 07:28:58 +0000 (15:28 +0800)
committerliwei <wei90727.li@samsung.com>
Mon, 30 Dec 2019 07:28:58 +0000 (15:28 +0800)
commit31da1d9b3ffa7df5fdc2c538267f1a9773827d90
tree4396f5901a5531ea114ba6d030a086bcea824ccb
parentea8975a312813f766a9cc5ad71d8461584d5c77f
[VD] Fix deeplink issue in current known scenario

This patch will cover well deeplink issues which we have known.
Common WRT's deep link policy is very simple, it just check sameness,
but to support compatibility of previous apps on TV side, VD WRT
has to handle below difference cases.

1) 'TVing': not-reload
From http://d2ehepluhe2jv7.cloudfront.net/#/
  to http://d2ehepluhe2jv7.cloudfront.net

2) SlingTV: not-reload
From file:///index.html#/login
  to file:///index.html

3) 'Amazon Music': will-reload
From file:///index.html#!/main/home
  to file:///index.html#!/deepLink

However, this logic has a potential problem with below case,
even though the URL has reload to appcontol's src but, it will be
skipped.
To solve this problem is easy but, it conflicts previous compatibility
functionality.

From file:///index.htmlx
  to file:///index.html

Change-Id: I401a8ead2f745de3ce938b16ac5c11efb4d9bd66
Signed-off-by: liwei <wei90727.li@samsung.com>
wrt_app/src/runtime.js