Bug 985988, event handlers should update preventDefault flag similar way to event.preventDefault(), r=masayuki

--HG--
extra : rebase_source : f82af82dfd290fbba851eda5dceebcd1911ef72b