Update to Chromium version 127.0.6533.57

This commit is contained in:
Marshall Greenblatt
2024-07-18 13:35:21 +00:00
committed by Marshall Greenblatt
parent 5bafd32ee1
commit 1567840505
7 changed files with 69 additions and 69 deletions

View File

@@ -154,10 +154,10 @@ index 49e6bdcbd55a6..0425eb49c4296 100644
]
}
diff --git chrome/browser/ui/browser.cc chrome/browser/ui/browser.cc
index b4eadfdbfcfac..8ee3f0f988f6d 100644
index a7a3a0722bcbe..53051e86f03c1 100644
--- chrome/browser/ui/browser.cc
+++ chrome/browser/ui/browser.cc
@@ -272,6 +272,25 @@
@@ -271,6 +271,25 @@
#include "components/captive_portal/content/captive_portal_tab_helper.h"
#endif
@@ -183,7 +183,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/extensions/extension_browser_window_helper.h"
#endif
@@ -537,6 +556,10 @@ Browser::Browser(const CreateParams& params)
@@ -536,6 +555,10 @@ Browser::Browser(const CreateParams& params)
type_(params.type),
profile_(params.profile),
window_(nullptr),
@@ -194,7 +194,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
tab_strip_model_delegate_(
std::make_unique<chrome::BrowserTabStripModelDelegate>(this)),
tab_strip_model_(std::make_unique<TabStripModel>(
@@ -759,6 +782,12 @@ Browser::~Browser() {
@@ -768,6 +791,12 @@ Browser::~Browser() {
// away so they don't try and call back to us.
if (select_file_dialog_.get())
select_file_dialog_->ListenerDestroyed();
@@ -207,7 +207,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
///////////////////////////////////////////////////////////////////////////////
@@ -1219,6 +1248,8 @@ void Browser::WindowFullscreenStateChanged() {
@@ -1241,6 +1270,8 @@ void Browser::WindowFullscreenStateChanged() {
->WindowFullscreenStateChanged();
command_controller_->FullscreenStateChanged();
UpdateBookmarkBarState(BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN);
@@ -216,7 +216,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
void Browser::FullscreenTopUIStateChanged() {
@@ -1592,6 +1623,14 @@ content::KeyboardEventProcessingResult Browser::PreHandleKeyboardEvent(
@@ -1614,6 +1645,14 @@ content::KeyboardEventProcessingResult Browser::PreHandleKeyboardEvent(
if (exclusive_access_manager_->HandleUserKeyEvent(event))
return content::KeyboardEventProcessingResult::HANDLED;
@@ -231,7 +231,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
return window()->PreHandleKeyboardEvent(event);
}
@@ -1599,8 +1638,18 @@ bool Browser::HandleKeyboardEvent(content::WebContents* source,
@@ -1621,8 +1660,18 @@ bool Browser::HandleKeyboardEvent(content::WebContents* source,
const NativeWebKeyboardEvent& event) {
DevToolsWindow* devtools_window =
DevToolsWindow::GetInstanceForInspectedWebContents(source);
@@ -252,7 +252,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
bool Browser::TabsNeedBeforeUnloadFired() const {
@@ -1776,6 +1825,16 @@ WebContents* Browser::OpenURLFromTab(
@@ -1798,6 +1847,16 @@ WebContents* Browser::OpenURLFromTab(
}
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -269,7 +269,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
NavigateParams nav_params(this, params.url, params.transition);
nav_params.FillNavigateParamsFromOpenURLParams(params);
nav_params.source_contents = source;
@@ -1938,6 +1997,8 @@ void Browser::LoadingStateChanged(WebContents* source,
@@ -1960,6 +2019,8 @@ void Browser::LoadingStateChanged(WebContents* source,
bool should_show_loading_ui) {
ScheduleUIUpdate(source, content::INVALIDATE_TYPE_LOAD);
UpdateWindowForLoadingStateChanged(source, should_show_loading_ui);
@@ -278,7 +278,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
void Browser::CloseContents(WebContents* source) {
@@ -1966,6 +2027,8 @@ void Browser::SetContentsBounds(WebContents* source, const gfx::Rect& bounds) {
@@ -1988,6 +2049,8 @@ void Browser::SetContentsBounds(WebContents* source, const gfx::Rect& bounds) {
}
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
@@ -287,7 +287,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
if (!GetStatusBubble())
return;
@@ -1973,6 +2036,17 @@ void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
@@ -1995,6 +2058,17 @@ void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
GetStatusBubble()->SetURL(url);
}
@@ -305,7 +305,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
void Browser::ContentsMouseEvent(WebContents* source, const ui::Event& event) {
const ui::EventType type = event.type();
const bool exited = type == ui::ET_MOUSE_EXITED;
@@ -2000,6 +2074,19 @@ bool Browser::TakeFocus(content::WebContents* source, bool reverse) {
@@ -2022,6 +2096,19 @@ bool Browser::TakeFocus(content::WebContents* source, bool reverse) {
return false;
}
@@ -325,7 +325,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
void Browser::BeforeUnloadFired(WebContents* web_contents,
bool proceed,
bool* proceed_to_fire_unload) {
@@ -2099,12 +2186,24 @@ void Browser::WebContentsCreated(WebContents* source_contents,
@@ -2121,12 +2208,24 @@ void Browser::WebContentsCreated(WebContents* source_contents,
// Make the tab show up in the task manager.
task_manager::WebContentsTags::CreateForTabContents(new_contents);
@@ -350,7 +350,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
// Don't show the page hung dialog when a HTML popup hangs because
// the dialog will take the focus and immediately close the popup.
RenderWidgetHostView* view = render_widget_host->GetView();
@@ -2117,6 +2216,13 @@ void Browser::RendererUnresponsive(
@@ -2139,6 +2238,13 @@ void Browser::RendererUnresponsive(
void Browser::RendererResponsive(
WebContents* source,
content::RenderWidgetHost* render_widget_host) {
@@ -364,7 +364,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
RenderWidgetHostView* view = render_widget_host->GetView();
if (view && !render_widget_host->GetView()->IsHTMLFormPopup()) {
TabDialogs::FromWebContents(source)->HideHungRendererDialog(
@@ -2126,6 +2232,15 @@ void Browser::RendererResponsive(
@@ -2148,6 +2254,15 @@ void Browser::RendererResponsive(
content::JavaScriptDialogManager* Browser::GetJavaScriptDialogManager(
WebContents* source) {
@@ -380,7 +380,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
return javascript_dialogs::TabModalDialogManager::FromWebContents(source);
}
@@ -2161,6 +2276,11 @@ void Browser::DraggableRegionsChanged(
@@ -2183,6 +2298,11 @@ void Browser::DraggableRegionsChanged(
if (app_controller_) {
app_controller_->DraggableRegionsChanged(regions, contents);
}
@@ -392,7 +392,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
void Browser::DidFinishNavigation(
@@ -2241,11 +2361,15 @@ void Browser::EnterFullscreenModeForTab(
@@ -2263,11 +2383,15 @@ void Browser::EnterFullscreenModeForTab(
const blink::mojom::FullscreenOptions& options) {
exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
requesting_frame, options.display_id);
@@ -408,7 +408,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
bool Browser::IsFullscreenForTabOrPending(const WebContents* web_contents) {
@@ -2445,6 +2569,15 @@ void Browser::RequestMediaAccessPermission(
@@ -2467,6 +2591,15 @@ void Browser::RequestMediaAccessPermission(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
content::MediaResponseCallback callback) {
@@ -424,7 +424,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
const extensions::Extension* extension =
GetExtensionForOrigin(profile_, request.security_origin);
MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest(
@@ -2989,9 +3122,11 @@ void Browser::RemoveScheduledUpdatesFor(WebContents* contents) {
@@ -3011,9 +3144,11 @@ void Browser::RemoveScheduledUpdatesFor(WebContents* contents) {
// Browser, Getters for UI (private):
StatusBubble* Browser::GetStatusBubble() {
@@ -437,7 +437,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
// We hide the status bar for web apps windows as this matches native
@@ -2999,6 +3134,12 @@ StatusBubble* Browser::GetStatusBubble() {
@@ -3021,6 +3156,12 @@ StatusBubble* Browser::GetStatusBubble() {
// mode, as the minimal browser UI includes the status bar.
if (web_app::AppBrowserController::IsWebApp(this) &&
!app_controller()->HasMinimalUiButtons()) {
@@ -450,7 +450,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
return nullptr;
}
@@ -3148,6 +3289,8 @@ void Browser::SetAsDelegate(WebContents* web_contents, bool set_delegate) {
@@ -3170,6 +3311,8 @@ void Browser::SetAsDelegate(WebContents* web_contents, bool set_delegate) {
BookmarkTabHelper::FromWebContents(web_contents)->RemoveObserver(this);
web_contents_collection_.StopObserving(web_contents);
}
@@ -459,7 +459,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
}
void Browser::TabDetachedAtImpl(content::WebContents* contents,
@@ -3302,6 +3445,14 @@ bool Browser::PictureInPictureBrowserSupportsWindowFeature(
@@ -3324,6 +3467,14 @@ bool Browser::PictureInPictureBrowserSupportsWindowFeature(
bool Browser::SupportsWindowFeatureImpl(WindowFeature feature,
bool check_can_support) const {
@@ -475,7 +475,7 @@ index b4eadfdbfcfac..8ee3f0f988f6d 100644
case TYPE_NORMAL:
return NormalBrowserSupportsWindowFeature(feature, check_can_support);
diff --git chrome/browser/ui/browser.h chrome/browser/ui/browser.h
index b6d47818d7648..9265c6ffdee64 100644
index 289eb221d6fbb..13aa346aaa37c 100644
--- chrome/browser/ui/browser.h
+++ chrome/browser/ui/browser.h
@@ -24,6 +24,7 @@
@@ -497,7 +497,7 @@ index b6d47818d7648..9265c6ffdee64 100644
#if BUILDFLAG(IS_ANDROID)
#error This file should only be included on desktop.
#endif
@@ -373,6 +378,15 @@ class Browser : public TabStripModelObserver,
@@ -377,6 +382,15 @@ class Browser : public TabStripModelObserver,
// Document Picture in Picture options, specific to TYPE_PICTURE_IN_PICTURE.
std::optional<blink::mojom::PictureInPictureWindowOptions> pip_options;
@@ -513,7 +513,7 @@ index b6d47818d7648..9265c6ffdee64 100644
private:
friend class Browser;
friend class WindowSizerChromeOSTest;
@@ -454,6 +468,13 @@ class Browser : public TabStripModelObserver,
@@ -458,6 +472,13 @@ class Browser : public TabStripModelObserver,
update_ui_immediately_for_testing_ = true;
}
@@ -527,7 +527,7 @@ index b6d47818d7648..9265c6ffdee64 100644
// Accessors ////////////////////////////////////////////////////////////////
const CreateParams& create_params() const { return create_params_; }
@@ -549,6 +570,12 @@ class Browser : public TabStripModelObserver,
@@ -553,6 +574,12 @@ class Browser : public TabStripModelObserver,
base::WeakPtr<Browser> AsWeakPtr();
base::WeakPtr<const Browser> AsWeakPtr() const;
@@ -540,7 +540,7 @@ index b6d47818d7648..9265c6ffdee64 100644
// Get the FindBarController for this browser, creating it if it does not
// yet exist.
FindBarController* GetFindBarController();
@@ -962,10 +989,18 @@ class Browser : public TabStripModelObserver,
@@ -970,10 +997,18 @@ class Browser : public TabStripModelObserver,
void SetContentsBounds(content::WebContents* source,
const gfx::Rect& bounds) override;
void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
@@ -559,7 +559,7 @@ index b6d47818d7648..9265c6ffdee64 100644
void BeforeUnloadFired(content::WebContents* source,
bool proceed,
bool* proceed_to_fire_unload) override;
@@ -1300,6 +1335,10 @@ class Browser : public TabStripModelObserver,
@@ -1308,6 +1343,10 @@ class Browser : public TabStripModelObserver,
// This Browser's window.
raw_ptr<BrowserWindow, DanglingUntriaged> window_;
@@ -570,7 +570,7 @@ index b6d47818d7648..9265c6ffdee64 100644
std::unique_ptr<TabStripModelDelegate> const tab_strip_model_delegate_;
std::unique_ptr<TabStripModel> const tab_strip_model_;
@@ -1366,6 +1405,8 @@ class Browser : public TabStripModelObserver,
@@ -1374,6 +1413,8 @@ class Browser : public TabStripModelObserver,
const std::string initial_workspace_;
bool initial_visible_on_all_workspaces_state_;