[Webkit-unassigned] [Bug 91285] confirm() pauses thread execution but doesn't prevent new, default, events from firing.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jul 14 13:24:14 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=91285
--- Comment #4 from ryan at ryanalbrecht.ca 2012-07-14 13:24:14 PST ---
(From update of attachment 152338)
><!DOCTYPE html>
><html>
><body>
> <form>
> <input type="text" />
> </form>
>
> <script>
> document.getElementsByTagName('INPUT')[0].addEventListener('keydown', function(evt) {
> evt.preventDefault();
> evt.stopPropagation();
> confirm('until this is dismissed, no code should run');
> });
>
> document.getElementsByTagName('FORM')[0].addEventListener('submit', function(evt) {
> console.error('submitted', evt);
>
> evt.preventDefault();
> });
> </script>
></body>
></html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list