mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Update to Chromium version 89.0.4389.0 (#843830)
- SSE3 is now required on x86 processors (see https://crbug.com/1123353).
This commit is contained in:
		@@ -13,10 +13,10 @@ index ba0c5c3fc044..b4df9af95ecd 100644
 | 
			
		||||
   return false;
 | 
			
		||||
 }
 | 
			
		||||
diff --git chrome/browser/ui/browser.cc chrome/browser/ui/browser.cc
 | 
			
		||||
index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
index 1dc23535c42a..4aae0399346f 100644
 | 
			
		||||
--- chrome/browser/ui/browser.cc
 | 
			
		||||
+++ chrome/browser/ui/browser.cc
 | 
			
		||||
@@ -255,6 +255,20 @@
 | 
			
		||||
@@ -257,6 +257,20 @@
 | 
			
		||||
 #include "components/captive_portal/content/captive_portal_tab_helper.h"
 | 
			
		||||
 #endif
 | 
			
		||||
 
 | 
			
		||||
@@ -37,8 +37,8 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 #if BUILDFLAG(ENABLE_EXTENSIONS)
 | 
			
		||||
 #include "chrome/browser/extensions/extension_browser_window_helper.h"
 | 
			
		||||
 #endif
 | 
			
		||||
@@ -477,6 +491,13 @@ Browser::Browser(const CreateParams& params)
 | 
			
		||||
 {
 | 
			
		||||
@@ -480,6 +494,13 @@ Browser::Browser(const CreateParams& params)
 | 
			
		||||
 
 | 
			
		||||
   tab_strip_model_->AddObserver(this);
 | 
			
		||||
 
 | 
			
		||||
+#if BUILDFLAG(ENABLE_CEF)
 | 
			
		||||
@@ -51,7 +51,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
   location_bar_model_ = std::make_unique<LocationBarModelImpl>(
 | 
			
		||||
       location_bar_model_delegate_.get(), content::kMaxURLDisplayChars);
 | 
			
		||||
 
 | 
			
		||||
@@ -1335,6 +1356,14 @@ content::KeyboardEventProcessingResult Browser::PreHandleKeyboardEvent(
 | 
			
		||||
@@ -1343,6 +1364,14 @@ content::KeyboardEventProcessingResult Browser::PreHandleKeyboardEvent(
 | 
			
		||||
   if (exclusive_access_manager_->HandleUserKeyEvent(event))
 | 
			
		||||
     return content::KeyboardEventProcessingResult::HANDLED;
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
   return window()->PreHandleKeyboardEvent(event);
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -1342,8 +1371,18 @@ bool Browser::HandleKeyboardEvent(content::WebContents* source,
 | 
			
		||||
@@ -1350,8 +1379,18 @@ bool Browser::HandleKeyboardEvent(content::WebContents* source,
 | 
			
		||||
                                   const NativeWebKeyboardEvent& event) {
 | 
			
		||||
   DevToolsWindow* devtools_window =
 | 
			
		||||
       DevToolsWindow::GetInstanceForInspectedWebContents(source);
 | 
			
		||||
@@ -87,7 +87,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 bool Browser::TabsNeedBeforeUnloadFired() {
 | 
			
		||||
@@ -1572,6 +1611,14 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
 | 
			
		||||
@@ -1579,6 +1618,14 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
 | 
			
		||||
     return window->OpenURLFromTab(source, params);
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
@@ -102,7 +102,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
   NavigateParams nav_params(this, params.url, params.transition);
 | 
			
		||||
   nav_params.FillNavigateParamsFromOpenURLParams(params);
 | 
			
		||||
   nav_params.source_contents = source;
 | 
			
		||||
@@ -1684,6 +1731,8 @@ void Browser::LoadingStateChanged(WebContents* source,
 | 
			
		||||
@@ -1692,6 +1739,8 @@ void Browser::LoadingStateChanged(WebContents* source,
 | 
			
		||||
                                   bool to_different_document) {
 | 
			
		||||
   ScheduleUIUpdate(source, content::INVALIDATE_TYPE_LOAD);
 | 
			
		||||
   UpdateWindowForLoadingStateChanged(source, to_different_document);
 | 
			
		||||
@@ -111,7 +111,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 void Browser::CloseContents(WebContents* source) {
 | 
			
		||||
@@ -1711,6 +1760,8 @@ void Browser::SetContentsBounds(WebContents* source, const gfx::Rect& bounds) {
 | 
			
		||||
@@ -1719,6 +1768,8 @@ void Browser::SetContentsBounds(WebContents* source, const gfx::Rect& bounds) {
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
 | 
			
		||||
@@ -120,7 +120,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
   if (!GetStatusBubble())
 | 
			
		||||
     return;
 | 
			
		||||
 
 | 
			
		||||
@@ -1718,6 +1769,17 @@ void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
 | 
			
		||||
@@ -1726,6 +1777,17 @@ void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
 | 
			
		||||
     GetStatusBubble()->SetURL(url);
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -138,7 +138,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 void Browser::ContentsMouseEvent(WebContents* source,
 | 
			
		||||
                                  bool motion,
 | 
			
		||||
                                  bool exited) {
 | 
			
		||||
@@ -1834,6 +1896,10 @@ void Browser::WebContentsCreated(WebContents* source_contents,
 | 
			
		||||
@@ -1842,6 +1904,10 @@ void Browser::WebContentsCreated(WebContents* source_contents,
 | 
			
		||||
 
 | 
			
		||||
   // Make the tab show up in the task manager.
 | 
			
		||||
   task_manager::WebContentsTags::CreateForTabContents(new_contents);
 | 
			
		||||
@@ -149,7 +149,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 void Browser::PortalWebContentsCreated(WebContents* portal_web_contents) {
 | 
			
		||||
@@ -1870,6 +1936,8 @@ void Browser::RendererResponsive(
 | 
			
		||||
@@ -1878,6 +1944,8 @@ void Browser::RendererResponsive(
 | 
			
		||||
 void Browser::DidNavigateMainFramePostCommit(WebContents* web_contents) {
 | 
			
		||||
   if (web_contents == tab_strip_model_->GetActiveWebContents())
 | 
			
		||||
     UpdateBookmarkBarState(BOOKMARK_BAR_STATE_CHANGE_TAB_STATE);
 | 
			
		||||
@@ -158,7 +158,7 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 content::JavaScriptDialogManager* Browser::GetJavaScriptDialogManager(
 | 
			
		||||
@@ -1916,11 +1984,15 @@ void Browser::EnterFullscreenModeForTab(
 | 
			
		||||
@@ -1924,11 +1992,15 @@ void Browser::EnterFullscreenModeForTab(
 | 
			
		||||
     const blink::mojom::FullscreenOptions& options) {
 | 
			
		||||
   exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
 | 
			
		||||
       requesting_frame, options.display_id);
 | 
			
		||||
@@ -174,8 +174,8 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
 bool Browser::IsFullscreenForTabOrPending(const WebContents* web_contents) {
 | 
			
		||||
@@ -2814,6 +2886,8 @@ void Browser::SetAsDelegate(WebContents* web_contents, bool set_delegate) {
 | 
			
		||||
     content_translate_driver->RemoveObserver(this);
 | 
			
		||||
@@ -2826,6 +2898,8 @@ void Browser::SetAsDelegate(WebContents* web_contents, bool set_delegate) {
 | 
			
		||||
     content_translate_driver->RemoveTranslationObserver(this);
 | 
			
		||||
     BookmarkTabHelper::FromWebContents(web_contents)->RemoveObserver(this);
 | 
			
		||||
   }
 | 
			
		||||
+
 | 
			
		||||
@@ -184,18 +184,18 @@ index 2c9d816e1aff..a07928ddc18c 100644
 | 
			
		||||
 
 | 
			
		||||
 void Browser::CloseFrame() {
 | 
			
		||||
diff --git chrome/browser/ui/browser.h chrome/browser/ui/browser.h
 | 
			
		||||
index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
index 7287ec00c3f5..93df2551fab7 100644
 | 
			
		||||
--- chrome/browser/ui/browser.h
 | 
			
		||||
+++ chrome/browser/ui/browser.h
 | 
			
		||||
@@ -21,6 +21,7 @@
 | 
			
		||||
 #include "base/strings/string16.h"
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
 #include "base/timer/elapsed_timer.h"
 | 
			
		||||
 #include "build/build_config.h"
 | 
			
		||||
 #include "build/chromeos_buildflags.h"
 | 
			
		||||
+#include "cef/libcef/features/runtime.h"
 | 
			
		||||
 #include "chrome/browser/devtools/devtools_toggle_action.h"
 | 
			
		||||
 #include "chrome/browser/profiles/scoped_profile_keep_alive.h"
 | 
			
		||||
 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
 | 
			
		||||
 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_observer.h"
 | 
			
		||||
@@ -56,6 +57,10 @@
 | 
			
		||||
@@ -58,6 +59,10 @@
 | 
			
		||||
 #include "ui/gfx/geometry/rect.h"
 | 
			
		||||
 #include "ui/shell_dialogs/select_file_dialog.h"
 | 
			
		||||
 
 | 
			
		||||
@@ -206,7 +206,7 @@ index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
 #if defined(OS_ANDROID)
 | 
			
		||||
 #error This file should only be included on desktop.
 | 
			
		||||
 #endif
 | 
			
		||||
@@ -259,6 +264,11 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
@@ -269,6 +274,11 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
     // User-set title of this browser window, if there is one.
 | 
			
		||||
     std::string user_title;
 | 
			
		||||
 
 | 
			
		||||
@@ -218,7 +218,7 @@ index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
    private:
 | 
			
		||||
     friend class Browser;
 | 
			
		||||
     friend class WindowSizerChromeOSTest;
 | 
			
		||||
@@ -377,6 +387,12 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
@@ -386,6 +396,12 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
     return &signin_view_controller_;
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
@@ -231,7 +231,7 @@ index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
   // Get the FindBarController for this browser, creating it if it does not
 | 
			
		||||
   // yet exist.
 | 
			
		||||
   FindBarController* GetFindBarController();
 | 
			
		||||
@@ -762,6 +778,11 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
@@ -770,6 +786,11 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
   void SetContentsBounds(content::WebContents* source,
 | 
			
		||||
                          const gfx::Rect& bounds) override;
 | 
			
		||||
   void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
 | 
			
		||||
@@ -243,7 +243,7 @@ index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
   void ContentsMouseEvent(content::WebContents* source,
 | 
			
		||||
                           bool motion,
 | 
			
		||||
                           bool exited) override;
 | 
			
		||||
@@ -1229,6 +1250,10 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
@@ -1240,6 +1261,10 @@ class Browser : public TabStripModelObserver,
 | 
			
		||||
       extension_browser_window_helper_;
 | 
			
		||||
 #endif
 | 
			
		||||
 
 | 
			
		||||
@@ -255,10 +255,10 @@ index afd852999cd7..a2d2df4838f7 100644
 | 
			
		||||
 
 | 
			
		||||
   // Stores the list of browser windows showing via a menu.
 | 
			
		||||
diff --git chrome/browser/ui/browser_navigator.cc chrome/browser/ui/browser_navigator.cc
 | 
			
		||||
index 9e3369185322..95abb6f37561 100644
 | 
			
		||||
index 4bf854459b2c..20e348eb9293 100644
 | 
			
		||||
--- chrome/browser/ui/browser_navigator.cc
 | 
			
		||||
+++ chrome/browser/ui/browser_navigator.cc
 | 
			
		||||
@@ -435,6 +435,13 @@ std::unique_ptr<content::WebContents> CreateTargetContents(
 | 
			
		||||
@@ -453,6 +453,13 @@ std::unique_ptr<content::WebContents> CreateTargetContents(
 | 
			
		||||
   std::unique_ptr<WebContents> target_contents =
 | 
			
		||||
       WebContents::Create(create_params);
 | 
			
		||||
 
 | 
			
		||||
@@ -273,7 +273,7 @@ index 9e3369185322..95abb6f37561 100644
 | 
			
		||||
   // tab helpers, so the entire set of tab helpers needs to be set up
 | 
			
		||||
   // immediately.
 | 
			
		||||
diff --git chrome/browser/ui/browser_tabstrip.cc chrome/browser/ui/browser_tabstrip.cc
 | 
			
		||||
index 6f917199c655..bf7802b8d707 100644
 | 
			
		||||
index 899b0e532c45..2fad68ec3e51 100644
 | 
			
		||||
--- chrome/browser/ui/browser_tabstrip.cc
 | 
			
		||||
+++ chrome/browser/ui/browser_tabstrip.cc
 | 
			
		||||
@@ -30,9 +30,13 @@ void AddTabAt(Browser* browser,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user