[M108 Migration][VD] Fix filesystem Cannot Used in Source of iframe. 89/289389/2
authorfeifei08.liu <feifei08.liu@samsung.com>
Tue, 7 Mar 2023 03:18:31 +0000 (11:18 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 17 Mar 2023 06:04:57 +0000 (06:04 +0000)
Pages come from filesystem cannot used in source of iframe, because the policy
of navigation stop it. In Tizen TV, Apps use filesystem to save the page is
safe, which should not stop to navigate it.

Reference:
- https://review.tizen.org/gerrit/283518/

Change-Id: I51d034dff614a1a276d5cfb0da9dc9a2aeebe019
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
tizen_src/ewk/efl_integration/renderer/content_renderer_client_efl.cc

index 8bce2b8..d7a5992 100644 (file)
@@ -296,6 +296,11 @@ bool ContentRendererClientEfl::HandleNavigation(
   if (shutting_down_)
     return false;
 
+#if BUILDFLAG(IS_TIZEN_TV)
+  if (content::IsTIZENWRT() && GURL(request.Url()).SchemeIsFileSystem())
+    return false;
+#endif
+
   bool result = false;
 
   NavigationPolicyParams params;