Ensure the address bar continues to show after dismissing WebVR.
When WebVR presentation exits, the address bar is sometimes hidden. This is because when we enter VR, the browser controls try to animate out to hidden. The animation doesn't actually render any frames because we block vsync. We were trying to make the controls visible by calling mActivity.getFullscreenManager().setPositionsForTabToNonFullscreen, which targets pretty low in the stack for whether the controls should be visible (for the next rendered frame), but higher level components still think the controls are not visible. We should call mTab.updateBrowserControlsState(BrowserControlsState.SHOWN, true); instead to mark the controls visible at a higher level in the stack so components throughout the stack agree on control visibility. BUG=715182 Review-Url: https://codereview.chromium.org/2903443002 Cr-Commit-Position: refs/heads/master@{#474007}
Showing
Please register or sign in to comment