-
Notifications
You must be signed in to change notification settings - Fork 893
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 7976: Adding a proxy for Crowd Deny #4482
Conversation
@@ -48,6 +48,8 @@ int OnBeforeURLRequest_StaticRedirectWorkForGURL( | |||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, kCRXDownloadPrefix); | |||
static URLPattern autofill_pattern( | |||
URLPattern::SCHEME_HTTPS, kAutofillPrefix); | |||
static URLPattern crowdDeny_pattern( |
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.
we should not continue to follow this *_pattern
convention that is not consistent with the style guide.
Do we want to include crowddeny at all or just disable it? |
ff76f6f
to
95c1b07
Compare
d8c5bea
to
abbaf08
Compare
static URLPattern gvt1_pattern( | ||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, "*://*.gvt1.com/*"); | ||
static URLPattern googleDl_pattern( | ||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, |
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.
Fallback URL if redirector
is not working.
1f8b793
to
028e39a
Compare
@@ -48,6 +48,11 @@ int OnBeforeURLRequest_StaticRedirectWorkForGURL( | |||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, kCRXDownloadPrefix); | |||
static URLPattern autofill_pattern( | |||
URLPattern::SCHEME_HTTPS, kAutofillPrefix); | |||
static URLPattern gvt1_pattern( |
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.
this also matches the domains that we use for redirecting to crlsets.brave.com. does crlsets still work correctly with this change? it seems like it would work only if the crlsets matching happened before this matching
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.
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.
There is an issue to update crlsets.brave.com
to redirector.brave.com
- brave/brave-browser#4634 - The domains point to the same endpoint. I'll pick that up after this PR.
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.
ok, if crlsets.brave.com is the same as redirector.brave.com then this seems like it shouldn't break crlsets.
@@ -48,6 +48,11 @@ int OnBeforeURLRequest_StaticRedirectWorkForGURL( | |||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, kCRXDownloadPrefix); | |||
static URLPattern autofill_pattern( | |||
URLPattern::SCHEME_HTTPS, kAutofillPrefix); | |||
static URLPattern gvt1_pattern( |
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.
maybe we should add comments and issue IDs to these patterns, for better understanding
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, given that all concerns are fixed
028e39a
to
792b309
Compare
792b309
to
d27c92c
Compare
Fix brave/brave-browser#7976
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
dl.google.com
or*.gvt1.com
Crowd Deny
is updated to v0.5Reviewer Checklist:
After-merge Checklist:
changes has landed on.