Support multiple webkit context on wrt-core
Existing wrt-core considered only one webkit context on one UI process.
In case of webapp, this was enough to handle webapp, but not other usage of wrt-core like web-provider.
Web-provider that handles web-liveboxes can have one UI process and multiple Web Processes.
From now on, CoreModule handle special jobs that are processed process-widely once like attaching database.
So CoreModule continues to be used as singleton instance.
But created RunnableWidgetObject instance has one Ewk Context, that is matched to specific Web Process.
One Ewk Context may be shared with several RunnableWidgetObject instances.
But in this case, the Ewk Context's setting includeing callbacks can be overwritten due to internal webkit implementation.
Web-provider with multiple Ewk Contextes should consider this.
If an executable(like wrt-client) linking libwrt-core create one Ewk_Context itself, the executable should remove the Ewk_Context explicitly on termination.
Because libwrt-core doesn't remove Ewk_Context passed from executable, and remove only Ewk_Context created internally by RunnableWidgetObject.
[Issue#] N/A
[Problem] Existing libwrt-core considers only one webkit context on one UI process
[Cause] In webapp case, this was enough to existing implementation.
But wrt-provider that links libwrt-core and may have multiple Ewk Context couldn't support livebox requirements
[Solution] WRT code is modified to support multiple webkit context
Change-Id: Ibc70f882e317d2cb07650aa9dc028fcb605d03b5
13 files changed: