Open Bug 717248 Opened 13 years ago Updated 2 years ago

Pressing backspace on alert() modal closes alert and triggers "back" functionality without firing onkeydown

Categories

(Toolkit :: Content Prompts, defect)

All
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dahjelle.mozilla.org, Unassigned)

Details

Attachments

(1 file)

Attached file backspace.html
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7 Steps to reproduce: STEPS TO REPRODUCE: 1. Open the attached test case. 2. Press backspace while the alert() modal is on the screen. Actual results: Backspace both dismissed the modal *and* triggered the "back" functionality of the browser. (Presuming browser.backspace_action is 0, as is the default on Windows.) Additionally, the onkeydown handler on the page is never fired. Expected results: I see at least two possibilities. 1) Backspace shouldn't close the modal. This could be a standard shortcut on some platforms, though. 2) At the very least, the key event should not trigger the back functionality until after the modal is closed and the page has a chance to handle the key event.
OS: Linux → Windows 7
Hardware: x86_64 → All
I should also mention: this is similar to https://bugzilla.mozilla.org/show_bug.cgi?id=663515 and https://bugzilla.mozilla.org/show_bug.cgi?id=683932 in that the "prompt aborted by user" exception is generated in the console.
Attachment #587709 - Attachment mime type: text/plain → text/html
Confirmed on Mozilla/5.0 (Windows NT 5.1; rv:12.0a1) Gecko/20120109 Firefox/12.0a1 ID:20120109085652 I seem to recall there is a bug on this, but couldn't find it right now...
Component: Untriaged → General
Product: Firefox → Toolkit
QA Contact: untriaged → general
Version: 9 Branch → Trunk
Bulk move to Toolkit::Notifications and Alerts Filter on notifications-and-alerts-component.
Component: General → Notifications and Alerts
Severity: normal → S3
Component: Notifications and Alerts → Content Prompts
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: