+ // We should only see the modifier key in content if suppression is+ // active; otherwise we expect to see the "x" key instead.+ let expectedContentKey = suppressModifiers ? "x" : modifierKey;
It seems the comment does not match the code? We get "x" if the modifiers are suppressed and the modifier key otherwise (which is intended). So, s/active/not active/ ?
More importantly, the behavior of privacy.suppressModifierKeyEvents is dependent on the value for privacy.resistFingerprinting but the test does not take that into account. I think we should at least assume explicitly that the latter is true. It might be good, though, to test as well with the latter being false to make sure the code for legacy/trac#17009 (moved) is not kicking in even if privacy.suppressModifierKeyEvents is true.
d5481537329a7a77ab597f40892c7df83d0ffcc2
+ // Return a promise that resolves to the event when]
s/]//
legacy/trac#15646 (moved) takes care of more things than keyCode and shiftKey, e.g: code and loaction as well and Alt-key handling. What is with those?
All good comments and suggestions. I have made fixes to both patches to try to address all of these. Also, in writing the additional tests, I found a mistake in the KeyboardEvent patch, so I am including a fixup patch in this new branch:
All good comments and suggestions. I have made fixes to both patches to try to address all of these. Also, in writing the additional tests, I found a mistake in the KeyboardEvent patch, so I am including a fixup patch in this new branch: