To prevent decreasing "plugin_session_count",
because the context is not created if it is a remote URL.
Change-Id: I5a85ee2794bcb3b454ec937859435e62cd12d6ff
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
void XWalkExtensionRendererController::WillReleaseScriptContext(
v8::Handle<v8::Context> context) {
v8::Context::Scope contextScope(context);
+ XWalkModuleSystem* module_system = XWalkModuleSystem::GetModuleSystemFromContext(context);
+ if (module_system) {
+ plugin_session_count--;
+ LOGGER(DEBUG) << "plugin_session_count : " << plugin_session_count;
+ }
XWalkModuleSystem::ResetModuleSystemFromContext(context);
- plugin_session_count--;
- LOGGER(DEBUG) << "plugin_session_count : " << plugin_session_count;
}
void XWalkExtensionRendererController::OnReceivedIPCMessage(