-
Notifications
You must be signed in to change notification settings - Fork 895
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
Display brave:// protocol for internal urls when hovered #15336
Conversation
7ccfe2b
to
9daa348
Compare
9daa348
to
c029de0
Compare
I ran upstream tests since this changes some chromium UI. Looks like upstream tests all passed on macOS, Linux and Android (if applicable?) but some failed on Windows. They seem unrelated
|
One of error looks interesting
|
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 👍
GURL::Replacements replacements; | ||
replacements.SetSchemeStr(content::kBraveUIScheme); | ||
target_url = target_url.ReplaceComponents(replacements); | ||
} |
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.
Could it be worth replacing 'chrome-untrusted' too?
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.
I'm not so sure about that because chrome-untrusted is never meant to be displayed to users
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.
++ 👍🏼 It would be nice to have a test case for this :)
@simonhong Yes to be honest I was surprised that there weren't more existing test failures as I think you tried this in a previous PR but reverted or didn't merge? |
Not sure but maybe it would be possible that my previous PR was not the cause of test failure at that time. |
c029de0
to
4a021e0
Compare
Replaces chrome://. This is another unfortunate side effect of us still using chrome:// as the protocol which is neccessary as there are many checks for that string specifically and we're not at a point to change that at the moment. However, this is probably the most visible place remaining where Brave still shows chrome:// and so changing it to brave:// is helpful to avoid confusion
4a021e0
to
7a808f8
Compare
I looked in to adding a test for this, probably in |
Ok, let's go with current PR :) |
Replaces chrome://. This is another unfortunate side effect of us still using chrome:// as the protocol which is neccessary as there are many checks for that string specifically and we're not at a point to change that at the moment. However, this is probably the most visible place remaining where Brave still shows chrome:// and so changing it to brave:// is helpful to avoid confusion.
This was also attempted similarly in #1825 and reverted by #2188, so first I'm seeing which tests fail.
Resolves brave/brave-browser#2566
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: