[M108 Migration] Support callback for customer app error page. 98/288898/13
authorfeifei08.liu <feifei08.liu@samsung.com>
Fri, 24 Feb 2023 07:11:33 +0000 (15:11 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 2 Mar 2023 08:14:56 +0000 (08:14 +0000)
commit1eff25672826007563a9cdfcc8cf544118ac476c
tree2b30a5ad2d00faf788c81e5e9bda66fbd87752cd
parent2bad70c47f32ef2310f545d2ad7b303b9efe91b1
[M108 Migration] Support callback for customer app error page.

Currently WebBrowser load customer error page with below apis:
  callback "load,error"
  ewk_view_html_string_load
  ewk_view_html_string_override_current_entry_load
With these, it cannot meet all case in WebBrowser.
Customer Error Page will be stored as an independent entry.
It will cause issues related with navigation back/forward or reload.

Implement ewk_view_error_page_load_callback_set for app.
Interpose on the stage of NavigationThrottleEfl::WillFailRequest.
And pass customer error page in here.

For this implementation, customer error page will not store in navigation entry.

Currently, this change is supported for WebBrowser.

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

Change-Id: I5dd1ac7bbac95b2c3456c35dbe569cf231aafef4
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
tizen_src/ewk/efl_integration/browser/navigation_throttle_efl.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/eweb_view.h
tizen_src/ewk/efl_integration/public/ewk_view.cc