DescriptionEnsure fullscreen mode is exited for same-site navigations.
Resolves a fullscreen-within-tab bug where navigation using the Back button doesn't exit fullscreen. This would result in the browser (WebContentsDelegate) erroneously showing a page with the "fullscreen in your tab" UI layout.
Furthermore, this change will cause the previous renderer to be notified that it has been force-exited from fullscreen. Should the user revisit using the Back/Forward/History actions, the renderer will therefore be in the correct non-fullscreen state.
Added a new unit test to web_contents_impl_unittest.cc to make sure this problem doesn't regress.
BUG=356951, 347232
TEST=Repro steps in bug 356951 result in fullscreen exit.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261087
Patch Set 1 #Patch Set 2 : Better approach: DidNavigateMainFramePreCommit #
Total comments: 6
Patch Set 3 : Addressed creis' comments on PS2. #Patch Set 4 : rebase #
Messages
Total messages: 16 (0 generated)
|