[Title] Terminate process when didProcessCrash is not controlled.
[Issue#] S1-8073
[Problem] facebook screen NG and can't find anything but 'back' button.
[Cause] WebProcess is crashed but app does not handle crash event.
[Solution] As a default, exit when "process,crashed" is not handled.
Change-Id: I872079c029946b4da148d1704b3adc8506f9d369
evas_object_smart_callback_call(ewkView, "load,progress", &progress);
}
-void ewkViewProcessCrashed(Evas_Object* ewkView)
+void ewk_view_process_crashed(Evas_Object* ewkView)
{
- evas_object_smart_callback_call(ewkView, "process,crashed", 0);
+ bool handled = false;
+ evas_object_smart_callback_call(ewkView, "process,crashed", &handled);
+
+ if (!handled)
+ exit(0);
}
#if ENABLE(TIZEN_SQL_DATABASE)
static void processDidCrash(WKPageRef page, const void* clientInfo)
{
Evas_Object* ewkView = static_cast<Evas_Object*>(const_cast<void*>(clientInfo));
- ewkViewProcessCrashed(ewkView);
+ ewk_view_process_crashed(ewkView);
}
void ewkViewLoaderClientAttachClient(Evas_Object* ewkView)
void ewkViewDidFirstVisuallyNonEmptyLayout(Evas_Object* ewkView);
void ewkViewDidReceiveAuthenticationChallenge(Evas_Object* ewkView, Ewk_Auth_Challenge* authChallenge);
void ewkViewLoadProgressChanged(Evas_Object* ewkView, double progress);
-void ewkViewProcessCrashed(Evas_Object* ewkView);
+void ewk_view_process_crashed(Evas_Object* ewkView);
void ewkViewCustomizeContextMenu(Evas_Object* ewkView, Ewk_Context_Menu* menu);
void ewkViewCustomContextMenuItemSelected(Evas_Object* ewkView, Ewk_Context_Menu_Item* item);
uint64_t ewkContextGetDatabaseQuota(Ewk_Context* ewkContext);