verbose_mode_(false),
lang_changed_mode_(false),
is_terminate_called_(false),
+ is_close_page_called_(false),
ewk_context_(
ewk_context_new_with_injected_bundle_path(INJECTED_BUNDLE_PATH)),
has_ownership_of_ewk_context_(true),
debug_mode_(false),
verbose_mode_(false),
is_terminate_called_(false),
+ is_close_page_called_(false),
ewk_context_(context),
has_ownership_of_ewk_context_(false),
window_(window),
}
void WebApplication::Terminate() {
+ // Just process closing page once.
+ if (is_terminate_called_ || is_close_page_called_)
+ return;
+
is_terminate_called_ = true;
ClosePage();
}
void WebApplication::ClosePage() {
LOGGER(DEBUG);
+ is_close_page_called_ = true;
int valid_evas_object_count = 0;
auto it = view_stack_.begin();
bool verbose_mode_;
bool lang_changed_mode_;
bool is_terminate_called_;
+ bool is_close_page_called_;
Ewk_Context* ewk_context_;
bool has_ownership_of_ewk_context_;
NativeWindow* window_;