-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
The custom header list should be hard-coded #16455
Comments
Test PlanEnsure the brave partners receive the custom headers the same as they would on earlier versions of browsers (e.g. 1.26.x), although new headers won't contain Sites to check: |
Minimize network requests by hardcoding the referral headers as opposed to fetching them from the network. These headers are deprecated and won't change anymore. Resolves brave/brave-browser#16455
Minimize network requests by hardcoding the referral headers as opposed to fetching them from the network. These headers are deprecated and won't change anymore. Resolves brave/brave-browser#16455
Minimize network requests by hardcoding the referral headers as opposed to fetching them from the network. These headers are deprecated and won't change anymore. Resolves brave/brave-browser#16455
Minimize network requests by hardcoding the referral headers as opposed to fetching them from the network. These headers are deprecated and won't change anymore. Resolves brave/brave-browser#16455
Verified
Steps:
Confirmed via the Network panel (and clicking on a request) for
Verification passed on
Confirmed via the Network panel (and clicking on a request) for
Verification passed on
Confirmed via the Network panel (and clicking on a request) for
|
Verification passed on Oppo R5 with Android 11 running 1.28.99 x64 Beta Build
Verification passed on Samsung Tab A with Android 10 running 1.28.99 x64 Beta Build
|
Right now, custom headers rely on a list that's provided on startup by the following endpoint: https://laptop-updates.brave.com/promo/custom-headers
Since this is a deprecated mechanism to tell websites that a visitor is using Brave, there is no need for this list to be updatable more often than what can be provided via the normal release cycle.
@diracdeltas had the idea of taking another step towards removal of this legacy feature by moving the dynamic list to be hard-coded in a C++ constant. That way, we can deprecate the
laptop-updates
endpoint (combined with the work in #16374) and eventually turn it off.The text was updated successfully, but these errors were encountered: