Dispatch messages for hosted WebBrowser

Fix for cancel event