зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188425 - Add a pref to allow insecure text input, thereby avoiding crashes at [ChildView keyDown:] in non-release builds. r=spohl
This commit is contained in:
Родитель
2f210910eb
Коммит
bfedf00a51
|
@ -4878,7 +4878,14 @@ pref("intl.collation.mac.use_icu", true);
|
|||
// Enable NSTextInput protocol for use with IMEs that have not
|
||||
// been updated to use the NSTextInputClient protocol.
|
||||
pref("intl.ime.nstextinput.enable", false);
|
||||
|
||||
#if !defined(RELEASE_BUILD) || defined(DEBUG)
|
||||
// In non-release builds we crash by default on insecure text input (when a
|
||||
// password editor has focus but secure event input isn't enabled). The
|
||||
// following pref, when turned on, disables this behavior. See bug 1188425.
|
||||
pref("intl.allow-insecure-text-input", false);
|
||||
#endif
|
||||
#endif // XP_MACOSX
|
||||
|
||||
// Enable meta-viewport support in remote APZ-enabled frames.
|
||||
pref("dom.meta-viewport.enabled", false);
|
||||
|
|
|
@ -5442,7 +5442,8 @@ static int32_t RoundUp(double aDouble)
|
|||
}
|
||||
|
||||
#if !defined(RELEASE_BUILD) || defined(DEBUG)
|
||||
if (mGeckoChild && mTextInputHandler && mTextInputHandler->IsFocused()) {
|
||||
if (!Preferences::GetBool("intl.allow-insecure-text-input", false) &&
|
||||
mGeckoChild && mTextInputHandler && mTextInputHandler->IsFocused()) {
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
NSWindow* window = [self window];
|
||||
NSString* info = [NSString stringWithFormat:@"\nview [%@], window [%@], window is key %i, is fullscreen %i, app is active %i",
|
||||
|
|
Загрузка…
Ссылка в новой задаче