chore: bump chromium to 119.0.6043.0 (main) (#40045)

* chore: bump chromium in DEPS to 119.0.6036.0

* chore: bump chromium in DEPS to 119.0.6037.0

* chore: bump chromium in DEPS to 119.0.6039.0

* chore: bump chromium in DEPS to 119.0.6041.0

* chore: update chromium patches

* 4765230: Move //content/browser/renderer_host/event_with_latency_info.h to //content/common/input | 4765230

* 4890325: ScopedRunLoopTimeout: add custom timeout callback handler for testing | 4890325

* chore: update all patches

* chore: bump chromium in DEPS to 119.0.6043.0

* 4898682: [api] Add Error.cause to V8 API

4898682

* 4837192: Plumb origin through for drags.

4837192

* Prevent content analysis on web pages that don't accept drag and drop.

4814086

* Make getting displayed notifications work with notification attribution.

4738935

* 4898682: [api] Add Error.cause to V8 API

4898682

* lib,test: do not hardcode Buffer.kMaxLength

https://github.com/nodejs/node/pull/49876

* chore: remove Goma warning from mksnapshot_args

* 4776412: Remove Windows-specific wstring variants of StringPrintf() etc.

4776412

* [dPWA] Prevent WebAppInstallInfo from being included on Android

4886594

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: VerteDinde <vertedinde@electronjs.org>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
electron-roller[bot] 2023-10-02 18:01:07 -04:00 committed by GitHub
parent 503ae86ab2
commit 9d0e6d09f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 446 additions and 232 deletions

View file

@ -69,10 +69,12 @@ bool GetProtocolLaunchPath(gin::Arguments* args, std::wstring* exe) {
// Read in optional args arg
std::vector<std::wstring> launch_args;
if (args->GetNext(&launch_args) && !launch_args.empty())
*exe = base::StringPrintf(L"\"%ls\" \"%ls\" \"%%1\"", exe->c_str(),
base::JoinString(launch_args, L"\" \"").c_str());
*exe = base::UTF8ToWide(
base::StringPrintf("\"%ls\" \"%ls\" \"%%1\"", exe->c_str(),
base::JoinString(launch_args, L"\" \"").c_str()));
else
*exe = base::StringPrintf(L"\"%ls\" \"%%1\"", exe->c_str());
*exe =
base::UTF8ToWide(base::StringPrintf("\"%ls\" \"%%1\"", exe->c_str()));
return true;
}
@ -140,8 +142,8 @@ bool FormatCommandLineString(std::wstring* exe,
if (!launch_args.empty()) {
std::u16string joined_launch_args = base::JoinString(launch_args, u" ");
*exe = base::StringPrintf(L"%ls %ls", exe->c_str(),
base::as_wcstr(joined_launch_args));
*exe = base::UTF8ToWide(base::StringPrintf(
"%ls %ls", exe->c_str(), base::as_wcstr(joined_launch_args)));
}
return true;

View file

@ -135,6 +135,10 @@ void PlatformNotificationService::CloseNotification(
void PlatformNotificationService::GetDisplayedNotifications(
DisplayedNotificationsCallback callback) {}
void PlatformNotificationService::GetDisplayedNotificationsForOrigin(
const GURL& origin,
DisplayedNotificationsCallback callback) {}
int64_t PlatformNotificationService::ReadNextPersistentNotificationId() {
// Electron doesn't support persistent notifications.
return 0;

View file

@ -44,6 +44,9 @@ class PlatformNotificationService
void CloseNotification(const std::string& notification_id) override;
void GetDisplayedNotifications(
DisplayedNotificationsCallback callback) override;
void GetDisplayedNotificationsForOrigin(
const GURL& origin,
DisplayedNotificationsCallback callback) override;
int64_t ReadNextPersistentNotificationId() override;
void RecordNotificationUkmEvent(
const content::NotificationDatabaseData& data) override;

View file

@ -164,6 +164,7 @@ bool OffScreenWebContentsView::CloseTabAfterEventTrackingIfNeeded() {
void OffScreenWebContentsView::StartDragging(
const content::DropData& drop_data,
const url::Origin& source_origin,
blink::DragOperationsMask allowed_ops,
const gfx::ImageSkia& image,
const gfx::Vector2d& cursor_offset,
@ -175,8 +176,9 @@ void OffScreenWebContentsView::StartDragging(
->SystemDragEnded(source_rwh);
}
void OffScreenWebContentsView::UpdateDragCursor(
ui::mojom::DragOperation operation) {}
void OffScreenWebContentsView::UpdateDragOperation(
ui::mojom::DragOperation operation,
bool document_is_handling_drag) {}
void OffScreenWebContentsView::SetPainting(bool painting) {
auto* view = GetView();

View file

@ -75,13 +75,15 @@ class OffScreenWebContentsView : public content::WebContentsView,
// content::RenderViewHostDelegateView
void StartDragging(const content::DropData& drop_data,
const url::Origin& source_origin,
blink::DragOperationsMask allowed_ops,
const gfx::ImageSkia& image,
const gfx::Vector2d& cursor_offset,
const gfx::Rect& drag_obj_rect,
const blink::mojom::DragEventSourceInfo& event_info,
content::RenderWidgetHostImpl* source_rwh) override;
void UpdateDragCursor(ui::mojom::DragOperation operation) override;
void UpdateDragOperation(ui::mojom::DragOperation operation,
bool document_is_handling_drag) override;
void SetPainting(bool painting);
bool IsPainting() const;
void SetFrameRate(int frame_rate);

View file

@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/process/launch.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/scoped_handle.h"
#include "sandbox/win/src/nt_internals.h"
#include "sandbox/win/src/win_utils.h"
@ -108,7 +109,8 @@ StringType AddQuoteForArg(const StringType& arg) {
} // namespace
StringType GetWaitEventName(base::ProcessId pid) {
return base::StringPrintf(L"%ls-%d", kWaitEventName, static_cast<int>(pid));
return base::UTF8ToWide(
base::StringPrintf("%ls-%d", kWaitEventName, static_cast<int>(pid)));
}
StringType ArgvToCommandLineString(const StringVector& argv) {