Cherry-pick: [Android] Prevent re-entrance into ContentVideoView.exitFullscreen
Cherry-pick of Chromium crrev.com/r226859
BUG: 11057493
Original description:
For Android WebView, if app decides to call exitFullscreen from
onDestroyContentVideoView, then re-entering into exitFullscreen and
causing an infinite recursion.
Fix by moving the onDestroyContentVideoView to after removeSurfaceView.
The next time destroyContentVideoView in, onDestroyContentVideoView will
not be called since mVideoSurfaceView is already null.
Change-Id: I5c4de70d1fe34a82e3393ed7d9164555040f5919
1 file changed