-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Should set as pinned state only when it's actually pinned #26301
Comments
May be later
on the first run dialogPin to taskbar
is checked the first run dialog
Pin to taskbar
is checked the first run dialogPin to taskbar
is checked in the first run dialog
Pin state is expected behavior now. Checkbox is only in effective when user clicks Regarding to default browser state, Browser should not be set as a default when user clicks |
@simonhong - so this might be happening with a fresh install
Scenario 2: Pin Brave to taskbar
|
Reproduced this issue still after double notification of App notifications in OS settings turned on notifications.turned.on.mp4App notifications in OS settings turned off app.notification.turned.off.mp4 |
During my recent work on #36470, I don't think I ever got the initial popup by Brave that has the checkbox for pinning to the taskbar: Maybe it only appears on older Windows versions than the one I have. I did get the OS-level notifications. The OS-level notifications come from upstream. One thing I saw in the code is that we have our own logic for pinning, in My suspicion is that the problem can be fixed by invoking upstream's implementation for pinning to the task bar. And that we should clean up our associated code if it is no longer used. To that end, it would be interesting to find out if the initial run popup still gets shown on some Windows versions. |
We've not been using first-run dialog for a long time as we prefer welcome page flow to first run dialog. I could see this os notification when I try to pin from firefox. Maybe it's triggered by Win api. |
Checking |
It's very difficult to debug as pin/unpin Win api is undocumented api. |
How about something like: Title: Pin to task bar |
I'm fine with it |
Pin to taskbar
is checked in the first run dialog
Updated this issue's title and description as we don't use first run dialog. |
fix brave/brave-browser#26301 Polling the pinned state after asking to Windows because it's actually pinned when user allowed via os notification. We'll check 10 times with 2s interval after asking to Windows. If user doesn't react or disallowed within that time, we doesn't change the state.
* Update short cut pin state properly on Windows fix brave/brave-browser#26301 Polling the pinned state after asking to Windows because it's actually pinned when user allowed via os notification. We'll check 10 times with 2s interval after asking to Windows. If user doesn't react or disallowed within that time, we doesn't change the state.
The above requires |
Verification
Case 1: Pin Brave to taskbar via
Confirmed Brave is pinned to taskbarConfirmed
|
step 4 | step 5 | step 7 | step 8 | step 9 |
---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Case 2: Pin to taskbar via Brave icon context menu - PASSED
- Unpin Brave if it's pinned
- Installed 1.66.104
- launched Brave
- clicked context menu on taskbar Brave icon
- verified Brave is not pinned to taskbar
- clicked Brave icon context menu in the taskbar
- clicked
Pin to taskbar
- opened
brave://settings/getStarted
in a new tab
Confirmed Brave is pinned to taskbar
Confirmed Pin
button is dismissed in brave://settings/getStarted
and Brave is already pinned
text shown
step 5 | step 7 | step 8 |
---|---|---|
![]() |
![]() |
![]() |
Case 3: Do not pin Brave via OS notification - PASSED
- Unpin Brave if it's pinned
- Installed
1.66.104
- launched Brave
- clicked context menu on taskbar Brave icon
- verified Brave is not pinned to taskbar
- opened
brave://settings/getStarted
in a new tab - clicked
Pin
button - clicked
No, thanks
on the OS notificationWould you like to pin Profile 1 - Brave to your taskbar?
- verified
Pin
button is still shown inbrave://settings/getStarted
page - clicked context menu on taskbar Brave icon
Confirmed Brave is not pinned to taskbar
Confirmed Pin
button is not dismissed in brave://settings/getStarted
step 4 | step 7 | step 9 |
---|---|---|
![]() |
![]() |
![]() |
Description
Steps to Reproduce
Pin
buttonActual result:
Expected result:
Reproduces how often:
Easily
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
@simonhong @rebron
The text was updated successfully, but these errors were encountered: