crosswalk-project/crosswalk — pull request #1115 by huningxin (2013-11-12 09:52:51+00:00)
Title: [Android] Fix XWalk crash issue when exiting if remote debugging is enab...

...led.

The root cause is that DevToolsHttpHandlerImpl::Stop has been called before
DevToolsClientHostImpl::InspectedContentsClosing. In that case, the thread
is released and message loop is set to null, so XWalk crashes.

The fix is to change the teardown sequence to destory view first, then shutdown
remote debugging server.

BUG=https://crosswalk-project.org/jira/browse/XWALK-312