Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Exit of fullscreen view when a tab is closed #2618

Closed
romuloalves opened this issue Jul 20, 2016 · 25 comments
Closed

Exit of fullscreen view when a tab is closed #2618

romuloalves opened this issue Jul 20, 2016 · 25 comments
Milestone

Comments

@romuloalves
Copy link

Describe the issue you encountered: When I am with Brave in fullscreen view and close a tab, Brave exits of fullscreen.

Expected behavior: Just close the tab and don't exit of fullscreen view.

  • Platform (Win7, 8, 10? macOS? Linux distro?): macOS
  • Brave Version: 0.11.1
  • Steps to reproduce:
    1. Enter in fullscreen view
    2. Close a tab
@bbondy
Copy link
Member

bbondy commented Jul 21, 2016

We had the opposite request in the past. Can you describe a use case? Do any other browsers do this?

@romuloalves
Copy link
Author

I don't know if I expressed myself correctly.
I think what is happening is a problem.

I'm with Brave open in fullscreen view:
Brave in fullscreen view

I just close a tab:
Tab that will be closed

And Brave exits from fullscreen view by itself:
Brave exists fullscreen by itself

No other browser has this behavior.

@molinadavid
Copy link

I can confirm the same and it should be a bug, it was introduced on version 0.11.1

Brave: 0.11.1
Electron: 1.2.7
libchromiumcontent: 51.0.2704.103
V8: 5.1.281.65
Node.js: 6.1.0
Update Channel: dev

whenever you have the browser on full screen mode (distraction free) "ctrl+command+f" and close a tab from the browser the browser itself will trigger the event to go out of full screen mode and back into normal desktop mode.

The opposite is not true, if I close a tab while on desktop mode it will not enter full screen mode.

@benmosher
Copy link
Contributor

benmosher commented Jul 21, 2016

from #2404:

Expected behavior:
I expect Brave to revert into non fullscreen mode or whatever mode I had before.

(emphasis mine)

I think the point of this new issue that closing a tab should not exit fullscreen mode unless the current tab (only) promoted the window to fullscreen. And it's not clear to me how you could even know that.

I think 8cded9c should be reverted until it can be made more targeted to apply only to #2404.

I use Brave in fullscreen (OSX, split screen with two windows) exclusively, and now I can't ever close tabs without having to drag it back to a fullscreen space. 😓

benmosher added a commit to benmosher/browser-laptop that referenced this issue Jul 21, 2016
@benmosher
Copy link
Contributor

BTW, I can confirm that at least Opera doesn't always leave fullscreen if any tab is closed.

@bbondy
Copy link
Member

bbondy commented Jul 21, 2016

I think maybe html5 (e.g. video) fullscreen should exit full screen and full screen mode at the browser level should not.
Can someone check with how chrome works with the 2 different types of fullscreen?
See #2404

@benmosher
Copy link
Contributor

Chrome exits fullscreen if it was prompted by YouTube, but not in normal fullscreen.

Seems like ctrl-w should close the tab + trigger the same event asesc when in a full-screen video. That would match Chrome and satisfy both this issue and #2404.

@bbondy
Copy link
Member

bbondy commented Jul 21, 2016

that sounds best, thanks

benmosher added a commit to benmosher/browser-laptop that referenced this issue Jul 22, 2016
benmosher added a commit to benmosher/browser-laptop that referenced this issue Jul 22, 2016
bbondy added a commit that referenced this issue Jul 23, 2016
Revert "Exit full screen on tab close" (fixes #2618)
@jikkujose
Copy link

I am also confirming the issue. Simply closing a tab takes the browser off from full screen mode.

@bbondy
Copy link
Member

bbondy commented Jul 24, 2016

closing since this is fixed and will be in the next version.

@luixxiul
Copy link
Contributor

Is this only for macOS? I cannot confirm this was fixed for Windows 7

#2768

@luixxiul luixxiul reopened this Jul 29, 2016
@srirambv
Copy link
Collaborator

Issue confirmed on 0.11.2 Beta1 for Windows x64 install. Closing of any tab exits full screen and back to restore size.

@benmosher
Copy link
Contributor

It appears my commits are not present in the tag for v0.11.2dev-beta1: https://github.com/brave/browser-laptop/compare/v0.11.2dev-beta1...benmosher:keep-fullscreen?expand=1

I can't speak for whether they will fix Windows as well, but given the little familiarity I have now with the code, I think odds are good.

@benmosher
Copy link
Contributor

Actually, the commits/changes don't appear to be present on dev-channel anymore, either?

@benmosher
Copy link
Contributor

So my PR was against the dev-channel branch (#2631), was that wrong? did it get reset to master at some point?

I can rebase against wherever and resubmit if needed, commits are on benmosher:keep-fullscreen.

@luixxiul
Copy link
Contributor

I think it's merged to master, @bbondy ?

@benmosher
Copy link
Contributor

Changes don't appear to be present on master, just looking in the files. Also, commits aren't there either.

@bbondy
Copy link
Member

bbondy commented Jul 29, 2016

Oh I didn't notice that @benmosher, I'll try to watch that in case a contributor does that again.
dev-channel is not meant for doing PRs to, it gets reset to master every release.

@bbondy
Copy link
Member

bbondy commented Jul 29, 2016

I'll pull it in now.

@bbondy
Copy link
Member

bbondy commented Jul 29, 2016

into master+dev-channel and it'll be in the next respin.

@bbondy bbondy closed this as completed in 90dcd8a Jul 29, 2016
bbondy pushed a commit that referenced this issue Jul 29, 2016
…Screen, via webActions

Fixes #2404 without compromising #2618.
@bbondy
Copy link
Member

bbondy commented Jul 29, 2016

90dcd8a
af7ffb1

@benmosher
Copy link
Contributor

Ah, sorry about that!

When I based the first PR on master after forking from the v0.11.1dev tag, there were some extra commits on dev-channel that weren't on master. Will remember for next time. 😅

@bbondy
Copy link
Member

bbondy commented Jul 29, 2016

np thanks for noticing!

@kingscott
Copy link

I noticed this today as well. I closed my issue, but I was able to repro.

@alexwykoff
Copy link
Contributor

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants