Fix rp crash when iframe navigates to external url
authoryons.kim <yons.kim@samsung.com>
Thu, 24 Sep 2015 02:15:54 +0000 (11:15 +0900)
committeryons.kim <yons.kim@samsung.com>
Thu, 24 Sep 2015 09:31:35 +0000 (18:31 +0900)
commit19650d55640eecc394d8f2f6732ea51968a12036
tree2307ce120b99ab1e9384171d7427da76a8e1e337
parentf139945118c601efdfdf40c04eb17fe5a61efc18
Fix rp crash when iframe navigates to external url

XWalk tried to delete any XWalkModuleSystem whether it is set or not.

So, adds code about

1. Setting XWalkModuleSystem in v8::Context with null before checking
whether base_url is external or not in DynamicPlginStartSession()

2. Deleting XWalkModuleSystem after checking whether the XwalkModuleSystem
is not null in XWalkModuleSystem::ResetModuleSystemFromContext()
extensions/renderer/xwalk_module_system.cc
runtime/renderer/injected_bundle.cc