Commit Graph

17 Commits

Author SHA1 Message Date
Tim Huang
e21040baac Bug 1222285 - Part 1: Spoofing the keyboard event to mimc a certain keyboard layout according to the content-language of the document when 'privacy.resistFingerprinting' is true. r=arthuredelstein,masayuki,smaug
This patch makes Firefox to spoof keyboardEvent.code, keyboardEvent.keycode and
modifier states, for 'Shift', 'Alt', 'Control' and 'AltGraph', when 'privacy.resistFingerprinting'
is true. Firefox will spoof keyboard events as a certain keyboard layout according
to the content language of the document, for example, we use US English keyboard for
English content. Right now, it only supports English contents, we will add more
support for more languages later. The spoofing only affects content, chrome
can still see real keyboard events.

MozReview-Commit-ID: 40JPvwLmMMB
2017-08-29 11:33:27 +08:00
Aryeh Gregor
aa778c0f48 Bug 1387828 - Reinstate support for initKeyboardEvent; r=smaug
https://github.com/w3c/uievents/issues/112

This is supported by all other UAs.  In the past we had compatibility
problems when trying to add support, but it seems these might be fixed
if we make all arguments optional beyond the first.

The interface chosen for the method is from the spec, which has been
updated to match Chrome.  This is also very similar to WebKit, but the
final four arguments are different from IE.

MozReview-Commit-ID: 36AeX1JwJTt
2017-08-06 16:52:39 +03:00
Masayuki Nakano
ea51c0ebe3 Bug 1352949 Remove dom.keyboardevent.code.enabled r=smaug
KeyboardEvent.code has already been enabled and it's already available with Chrome too. So, we won't disable it.

MozReview-Commit-ID: LLlAoMebtsU
2017-04-03 18:04:27 +09:00
chunminchang
c9f2ac2bd1 Bug 1110030 - part5 - Expose KeyboardEventInit dictionary. r=masayuki, r=smaug 2016-03-15 13:46:29 +08:00
Masayuki Nakano
5f6c4c9612 Bug 1124608 Support D3E EventModifierInit r=smaug 2015-04-13 16:16:13 +09:00
Masayuki Nakano
7df093fe7d Bug 936313 part.1 Remove DOM_KEY_LOCATION_MOBILE and DOM_KEY_LOCATION_JOYSTICK r=smaug+mwu+cpeterson, sr=smaug 2015-01-28 22:36:53 +09:00
Boris Zbarsky
565f88be1c Bug 1087378. Stop using WindowProxy for arguments in Web IDL; Window expresses what's going on more clearly. r=peterv 2014-10-29 15:06:20 -04:00
Ryan VanderMeulen
b12372e0e1 Backed out changeset 4b4c7462ec89 (bug 1087378) for bustage.
CLOSED TREE
2014-10-29 16:27:15 -04:00
Boris Zbarsky
3f104c9fbb Bug 1087378. Stop using WindowProxy for arguments in Web IDL; Window expresses what's going on more clearly. r=peterv 2014-10-29 15:06:20 -04:00
Masayuki Nakano
6a3eac713f Bug 865649 part.1 Implement KeyboardEvent.code r=smaug 2014-05-25 11:08:58 +09:00
Masayuki Nakano
2ff0cc40d5 Bug 999645 Cancel implementing KeyboardEvent.initKeyboardEvent() because it completely breaks feature detection in web apps r=smaug 2014-04-25 13:16:20 +09:00
Masayuki Nakano
783ce29390 Bug 930893 part.2 Implement KeyboardEvent.initKeyboardEvent() r=smaug 2014-04-14 15:37:48 +09:00
Masayuki Nakano
7d2a67ea0a Bug 930893 part.1 Implement constructor of KeyboardEvent r=smaug 2014-04-14 15:37:47 +09:00
Masayuki Nakano
1846735823 Bug 993234 part.1 Implement KeyboardEvent.isComposing r=smaug 2014-04-10 16:11:36 +09:00
Masayuki Nakano
954f817bb9 Bug 600117 part.1 Implement KeyboardEvent.repeat r=smaug, sr=jst 2013-11-07 20:17:32 +09:00
Masatoshi Kimura
28c9e809ac Bug 871786 - Separate D2E KeyEvent constants and a method from KeyboardEvent. r=smaug, bz 2013-05-19 10:28:47 +09:00
Masatoshi Kimura
7e8a0f8ad7 Bug 871153 - Rename KeyEvent back to KeyboardEvent. r=smaug 2013-05-12 14:08:37 +09:00