Closed
Bug 636196
Opened 15 years ago
Closed 15 years ago
If window.onkeypress returns false, +R does not reload the page
Categories
(Camino Graveyard :: Accessibility, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: contact, Unassigned)
Details
Attachments
(1 file)
|
310 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en; rv:1.9.2.15pre) Gecko/20110223 Camino/1.6 (like Firefox/3.6.15pre)
Build Identifier: Version 2.1a2pre (1.9.2.15pre 20110223001624)
If a page contains the following code +R does not reload the page.
window.onkeypress=function() {
return false;
};
I think this can be an accessibility problem. (The user might not understand why it is not working.)
Reproducible: Always
+T and +W work.
| Reporter | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
Welcome to the internet of the future :(
The new standard behavior for browsers is to allow pages to win at handling most menu shortcuts. We protect only a small set of commands that we feel are most critical (and it's a larger set than other browsers, I believe). We fought against this early on, but it's become the standard now, and letting our menus win for everything now would cause a lot of compat issues for things that work in all other browsers.
The solution in general is to press command-L (or T, or W, or one of the other protected keys that moves focus out of the page) to escape pages that do things like this.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Comment 3•15 years ago
|
||
(Also, the solution is to yell at pages that collide with shortcuts that you think they shouldn't.)
You need to log in
before you can comment on or make changes to this bug.
Description
•