Unexpectedly, post callbacks can be fired from webapi worker thread
after its wrt::api::XwalkExtension instance was destroyed.
Thus, this will unset the post callbacks on unloadInstance API.
Related chromium-efl patch:
https://review.tizen.org/gerrit/272695/
Change-Id: I82e5bdfc48bed4b4d208ca6dd485bdffd1c31a0d
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
}
export let cleanup = () => {
+ for (const name in extensions_) {
+ extensions_[name].unloadInstance();
+ }
delete global.tizen;
instance = undefined;
}