-
Notifications
You must be signed in to change notification settings - Fork 879
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
Properly get tab origin for brave shields. #9038
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.
Just checked, this works on my build with the https://mybroadband.co.za/news/energy/400329-koeberg-nuclear-power-station-manager-suspended.html
test case 👍
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 with a small coment
@@ -105,9 +105,11 @@ std::shared_ptr<brave::BraveRequestInfo> BraveRequestInfo::MakeCTX( | |||
// |AddChannelRequest| provides only old-fashioned |site_for_cookies|. | |||
// (See |BraveProxyingWebSocket|). | |||
if (ctx->tab_origin.is_empty()) { | |||
ctx->tab_origin = brave_shields::BraveShieldsWebContentsObserver:: | |||
GetTabURLFromRenderFrameInfo(ctx->frame_tree_node_id) |
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 seems like you can completely remove BraveShieldsWebContentsObserver::GetTabURLFromRenderFrameInfo()
from the repository now, since this was apparently the only caller.
Verification PASSED on
Run through https://dev-pages.brave.software/fingerprinting/farbling.html |
see also #5925
Fixes brave/brave-browser#16265
Resolves
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: