-
Notifications
You must be signed in to change notification settings - Fork 868
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
Fix wrong location icon and page info bubble of brave page #1722
Conversation
21c582a
to
85692c8
Compare
Currently we use brave schemed url as a virtual url of navigation entry. However, Location area uses virtual url to check whether it is chrome page or not. So, our webui bypassed. To show proper icon and bubble for brave page, brave scheme url should be also checked.
85692c8
to
e612f10
Compare
@@ -0,0 +1,24 @@ | |||
diff --git a/chrome/browser/ui/views/page_info/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info/page_info_bubble_view.cc | |||
index ebe5987d5b4239e09a9b255b0d73ec9f7ad74fe9..933b15b53b86376e63a425701ae8cb8571d8b692 100644 | |||
--- a/chrome/browser/ui/views/page_info/page_info_bubble_view.cc |
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 can't avoid this patch file because multiple PageInfoBubbleView::CreatePageInfoBubble()
is used in this file and InternalPageInfoBubbleView
class is in anonymous namespace.
Add test cases for BraveBrowserLocationBarModelDelegate, BraveLocationIconView and PageInfoBubbleView. All new tests check whether these classes handle brave url properly.
ef98cfc
to
d399680
Compare
kindly ping.. |
@simonhong please can we squash the 3 commits since they're all the same feature |
...at least for the tests. For the lint if it's fixing unrelated changes that were required because you modified those files then IMO good to keep separate commit 👍 |
I'm going to defer review to @bridiver as long as he can get to it before 0.62.x hits beta, for the following reasons:
|
Wrote closed reason for record. @bridiver will fix this issue with another approach. |
docs/installing: Add new public key URL for new signing key
Currently we use brave schemed url as a virtual url of navigation entry.
However, Location area uses virtual url to check whether it is chrome page
or not. So, our webui bypassed. To show proper icon and bubble for brave page,
brave scheme url should be also checked.
Fix brave/brave-browser#3411
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Please refer to STR in brave/brave-browser#3411
PageInfoBubbleViewTest.BraveURLTest
BraveLocationIconViewTest.BraveURLTest
BraveBrowserLocationBarModelDelegateTest.VectorIconOverrideTest
Reviewer Checklist: