Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue with "Show pinned tabs in all windows" option #25381

Conversation

jagadeshjai
Copy link
Collaborator

@jagadeshjai jagadeshjai commented Aug 29, 2024

  • Show 'Show pinned tabs in all windows' option in setting page only when its feature flag is enabled.

Resolves brave/brave-browser#40675

Outcome

brave_shared_pinned_tabs_fix.webm

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • [x ] There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

  • For the test plan, kindly refer to the issue description's Fix verification.

@jagadeshjai jagadeshjai changed the title Show 'Show pinned tabs in all windows' option in setting page only wh… Fix the issue with "Show pinned tabs in all windows" option Aug 29, 2024
@jagadeshjai jagadeshjai force-pushed the fix__hide_shared_pinned_tabs_option_when_disabled_in_flag branch from 4ff4236 to 1b5303e Compare August 29, 2024 18:36
@jagadeshjai jagadeshjai marked this pull request as ready for review August 29, 2024 18:41
@jagadeshjai
Copy link
Collaborator Author

@mkarolin / @fallaciousreasoning Could you please take a look at this PR?

Copy link
Contributor

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I'll kick off CI!

@fallaciousreasoning
Copy link
Contributor

Kicked of CI here: #25382

@jagadeshjai
Copy link
Collaborator Author

Thanks for the review @fallaciousreasoning ❤️

@mihaiplesa mihaiplesa merged commit a61a534 into brave:master Aug 30, 2024
28 of 31 checks passed
@jagadeshjai jagadeshjai deleted the fix__hide_shared_pinned_tabs_option_when_disabled_in_flag branch August 30, 2024 06:27
@jagadeshjai
Copy link
Collaborator Author

Thanks for merging @mihaiplesa 😄 !

@LaurenWags
Copy link
Member

LaurenWags commented Sep 6, 2024

Verified with

Brave | 1.71.66 Chromium: 128.0.6613.120 (Official Build) nightly (x86_64)
-- | --
Revision | 87ca8e6d850b0c0682c49be9014a62fdfad3face
OS | macOS Version 13.6.9 (Build 22G830)

Used 1.69.162 Chromium: 128.0.6613.120 and steps from the issue to reproduce

  1. Start the browser and navigate to brave://flags
  2. Search for brave-shared-pinned-tabs and verify that it's set to disabled (default).
Screenshot 2024-09-06 at 3 11 22 PM
  1. Navigate to brave://settings/appearance and scroll down to the [Tabs] section
  2. Enable "Show pinned tabs in all windows" setting
Screenshot 2024-09-06 at 3 11 58 PM
  1. Navigate to brave.com
  2. Right-click on the tab and select Pin
  3. Observe the tab is now pinned
Screenshot 2024-09-06 at 3 12 27 PM
  1. Open a new browser window via the hamburger menu
  2. Observe the new window has no pinned tabs.
Screenshot 2024-09-06 at 3 13 11 PM

Using 1.71.66 Chromium: 128.0.6613.120 and steps from the issue, confirmed setting is not displayed when flag is off and spot checked setting worked as expected:

  1. Start the browser and navigate to brave://flags
  2. Search for brave-shared-pinned-tabs and verify that it's set to disabled (default).
Screenshot 2024-09-06 at 3 32 19 PM
  1. In another tab, navigate to brave://settings/appearance and scroll down to the [Tabs] section
  2. Verify that there's no "Show pinned tabs in all windows" setting shown
Screenshot 2024-09-06 at 3 34 05 PM
  1. In the first tab, enable the brave-shared-pinned-tabs flag and click Relaunch button.
Screenshot 2024-09-06 at 3 34 36 PM
  1. Once the browser restarts, navigate to brave://settings/appearance and scroll down to the [Tabs] section
  2. Verify that the "Show pinned tabs in all windows" setting is now shown and disabled (by default)
Screenshot 2024-09-06 at 3 35 04 PM
  1. Navigate to brave.com
  2. Right-click on the tab and select Pin
  3. Observe the tab is now pinned
Screenshot 2024-09-06 at 3 35 33 PM
  1. Open a new browser window via the hamburger menu
  2. Verify the new window has no pinned tabs.
Screenshot 2024-09-06 at 3 36 00 PM
  1. Enable the "Show pinned tabs in all windows" in the Settings -> Appearance [Tabs]
Screenshot 2024-09-06 at 3 36 20 PM
  1. Open a new browser window via the hamburger menu
  2. Verify the new window has brave.com pinned tab.
Screenshot 2024-09-06 at 3 36 47 PM

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

Successfully merging this pull request may close these issues.

Show pinned tabs in all windows setting should be guarded by the brave-shared-pinned-tabs feature flag
5 participants