-
Notifications
You must be signed in to change notification settings - Fork 975
Pinned tabs reappear next load after unpinning #8477
Comments
maybe fixed by |
Confirmed it still happens after that. Will continue digging in |
I couldn't reproduce on 0.15.0 RC5 |
I wonder if you're hitting some state that doesn't save session state in general? |
Need better steps or a session file to reproduce. I'm moving this to 0.15.1 for now. |
Also getting a report via Twitter that the order of the pinned tabs isn't sticking. After quitting and relaunching, it goes back to the wrong order. Since I have a session where both issues happen, I'll self assign and knock this out 😄 |
I believe I've found the root cause! This was a tricky one @bbondy if you have a few mins, maybe you can help me think through a fix I pinned a tab a while back- it's stored in the sites array like so:
This is getting loaded when the app starts... pinned tabs are re-created from the sites array. They get created and loaded. In this case, the pinned tab above redirects to
The URL here is never going to match the pinned tab URL. In order to work properly, pinning / unpinning would need to use something other than URL (like a guid or object id). So while unpinning makes it disappear temporarily, it'll pop back up next time the code fires:
One quick way to identify potential problems is looking through closed frames. Because I was trying to debug, I was closing the same tab OVER and OVER again. I noticed provisionalLocation and location were always different
|
I'm still having some other issues (which we can solve after this):
|
Got this issue mostly wrapped up (including tests). I didn't repro anything with order being lost, but I did find another situation where pinning / unpinning can break. I'll try to capture specific steps |
Test plan
See #8588
Original issue description
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
I have 8 pinned tabs. 3 of them are ones which I am not able to get rid of. I can unpin them and for the current session, they disappear, things look good. As soon as I launch Brave again, they show back up again
Platform (Win7, 8, 10? macOS? Linux distro?):
macOS
Brave Version (revision SHA):
Brave 0.15.0 RC3
Steps to reproduce:
Actual result:
Pinned tabs are not removable
Expected result:
Unpinned tabs stay removed
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Is this an issue in the currently released version?
Unsure- I'd have to check
Can this issue be consistently reproduced?
Saying no for now- but I can provide more information
Extra QA steps:
1.
2.
3.
Screenshot if needed:
Any related issues:
The text was updated successfully, but these errors were encountered: