Fix most defaultPrevented test failures (#2172)