the page is allowed to open a window only when CanCreateWindow
is true, in this case no_javascript_access indicates
weather the window created should be scriptable in same process
hence it is made false
Change-Id: I1376ad5ac52ab1d5031177c064f490c1487cf8e1
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
if (!atom::Browser::Get()->ShouldAllowNavigation(target_url.spec()))
return false;
+#if defined(OS_TIZEN)
+ auto app_data = common::ApplicationDataManager::GetCurrentAppData();
+ if (app_data && !app_data->IsElectronApp()) {
+ // Window can be opened from script for Tizen Apps
+ // hence no need to check user_gesture
+ *no_javascript_access = false;
+ return true;
+ }
+#endif
if (IsRendererSandboxed(render_process_id)) {
*no_javascript_access = false;
return true;