Closed
Bug 1292053
Opened 8 years ago
Closed 4 years ago
[e10s] ALT keys ignore prevent default
Categories
(Core :: XUL, defect, P2)
Tracking
()
People
(Reporter: r.chrzanowski, Assigned: masayuki)
References
()
Details
Attachments
(1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41
Steps to reproduce:
1. Open a webpage with JS code
addEventListener('keydown', function(e){
console.log(e.keyCode);
if(e.keyCode == 114 || e.keyCode == 118|| e.keyCode == 121|| e.keyCode == 122 || e.keyCode == 18){
console.log('prevent');
e.preventDefault();
}
}, true)
2. Press keys listed in if() parenthesis
Actual results:
Some keys ignore e.preventDefault. (F7 - 118; F10 - 121; alt - 18)
Other keys are prevented from running their default action (F3 - 114; F10 - 122)
Expected results:
All keys should have been prevented from running their default action.
Or is it an intended change in Firefox 48?
Reporter | ||
Updated•8 years ago
|
Component: Untriaged → Keyboard Navigation
Reporter | ||
Comment 1•8 years ago
|
||
Sorry, bad diagnosis again,
Summary: ALT, F7 and F10 keys ignore prevent default → [e10s] ALT, F7 and F10 keys ignore prevent default
Version: 48 Branch → 49 Branch
Reporter | ||
Comment 2•8 years ago
|
||
Sorry, bad diagnosis again, it seems to just affect multiprocess windows in e10s...
Comment 3•8 years ago
|
||
Using F7 as an example (implemented as a system keypress <handler> in browser.xml), this handler is called before the keydown listener on the page. Masayuki should be able to investigate this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 4•8 years ago
|
||
Hmm, I'm working on similar bug of <key> elements at bug 1257617.
However, I have no idea to do similar fix for normal key event handler of JS. I guess that we need to add an API to wait a reply from content process and listen "test keydown" event which will be added by bug 1257617.
Depends on: 1257617
Assignee | ||
Comment 5•8 years ago
|
||
I recommend that if it's possible keyboard event handlers in chrome should use XUL <key> elements as far as possible. Using normal keyboard event listeners will increase the implementation cost.
Comment 6•8 years ago
|
||
Both <key> elements and <handler event="key..."> go through nsXBLWindowKeyHandler so we should be able to have the same or similar fix for both no?
Also, I didn't investigate the other keys mentioned in this bug (F10 and Alt) which I suspect has to do with the way accesskeys and menus have a complex interaction.
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Neil Deakin from comment #6)
> Both <key> elements and <handler event="key..."> go through
> nsXBLWindowKeyHandler so we should be able to have the same or similar fix
> for both no?
Oh, really? If so, it's very good news to me. Then, this must be fixed by bug 1257617 too.
Updated•8 years ago
|
tracking-e10s:
--- → +
Priority: -- → P2
Assignee | ||
Comment 9•7 years ago
|
||
F10 key will be fixed by bug 1347351.
Assignee | ||
Comment 10•7 years ago
|
||
Hmm, I can confirm the Alt key issue. But I cannot reproduce F7 key issue. Was the implementation was changed?
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 11•7 years ago
|
||
Okay, we should treat only Alt key handling here. Please file a new bug if you still see this bug with F7.
Component: Keyboard Navigation → XP Toolkit/Widgets: Menus
Product: Firefox → Core
Summary: [e10s] ALT, F7 and F10 keys ignore prevent default → [e10s] ALT keys ignore prevent default
Version: 49 Branch → Trunk
Assignee | ||
Comment 12•7 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Comment 14•7 years ago
|
||
Comment on attachment 8886634 [details]
Bug 1292053 - nsMenuBarListener::KeyDown() and nsMenuBarListener::KeyUp() should wait reply even from remote process if it's necessary
Canceling the review until fixing bug 1292053.
Attachment #8886634 -
Flags: review?(bugs)
Assignee | ||
Comment 15•7 years ago
|
||
Comment on attachment 8886634 [details]
Bug 1292053 - nsMenuBarListener::KeyDown() and nsMenuBarListener::KeyUp() should wait reply even from remote process if it's necessary
This caused the new orange. Sorry for the bug spam.
Attachment #8886634 -
Flags: review-
Assignee | ||
Updated•7 years ago
|
Attachment #8886634 -
Attachment is obsolete: true
Comment 16•6 years ago
|
||
Masayuki, this is the bug I mentioned yesterday about not being able to prevent Alt from triggering the menu, even on keyup.
Assignee | ||
Comment 17•6 years ago
|
||
Ah, I forgot this bug...
Updated•6 years ago
|
Component: XP Toolkit/Widgets: Menus → XUL
Comment 18•5 years ago
|
||
Are there any plans to get this fixed? My webapp utilizes the standard pan & zoom modifier keys (alt, ctrl, shift), but these modifiers are made inconsistent by the menu being triggered onkeyup
.
Assignee | ||
Comment 19•4 years ago
|
||
Resetting assignee which I don't work on in this several months.
Assignee: masayuki → nobody
Status: ASSIGNED → NEW
Comment 20•4 years ago
|
||
This might be related to #1574057.
Assignee | ||
Comment 21•4 years ago
|
||
Will be fixed by the patch for bug 1335347.
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Depends on: 1335347
OS: Unspecified → Windows
Hardware: Unspecified → Desktop
Assignee | ||
Comment 23•4 years ago
|
||
This was fixed by bug 1335347 and it contains a test for this case.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox83:
--- → wontfix
status-firefox84:
--- → wontfix
status-firefox85:
--- → fixed
status-firefox-esr78:
--- → wontfix
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•