Skip to content
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 85 to Chromium 86. #6195

Merged
merged 155 commits into from
Sep 11, 2020
Merged

Upgrade from Chromium 85 to Chromium 86. #6195

merged 155 commits into from
Sep 11, 2020

Conversation

mkarolin
Copy link
Collaborator

@mkarolin mkarolin commented Jul 23, 2020

Fixes brave/brave-browser#10884
Related PR: brave/brave-browser#10886

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@@ -91,7 +91,7 @@ - (instancetype)initWithConfiguration:(BATBraveRewardsConfiguration *)configurat
adsClass:(nullable Class)adsClass
{
if ((self = [super init])) {
if (!base::MessageLoopCurrent::Get()) {
if (!base::CurrentThread::Get()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @Brandon-T Sync will have these changes in c86 instead as you moved this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylehickinson I'll take care of it, it will cause a build error anyway

@mkarolin mkarolin requested a review from darkdh as a code owner August 24, 2020 21:40
@mkarolin mkarolin removed this from the 1.13.x - Release milestone Aug 26, 2020
mkarolin and others added 14 commits September 11, 2020 14:45
The welcome page was not loading due to the following JS error:

  Uncaught ReferenceError: PromiseResolver is not defined
      at Object.sendWithPromise (cr.js:344)
      at welcomeUtils.ts:16
      at Object.dispatch (index.js:8)
      at Object.getSearchEngineProviders (redux.js:462)
      at loadWelcomeData (brave_welcome.tsx:26)
      at HTMLDocument.initialize (brave_welcome.tsx:31)

As it was also done already for brave_new_tab.html (search for
the "Fixes NTP" commit), we fix this error by doing this:

  - Removed import of cr.html as import has been deprecated
  - Added sourcing of promise_resolver.js to brave_welcome.html
via chromium_src override of //extensions/common/constants.h/cc
Update shields default cookies setting accordingly.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/4dbedadecc16a6769451f30751ee52f259874a21

commit 4dbedadecc16a6769451f30751ee52f259874a21
Author: Patrick Noland <pnoland@chromium.org>
Date:   Mon Aug 10 18:29:41 2020 +0000

    [ToolbarMVC] Create menu_button package and MenuButtonCoordinator

    This starts the process of hiding the MenuButton view behind the coordinator. Primarily, ToolbarAppMenuM nager (renamed to MenuButtonCoordinator) now directly manipulates the MenuButton instead of doing so through TopToolbarCoordinator. MenuButton related functionality is removed from the Toolbar interface, with a few me hanical adjustments to match.

    Bug: 1086676
- Moved a dep under extensions guard
- Removed unused headers includes.
Original code had both OS_MACOSX and OS_IOS, which were incorrectly
replaced with just OS_MAC. Adjusted to use OS_APPLE so that both
platforms are covered again.
@mkarolin mkarolin removed CI/skip-android Do not run CI builds for Android CI/skip-linux CI/skip-macos-x64 Do not run CI builds for macOS x64 labels Sep 11, 2020
@@ -34,7 +34,7 @@ LocaleHelper* LocaleHelper::GetInstance() {
return GetInstanceImpl();
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should not include iOS, thanks

Copy link
Collaborator Author

@mkarolin mkarolin Sep 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmancey the original code (current master) has both OS_MACOSX and OS_IOS, see
https://github.com/brave/brave-core/blob/master/components/l10n/browser/locale_helper.cc#L37
If I don't have IOS in there, I get a compilation error when building for iOS in Debug about a duplicate symbol GetInstanceImp defined in locale_helper.o and locale_helper_ios.o.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes apologies as was checking in my mobile and missed that. Thanks

Copy link
Collaborator

@tmancey tmancey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mkarolin
Copy link
Collaborator Author

mkarolin commented Sep 14, 2020

When uplifting, also uplift fixes for:

brave/brave-browser#11707 (only present in 1.16.x)
brave/brave-browser#11709
brave/brave-browser#11504
brave/brave-browser#11741
brave/brave-browser#11747

@bsclifton bsclifton mentioned this pull request Sep 14, 2020
32 tasks
mkarolin added a commit that referenced this pull request Sep 21, 2020
Upgrade from Chromium 85 to Chromium 86.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/run-network-audit Run network-audit
Projects
None yet