chore: bump chromium to 94.0.4584.0 (main) (#30030)
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com> Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
parent
a6ab702ae4
commit
64ba8feb93
97 changed files with 531 additions and 553 deletions
|
@ -37,7 +37,6 @@
|
|||
#include "content/browser/renderer_host/render_widget_host_impl.h" // nogncheck
|
||||
#include "content/browser/renderer_host/render_widget_host_view_base.h" // nogncheck
|
||||
#include "content/public/browser/child_process_security_policy.h"
|
||||
#include "content/public/browser/color_chooser.h"
|
||||
#include "content/public/browser/context_menu_params.h"
|
||||
#include "content/public/browser/download_request_utils.h"
|
||||
#include "content/public/browser/favicon_status.h"
|
||||
|
@ -174,10 +173,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_COLOR_CHOOSER)
|
||||
#include "chrome/browser/ui/color_chooser.h"
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_PICTURE_IN_PICTURE)
|
||||
#include "chrome/browser/picture_in_picture/picture_in_picture_window_manager.h"
|
||||
#endif
|
||||
|
@ -877,8 +872,14 @@ void WebContents::InitWithExtensionView(v8::Isolate* isolate,
|
|||
extensions::mojom::ViewType view_type) {
|
||||
// Must reassign type prior to calling `Init`.
|
||||
type_ = GetTypeFromViewType(view_type);
|
||||
if (GetType() == Type::kRemote)
|
||||
if (type_ == Type::kRemote)
|
||||
return;
|
||||
if (type_ == Type::kBackgroundPage)
|
||||
// non-background-page WebContents are retained by other classes. We need
|
||||
// to pin here to prevent background-page WebContents from being GC'd.
|
||||
// The background page api::WebContents will live until the underlying
|
||||
// content::WebContents is destroyed.
|
||||
Pin(isolate);
|
||||
|
||||
// Allow toggling DevTools for background pages
|
||||
Observe(web_contents);
|
||||
|
@ -2519,7 +2520,7 @@ void WebContents::Print(gin::Arguments* args) {
|
|||
// We don't want to allow the user to enable these settings
|
||||
// but we need to set them or a CHECK is hit.
|
||||
settings.SetIntKey(printing::kSettingPrinterType,
|
||||
static_cast<int>(printing::PrinterType::kLocal));
|
||||
static_cast<int>(printing::mojom::PrinterType::kLocal));
|
||||
settings.SetBoolKey(printing::kSettingShouldPrintSelectionOnly, false);
|
||||
settings.SetBoolKey(printing::kSettingRasterizePdf, false);
|
||||
|
||||
|
@ -3202,17 +3203,6 @@ bool WebContents::CanOverscrollContent() {
|
|||
return false;
|
||||
}
|
||||
|
||||
std::unique_ptr<content::ColorChooser> WebContents::OpenColorChooser(
|
||||
content::WebContents* web_contents,
|
||||
SkColor color,
|
||||
const std::vector<blink::mojom::ColorSuggestionPtr>& suggestions) {
|
||||
#if BUILDFLAG(ENABLE_COLOR_CHOOSER)
|
||||
return chrome::ShowColorChooser(web_contents, color);
|
||||
#else
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
std::unique_ptr<content::EyeDropper> WebContents::OpenEyeDropper(
|
||||
content::RenderFrameHost* frame,
|
||||
content::EyeDropperListener* listener) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue