Last Comment Bug 749563 - Consumed Alt key (i.e., preventDefault() is called) causes to activate menubar
: Consumed Alt key (i.e., preventDefault() is called) causes to activate menubar
Product: Core
Classification: Components
Component: XP Toolkit/Widgets: Menus (show other bugs)
: Trunk
: x86_64 Windows 7
-- normal (vote)
: mozilla15
Assigned To: Masayuki Nakano [:masayuki]
Depends on:
Blocks: 708936 757330
  Show dependency treegraph
Reported: 2012-04-27 03:38 PDT by Masayuki Nakano [:masayuki]
Modified: 2013-02-08 08:39 PST (History)
1 user (show)
bugzillamozillaorg_serge_20140323: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch (5.23 KB, patch)
2012-05-08 18:08 PDT, Masayuki Nakano [:masayuki]
enndeakin: review+
Details | Diff | Splinter Review

Description User image Masayuki Nakano [:masayuki] 2012-04-27 03:38:32 PDT
1. Open the URL.
2. Press Alt key.

Then, the Alt keydown event is consumed by the blank page, but menu is activated. It shouldn't be activated by consumed event.

Alt+F works fine, it checks the defaultPrevented value.
Comment 1 User image Masayuki Nakano [:masayuki] 2012-05-08 18:08:07 PDT
Created attachment 622238 [details] [diff] [review]
Comment 2 User image Neil Deakin 2012-05-09 10:48:09 PDT
Comment on attachment 622238 [details] [diff] [review]

>+  result: function(testname) {
>+    ok(!document.getElementById("filemenu").openedWithKey, testname);
>+  },

Could you also add a line to check that the menu isn't open, so that an test failure will be caught here rather than at a later test. Same with the other test.
Comment 3 User image Masayuki Nakano [:masayuki] 2012-05-09 16:26:33 PDT
Comment 4 User image Ed Morley [:emorley] 2012-05-10 08:02:41 PDT

Note You need to log in before you can comment on or make changes to this bug.