-
Notifications
You must be signed in to change notification settings - Fork 871
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
only use brave:// url for display purposes because chrome does some s… #2024
Conversation
@bridiver Can you add test plan? |
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.
EXPECT_STREQ(url.c_str(), | ||
base::UTF16ToUTF8(browser()->location_bar_model() | ||
->GetFormattedFullURL()).c_str()); | ||
// EXPECT_EQ(url, active_contents()->GetVisibleURL()); |
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.
remove if unneeded
GURL::Replacements replacements; | ||
replacements.SetSchemeStr(kBraveUIScheme); | ||
*url = url->ReplaceComponents(replacements); | ||
if (HandleURLOverrideRewrite(url, browser_context)) |
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
brace surround the if.
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.
You mean {}
? That's only a JS lint issue, we generally don't use braces for one line in c++
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.
Yes. I usually include them anyway for readability. Wouldn't hold up an approval over it 🙂
…ecurity checks based on the virtual url fix brave/brave-browser#3411
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.
++
only use brave:// url for display purposes because chrome does some s…
only use brave:// url for display purposes because chrome does some s…
Merge pull request #2024 from /issues/3411
Merge pull request #2024 from /issues/3411
…ecurity checks based on the virtual url
fix brave/brave-browser#3411
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) onnpm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
chrome://version
in the urlbar - should load version page and urlbar should displaybrave://version
brave://settings
in the urlbar - should load settings pagesync
in the settings page and click on the link forbrave://sync
- should load sync pageReviewer Checklist: