mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00

On Android we previously added a rendering path using the SurfaceControl API, in order to work around an Android OS bug when recovering from a GPU process crash. Unfortunately the Magnifier widget (shown when moving a text selection caret) does not work when rendering using SurfaceControl. This patch makes it so that we temporarily disable the SurfaceControl path when a text selection is active, allowing the Magnifier to work. Unfortunately this means that if a GPU process crash occurs while there is an active selection we will be unable to recover. Hopefully this turns out to be a relatively rare occurence. Differential Revision: https://phabricator.services.mozilla.com/D153454