Bug 1454833 - Allow to use legacy keypress event behavior in hangouts.google.com r?smaug draft
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 18 Apr 2018 14:12:30 +0900
changeset 786954 3ea72126c1518f9211b93833fc33cd699441d5e5
parent 786953 28db2c96ac695ce77c532901f5431a18a1d44374
child 786955 e6e0794aaabd962b0309dab182ff44a32e47c855
push id107598
push usermasayuki@d-toybox.com
push dateTue, 24 Apr 2018 01:46:26 +0000
reviewerssmaug
bugs1454833
milestone61.0a1
Bug 1454833 - Allow to use legacy keypress event behavior in hangouts.google.com r?smaug hangouts.google.com is used Hangouts in Gmail window. In this window, shortcut keys are handled with keypress event for Gecko. Therefore, we need to add hangouts.google.com into the blacklist. MozReview-Commit-ID: 607imegrmwj
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -233,17 +233,17 @@ pref("dom.keyboardevent.dispatch_during_
 pref("dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content", true);
 // Blacklist of domains of web apps which are not aware of strict keypress
 // dispatching behavior.  This is comma separated list.  If you need to match
 // all sub-domains, you can specify it as "*.example.com".  Additionally, you
 // can limit the path.  E.g., "example.com/foo" means "example.com/foo*".  So,
 // if you need to limit under a directory, the path should end with "/" like
 // "example.com/foo/".  Note that this cannot limit port number for now.
 pref("dom.keyboardevent.keypress.hack.dispatch_non_printable_keys",
-     "docs.google.com,mail.google.com");
+     "docs.google.com,mail.google.com,hangouts.google.com");
 #else
 pref("dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content", false);
 #endif
 
 // Whether the WebMIDI API is enabled
 pref("dom.webmidi.enabled", false);
 
 // Whether to enable the JavaScript start-up cache. This causes one of the first