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

Brave is pinned to the taskbar when brave is NOT pinned explicitly via the first run dialog #26542

Closed
GeetaSarvadnya opened this issue Nov 4, 2022 · 3 comments
Assignees
Labels
bug closed/invalid OS/Desktop priority/P4 Planned work. We expect to get to it "soon".

Comments

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Nov 4, 2022

Description

Brave is pinned to the taskbar when brave is NOT pinned explicitly via the first run dialog

This issue is not reproducible 100% but I have seen the issue 3 to 4 times in 3 days while dog fooding the beta build (1.46.x)

Steps to Reproduce

STR 1:

  1. Clean profile 1.46.x
  2. Click on May be later in first run dialog
  3. Browser was launched and I was working on Rewards for 10 to 15 mins
  4. When I right click on the brave icon in the taskbar it was already pinned

STR2:

  1. Clean profile 1.46.x
  2. Click on x in first run dialog
  3. Brave://welcome page is displayed, click on Skip welcome tour link
  4. Right click on the brave icon in the taskbar it was already pinned

Actual result:

Brave is pinned to the taskbar when brave is NOT pinned explicitly via the first run dialog

Expected result:

Brave should not be pinned to the taskbar when brave is NOT pinned explicitly via the first run dialog

Reproduces how often:

Intermittent

Brave version (brave://version info)

Brave 1.46.90 Chromium: 107.0.5304.91 (Official Build) beta (64-bit)
Revision 3d5948960d62418160796d5831a4d2d7d6c90fa8-refs/branch-heads/5304@{#1097}
OS Windows 10 Version 21H2 (Build 19044.2130)

Version/Channel Information:

  • Can you reproduce this issue with the current release? NA
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the nightly channel? Not sure

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? NA
  • Does the issue resolve itself when disabling Brave Rewards? NA
  • Is the issue reproducible on the latest version of Chrome? NA

Miscellaneous Information:

cc: @brave/qa-team @simonhong @rebron

@simonhong
Copy link
Member

@GeetaSarvadnya I found why you're experiencing this on beta.
With this https://chromium-review.googlesource.com/c/chromium/src/+/3858031,
upstream started to pin to taskbar by installer - constexpr int kBetaRolloutPercentage = 10;
Maybe 10% of Win10+ users will get pinned with this change.

bool ShouldPinChromeToTaskbar() {
  if (base::win::GetVersion() < base::win::Version::WIN10)
    return true;
  switch (install_static::GetChromeChannel()) {
    case version_info::Channel::BETA: {
      // Increase kBetaRolloutPercentage to roll out to beta channel.
      constexpr int kBetaRolloutPercentage = 10;
      return base::RandInt(0, 99) < kBetaRolloutPercentage;
    }
    case version_info::Channel::STABLE: {
      constexpr int kStableRolloutPercentage = 0;
      return base::RandInt(0, 99) < kStableRolloutPercentage;
    }
    default:
      return false;
  }
}

And it seems upstream already changed it to 100% by https://chromium-review.googlesource.com/c/chromium/src/+/3858031
But it's not yet arrived to our master.
Then maybe we don't need Pin to taskbar checkbox in first run dialog on Windows.
cc @rebron

@rebron rebron added the priority/P4 Planned work. We expect to get to it "soon". label Nov 22, 2022
@simonhong
Copy link
Member

Ok, I'll remove checkbox when upstream set 100% asstable rollout percentage.

@MadhaviSeelam
Copy link

@GeetaSarvadnya - Closing this issue since first run dialog is disabled via #27225. And I filed a follow up for the same issue #27499
cc: @rebron @simonhong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug closed/invalid OS/Desktop priority/P4 Planned work. We expect to get to it "soon".
Projects
None yet
Development

No branches or pull requests

4 participants