-
Notifications
You must be signed in to change notification settings - Fork 965
Do not open brave://welcome in guest windows #17577
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.
++ with some nits
EXPECT_EQ("about:blank", active_contents()->GetVisibleURL().spec()); | ||
EXPECT_EQ(1, browser()->tab_strip_model()->count()); |
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.
nit: these line can be deleted as we don't need to check normal window's state
EXPECT_STREQ("about:blank", | ||
base::UTF16ToUTF8( | ||
browser()->location_bar_model()->GetFormattedFullURL()) | ||
.c_str()); | ||
EXPECT_EQ(1, browser()->tab_strip_model()->count()); |
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.
ditto
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.
Ah, do you want to check normal window is not affected?
If so, ignore my comments.
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.
yep
Co-authored-by: Simon Hong <[email protected]>
Resolves brave/brave-browser#29012
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 lint
,npm 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: