modify sendEvent method

modify sendEvent()
use the sendEvent in askWebviewForBackPermission
fix conflict
Resolved conflict while merging with 0.3