Browser-laptop: Exit of fullscreen view when a tab is closed

Created on 20 Jul 2016  路  25Comments  路  Source: brave/browser-laptop

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

Qchecked

Most helpful comment

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

All 25 comments

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

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.

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.

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. 馃槗

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

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 https://github.com/brave/browser-laptop/issues/2404

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.

that sounds best, thanks

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

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

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

2768

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

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.

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

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.

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

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

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.

I'll pull it in now.

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

90dcd8ab8a4f01c54db3d5908c0994f862b0363e
af7ffb146bdcdac78d477e961f6ad646eda4d451

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. 馃槄

np thanks for noticing!

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

Looks good!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luixxiul picture luixxiul  路  3Comments

antiroyalty picture antiroyalty  路  3Comments

jonathansampson picture jonathansampson  路  3Comments

briannyeko picture briannyeko  路  3Comments

bsclifton picture bsclifton  路  3Comments