gecko-dev/widget/headless
Masayuki Nakano 0f9b3a05da Bug 1594215 - Make PuppetWidget::GetEditCommands() check mBrowserChild before using it r=smaug
The reason of the crash is, the window may have already been destroyed and
`PuppetWidget::mBrowserChild` was set to `nullptr` when synthesizing key event.

This patch makes `PuppetWidget::GetEditCommands()` check whether it's `nullptr`
and returns whether it's succeeded or not.  Therefore, `TextInputProcessor`
can throw exception in such case.

Differential Revision: https://phabricator.services.mozilla.com/D52308

--HG--
extra : moz-landing-system : lando
2019-11-08 11:32:51 +00:00
..
tests
HeadlessClipboard.cpp
HeadlessClipboard.h
HeadlessClipboardData.cpp
HeadlessClipboardData.h
HeadlessCompositorWidget.cpp
HeadlessCompositorWidget.h
HeadlessKeyBindings.cpp
HeadlessKeyBindings.h
HeadlessKeyBindingsCocoa.mm
HeadlessLookAndFeel.h
HeadlessLookAndFeelGTK.cpp Bug 1592389 - Rename Mozfield / Mozfieldtext to Field and Fieldtext r=emilio 2019-11-02 21:28:49 +00:00
HeadlessScreenHelper.cpp
HeadlessScreenHelper.h
HeadlessSound.cpp
HeadlessSound.h
HeadlessThemeGTK.cpp
HeadlessThemeGTK.h
HeadlessWidget.cpp Bug 1594215 - Make PuppetWidget::GetEditCommands() check mBrowserChild before using it r=smaug 2019-11-08 11:32:51 +00:00
HeadlessWidget.h Bug 1594215 - Make PuppetWidget::GetEditCommands() check mBrowserChild before using it r=smaug 2019-11-08 11:32:51 +00:00
HeadlessWidgetTypes.ipdlh
moz.build