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

Useful context menu that includes "Reopen Last Closed Tab" should be available across entire tab bar #8303

Closed
philkloose opened this issue Apr 13, 2017 · 9 comments · Fixed by #8320

Comments

@philkloose
Copy link
Contributor

philkloose commented Apr 13, 2017

  • Did you search for similar issues before submitting this one? Yes

  • Describe the issue you encountered: I'm constantly right-clicking on the tab bar (to the right of the open tabs to try and reopen last closed tab. At the moment, we get a context menu that doesn't seem to fit the context. In opinion, the option to reopen closed tabs should be available from here and possibly even more options.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Win 7

  • Brave Version (revision SHA):

Brave: 0.14.1
rev: 3de60d5
Muon: 2.57.8
libchromiumcontent: 57.0.2987.133
V8: 5.7.492.71
Node.js: 7.4.0
Update Channel: dev
os.platform: win32
os.release: 6.1.7601
os.arch: x64

  • Steps to reproduce:

    1. Open a tab.
    2. Close the tab.
    3. Right-click to the right of your open tabs to get a context menu and notice that the options don't make sense contextually.
  • Actual result:
    no-reopenlasttab

  • Expected result:
    image

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Yes

  • Is this an issue in the currently released version?
    Yes

  • Can this issue be consistently reproduced?
    Yes

@philkloose
Copy link
Contributor Author

I attempted to implement this.
#8320

bsclifton pushed a commit to philkloose/browser-laptop that referenced this issue Apr 27, 2017
Added options for tabsToolbar context menu

Fixes brave#8303

Auditors: @bsclifton
@bsclifton bsclifton changed the title "Reopen Last Closed Tab" should be available across entire tab bar Useful context menu that includes "Reopen Last Closed Tab" should be available across entire tab bar Apr 27, 2017
bsclifton pushed a commit to philkloose/browser-laptop that referenced this issue Apr 27, 2017
Added options for tabsToolbar context menu

Fixes brave#8303

Auditors: @bsclifton
@bsclifton bsclifton added this to the 0.15.1 milestone Apr 27, 2017
@srirambv
Copy link
Collaborator

srirambv commented May 3, 2017

This is not reliable on Windows. Out of 20-30 right clicks I got the expected menu once. Right click outside the new tab button shows window context menu. Right click on the new tab shows new tab context menu but second right click shows the same window context menu
8303 1

@srirambv srirambv reopened this May 3, 2017
@philkloose
Copy link
Contributor Author

philkloose commented May 3, 2017

My experience is similar but I have since trained myself only to click at the bottom of the tab toolbar which works 100% of the time for me. I've always chalked it up to the more generalized problem of the hitboxes (not sure what else to call them) being off. For me, in Windows 7, it happens in the other toolbars (URL, Bookmarks, Tabs) too. In the URL bar, I have to click in the upper half or it doesn't allow me to edit text. The problems are exacerbated if my window is maximized. I don't have near the requisite knowledge to start fixing this, but I think it's related to issue #7641.

@philkloose
Copy link
Contributor Author

@srirambv Hmm, I just built the latest preview and it appears you're right. The hitbox is even smaller than before when I was testing it. I have no idea why it's so off, but you need to click in approx the bottom 5px of the tab bar to trigger it properly.

@alexwykoff alexwykoff modified the milestones: 0.15.4, 0.15.3 May 5, 2017
@bbondy bbondy removed this from the 0.15.4 milestone May 5, 2017
@bsclifton
Copy link
Member

bsclifton commented May 5, 2017

@philkloose the milestone was removed from this one because the change ended up being reverted

Definitely my fault for not testing on macOS before merging ☹️ And regarding the hitboxes not working on Windows, maybe the hitbox is different when maximized? Would be good to know

However, if you wanted to try this one again, you can cherry pick in the following two commits into a branch:

git checkout master
git pull
git checkout -b add-reopen-menu
git cherry-pick e2706d795670c9ec894e3030029b8affd1b56e4a
git cherry-pick 6ebb6d29e1c56cf24ed3af66ac3aa77ac784555d

At that point, you'll have all the code which was in your PR. Then, the remaining two tasks are:

  1. Ensure right clicking anywhere in the tab toolbar works for Windows
  2. Ensure menu isn't shown after right clicking the + button in the tab toolbar on macOS

bsclifton added a commit that referenced this issue Jun 19, 2017
Problem is the draggable attribute prevents right clicking
@bsclifton
Copy link
Member

Fixing this properly would require either making the tabs bar non-draggable OR solving #4244

@bsclifton
Copy link
Member

Blocked by #4244

@bsclifton bsclifton removed this from the Triage Backlog milestone Aug 7, 2018
@bsclifton
Copy link
Member

Closing as wontfix since we won't be able to address #4244, which blocks this on Windows. This is resolved in brave-core
screen shot 2018-08-06 at 5 51 24 pm

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

Successfully merging a pull request may close this issue.

7 participants