Using the current SiteInstance instead of a new one would ensure that
a speculative RenderFrameHost is not created and the existing one is
used during error page navigation. This would avoid creation of a new
RWHVEfl(and a new content_image) that renders the existing content_image
invalid resulting in crash/white screen.
Reference Patch : https://review.tizen.org/gerrit/#/c/249422/
Change-Id: Ifdf34847e4314ca1adb6685a344800519554ad6f
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
return current_instance;
}
+#if defined(OS_TIZEN_DA_PRODUCT)
+ // Using the current SiteInstance ensures that a speculative RenderFrameHost
+ // is not created during error page navigations.
+ if (current_instance->GetSiteURL() == GURL(kUnreachableWebDataURL))
+ return current_instance;
+#endif
+
// Determine if we need a new BrowsingInstance for this entry. If true, this
// implies that it will get a new SiteInstance (and likely process), and that
// other tabs in the current BrowsingInstance will be unable to script it.