-
Notifications
You must be signed in to change notification settings - Fork 965
[Tabs]: Only bring tabs from normal windows #24995
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thnak you so much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
return from != to && !from->IsAttemptingToCloseBrowser() && | ||
!from->IsBrowserClosing() && !from->is_delete_scheduled() && | ||
to->profile() == from->profile(); | ||
return from != to && from->type() == Browser::TYPE_NORMAL && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix! Had to look up the other types here:
https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/browser.h;l=157-190;drc=41374c974d98f8cf67134f9ddb8d96d398154dfe
We likely also had a bug if someone popped devtools out to a separate window or an extension popup is being shown. This should fix it properly 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: yeah I confirmed before this fix, it would pull the devtools into the main window as a tab 😂
Verification PASSED on
Using reproducedIssue.mp4Using the same STR/Cases as mentioned above, verified that PWA apps are not being moved when using fixedPWA.mp4 |
Uplift of #24995 (squashed) to beta
Resolves brave/brave-browser#40287
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
See issue