Disable error page isolation for EFL port
Use the current SiteInstance for error page navigation
Reference: https://review.tizen.org/gerrit/292258
Change-Id: I5a4d59f096a8814bd35d4ef57b4244105c53b457
Signed-off-by: venu.musham <venu.musham@samsung.com>
SiteInstanceImpl* current_instance = render_frame_host_->GetSiteInstance();
+#if BUILDFLAG(IS_TIZEN)
+ // 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.
bool ShouldUseMobileFlingCurve() override { return IsMobileProfile(); }
void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
int child_process_id) override;
+ bool ShouldIsolateErrorPage(bool in_main_frame) override { return false; }
bool CanCreateWindow(RenderFrameHost* opener,
const GURL& opener_url,
const GURL& opener_top_level_frame_url,