Merge pull request #7003 from brave/exit-tab-fullscreen

exit tab fullscreen on destroy
This commit is contained in:
Cheng Zhao 2016-08-29 16:36:44 +09:00 коммит произвёл GitHub
Родитель 4e800e7fef 4532114965
Коммит b5dec9990e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -775,6 +775,8 @@ bool WebContents::OnMessageReceived(const IPC::Message& message) {
// be destroyed on close, and WebContentsDestroyed would be called for it, so
// we need to make sure the api::WebContents is also deleted.
void WebContents::WebContentsDestroyed() {
// clear out tab fullscreen state
ExitFullscreenModeForTab(web_contents());
// This event is only for internal use, which is emitted when WebContents is
// being destroyed.
Emit("will-destroy");