-
Notifications
You must be signed in to change notification settings - Fork 920
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
Disables several blink runtime features. #6933
Conversation
268e53d
to
f003ca2
Compare
d0e7793
to
1b5b6fa
Compare
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
chromium_src/third_party/blink/renderer/core/origin_trials/origin_trial_context.cc
Outdated
Show resolved
Hide resolved
return | ||
rel_path_parts = rel_path.split(os.sep, 3) | ||
if rel_path_parts[0] in OUT_DIR_NAMES: | ||
if rel_path_parts[2] == 'gen': |
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.
👍
47ceb5f
to
76c509d
Compare
76c509d
to
b0d2a3c
Compare
Rebased. |
6a7ef0d
to
efbbadb
Compare
Both Linux and Android have lint (format) errors in files that aren't related to this PR. |
@bridiver, PTAL when you can. |
efbbadb
to
ad05f75
Compare
e3b3ae0
to
af3b9ab
Compare
af3b9ab
to
237664b
Compare
void SetUp() override { InProcessBrowserTest::SetUp(); } | ||
void SetUp() override { | ||
// Test that even with Lang CH feature enabled, there is no header. | ||
scoped_feature_list_.InitAndEnableFeature(features::kLangClientHintHeader); |
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.
shouldn't we test with this both enabled and disabled?
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.
Addressed by 296d753
Fixes brave/brave-browser#11133 Fixes brave/brave-browser#11407 Fixes brave/brave-browser#11546 Fixes brave/brave-browser#11547 - Disables features via Chromium features: * Direct Sockets * Lang Client Hint Header * Signed Exchange Prefetch Cache For Navigations * Subresource Web Bundles - Disabled the following blink features in BraveContentRendererClient::SetRuntimeFeaturesDefaultsBeforeBlinkInitialization since they don't have Chromium features: * Digital Goods * Native File System (File System Access) - Added browser tests for these features - Modified redirect-cc.py to allow overriding files under out/XXX/gen - Added an override for blink::origin_trials::IsTrialValid and overrides for blink::OriginTrialContext methods AddFeature and AddForceEnabledTrials for trials: * NativeFileSystem2 * SignedExchangeSubresourcePrefetch * SubresourceWebBundles - Added browser tests for trials disablement.
The parameter flips Lang CH feature enabled/disabled.
237664b
to
296d753
Compare
Windows CI failure is not related to this PR (certificate issue). |
Fixes brave/brave-browser#11133
Fixes brave/brave-browser#11407
Fixes brave/brave-browser#11546
Fixes brave/brave-browser#11547
Submitter Checklist:
npm run lint
,npm run gn_check
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).QA/Yes
orQA/No
) to the associated issuerelease-notes/include
orrelease-notes/exclude
) to the associated issueTest Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.