-
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
Upgrade from Chromium 113 to Chromium 114 #17965
Conversation
fdf3f29
to
da0180e
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
cb963ff
to
9d61d15
Compare
A Storybook has been deployed to preview UI for the latest push |
b17017f
to
21d69e0
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
af9af20
to
b8c8aab
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
ed6b2ff
to
d250c57
Compare
A Storybook has been deployed to preview UI for the latest push |
…y_pref_ Chromium change: https://source.chromium.org/chromium/chromium/src/+/af795e6b1da2e574807be6b8fc2ac2d49fc0be28 commit af795e6b1da2e574807be6b8fc2ac2d49fc0be28 Author: Mustafa Emre Acer <meacer@chromium.org> Date: Tue May 2 21:45:38 2023 +0000 [Merge 114] HTTPS-First Mode: Enable Site Engagement heuristic with metrics This CL implements Site Engagement Heuristic to enable HTTPS-First Mode on sites that the user interacts with regularly. If the engagement score of the HTTPS URL of a host goes above a certain threshold, HFM is enabled on that host. Presently, this CL only records a new histogram with the same events as HFM. The current thresholds for engagement scores are arbitrary and will be tweaked in future CLs. This CL also only enables HFM for a site, but doesn't remove it. This will be implemented in future CLs. (cherry picked from commit ee7cf748caf24937bd585ee35adb6e8dd5a7cfe1) Bug: 1435222
…tleFor Chromium change: https://source.chromium.org/chromium/chromium/src/+/af795e6b1da2e574807be6b8fc2ac2d49fc0be28 commit af795e6b1da2e574807be6b8fc2ac2d49fc0be28 Author: Mustafa Emre Acer <meacer@chromium.org> Date: Tue May 2 21:45:38 2023 +0000 [Merge 114] HTTPS-First Mode: Enable Site Engagement heuristic with metrics This CL implements Site Engagement Heuristic to enable HTTPS-First Mode on sites that the user interacts with regularly. If the engagement score of the HTTPS URL of a host goes above a certain threshold, HFM is enabled on that host. Presently, this CL only records a new histogram with the same events as HFM. The current thresholds for engagement scores are arbitrary and will be tweaked in future CLs. This CL also only enables HFM for a site, but doesn't remove it. This will be implemented in future CLs. (cherry picked from commit ee7cf748caf24937bd585ee35adb6e8dd5a7cfe1) Bug: 1435222
We patch settings_shared.css to override the styles of various controls in brave://settings. This upstream change removed settings_shared.css in a few places and resulted in radio buttons reverting to their default (non-Brave) style. This patch includes br_shared_style.css in cr_radio_button_style.css to continue overriding the default style for radio buttons. Chromium change: https://source.chromium.org/chromium/chromium/src/+/7bd64db63faec8ecf57151f387c6939828272df2 commit 7bd64db63faec8ecf57151f387c6939828272df2 Author: dpapad <dpapad@chromium.org> Date: Mon Apr 17 22:52:58 2023 +0000 Settings: Remove settings_shared.css dependency from controls/ This is in preparation of moving controls/ to the "limited sharing" mechanism so that they can be properly shared with CrOS Settings. The dependency was either not needed, or it was needed for very few styles that could be achieved otherwise. By removing the dependency, hoping to not have to move all of settings_shared.css to c/b/r/settings_shared/, as this file is probably better forked between CrOS and Browser settings. Bug: 1431477
Chromium change: chromium/chromium@2f7edb2 Switch bookmarks to use DragReorderableRecyclerViewAdapter. The new adapter extends SimpleRecyclerViewAdapter, bringing the bookmarks code significantly closer to correct MVC. The SRVA invokes all of the correct and most narrow RecyclerView.Adapter notifications, allowing us to drop all explicit #notifyDataSetChanged calls. There was some problems with preventing flicker on model changes, which were overcome with #setSupportsChangeAnimations(false) and #updateOrAdd. This is also the first use case to actually integrate with DragReorderableRecyclerViewAdapter and some changes were needed. * We need per-row control over draggability, not just per-type. * Removed explicit swap impl, as ListModelBase#move is sufficient. Bug: 1413463
A Storybook has been deployed to preview UI for the latest push |
Upgrade from Chromium 113 to Chromium 114
* Merge pull request #17965 from brave/cr114 Upgrade from Chromium 113 to Chromium 114 * [iOS] Fix browser prefs patch (cr114 follow-up) * Fix spacing in "On Exit" tab in Clear browsing data modal Chromium change: https://source.chromium.org/chromium/chromium/src/+/9c9fb19befc6b3417df2ccd033cf7bb3774d1d59 commit 9c9fb19befc6b3417df2ccd033cf7bb3774d1d59 Author: dpapad <dpapad@chromium.org> Date: Wed Apr 19 15:28:38 2023 +0000 Settings: Remove more CSS variables from settings_vars.css. Replacing 1) --settings-row-min-height with --cr-section-min-height 2) --settings-row-two-line-min-height with --cr-section-two-line-min-height The settings variables seem unnecessary since they almost always mirror the value of the WebUI-wide ones. Bug: 1431477 * Fix --user-agent=<something> switch (#18530) * Fix --user-agent=<something> switch * Fix gn check * [iOS] Fix crash on launch due to moved IOThread init * [iOS] Attach IOSTaskTabHelper to WebState to fix crash on sync * [iOS] Add unique identifier to session storage manager --------- Co-authored-by: Mikhail <matuchin@brave.com> Co-authored-by: Kyle Hickinson <git@kylehickinson.com>
(base::FeatureList::IsEnabled(features::kHttpsFirstModeV2) && prefs && | ||
prefs->GetBoolean(prefs::kHttpsOnlyModeEnabled)) || | ||
brave_shields::ShouldForceHttps(map, request_url); | ||
|
||
StatefulSSLHostStateDelegate* state = |
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 don't think these changes are correct. In particular StatefulSSLHostStateDelegate was left out of the original implementation and since we copied code (which we should almost never do) without any comments, it's not clear what the intention was, but now it's not clear at all what should be controlling this. This is a global pref for chromium, but it's a site setting for us so I think these other changes confuse what the actual setting is
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 whole thing is very confusing imo. If we want one behavior when IsHttpsByDefaultFeatureEnabled is enabled and the default chromium behavior when it's not, then we should always be deferring to the original chromium method, not copying the code here
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 recall why it was done this way, but I agree it doesn't seem ideal. I can enter an issue for this, but would probably need advice from someone like @arthuredelstein as far as how it should work.
Resolves brave/brave-browser#29600
Resolves brave/brave-browser#29533
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
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: