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

New tab button can now show a dropdown #5696

Merged
merged 2 commits into from
Nov 17, 2016
Merged

New tab button can now show a dropdown #5696

merged 2 commits into from
Nov 17, 2016

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Nov 16, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fixes #4398
Fixes #1594

Auditors: @lucidNTR, @cezaraugusto, @jkup

This PR was originally by @lucidNTR; I adjusted a few things and then also added right click as a way to trigger the long press button. I went ahead and added webdriver tests for this functionality too.

screenshot

Here's what the new menu looks like (you can click and hold on the + or right click it)
screen shot 2016-11-16 at 4 31 20 pm

Because the right-click change was made to the LongPressButton control, the back and forward buttons get this change for free (they were already triggerable by click and hold):
screen shot 2016-11-16 at 4 31 42 pm

test plan

  1. Launch Brave and right click the new tab button "+"
  2. Verify that it shows New Private / New Session / New Window
  3. Cancel the menu and then click and hold the new tab button "+"
  4. After ~300ms, the menu should show up
  5. Cancel the menu again and navigate to Brave.com.
  6. Follow a few links so that you have a history, then hit back button.
  7. Confirm you can right click both the back/forward buttons to show the menu
  8. Cancel the menu and then click and hold each button to confirm the existing behavior works

lucidNTR and others added 2 commits November 16, 2016 16:27
…sButton

Fixes #1594

Auditors: @lucidNTR, @cezaraugusto, @jkup

Test Plan:
1. Launch Brave and right click the new tab button "+"
2. Verify that it shows New Private / New Session / New Window
3. Cancel the menu and then click and hold the new tab button "+"
4. After ~300ms, the menu should show up
5. Cancel the menu again and navigate to Brave.com.
6. Follow a few links so that you have a history, then hit back button.
7. Confirm you can right click both the back/forward buttons to show the menu
8. Cancel the menu and then click and hold each button to confirm the existing behavior works
@bsclifton
Copy link
Member Author

bsclifton commented Nov 16, 2016

@lucidNTR sorry it took us so long to get to this! I love it though ❤️

Huge thanks for knocking this out (your commit is still intact, I just had to tweak a few things 😄 )

@bbondy
Copy link
Member

bbondy commented Nov 17, 2016

great add, thanks!

One suggestion would be to have New tab option there too. Kind of like how the primary action of the back button is also shown in the back list. Will still merge though now.

@bbondy bbondy merged commit 76c3165 into brave:master Nov 17, 2016
@bsclifton
Copy link
Member Author

bsclifton commented Nov 17, 2016

@bbondy done! fixed w/ #5704 😄

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

Successfully merging this pull request may close these issues.

8 participants