Closed
Bug 735113
Opened 13 years ago
Closed 13 years ago
Don't allow content scripts to override core keyboard shortcuts (e.g. Control-W and Control-T)
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 380637
People
(Reporter: mbrubeck, Unassigned)
References
()
Details
(Keywords: ux-control, Whiteboard: [Snappy])
Steps to reproduce:
1. Navigate to this URL: data:text/html,<body onkeydown="event.preventDefault()">
2. Press control-W (or command-W).
Expected results: The tab is closed.
Actual results: Nothing happens.
Firefox allows pages to capture and preventDefault on any almost any keyboard event, except for a few shortcuts like ctrl-f4 and ctrl-pageup/pagedown. Content can override several core UI commands like ctrl-T and ctrl-W.
For comparison, Chrome does not allow content to override ctrl-T, ctrl-W, or ctrl-N. If I understand correctly, it does not even dispatch those events to content pages. In addition to user control, this also helps guarantee responsiveness of those commands:
https://code.google.com/p/chromium/issues/detail?id=5496
Updated•13 years ago
|
Component: Keyboard Navigation → DOM: Events
Product: Firefox → Core
QA Contact: keyboard.navigation → events
Comment 1•13 years ago
|
||
See also bug 78414, which has been around approximately forever, and bug 380637, which AFAICT this is an exact dupe of.
Comment 2•13 years ago
|
||
it's a dupe of bug 380637, thanks Chris !
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•