Files
electron/shell
9e1fffcfb5 chore: bump chromium to 157.0.8091.0 (main) (#54740)
* chore: bump chromium in DEPS to 157.0.8091.0

* chore: update siso revision

* 8518399: [Fullscreen] Reject requestFullscreen() when FullscreenAllowed is false

Upstream moved the kFullscreenAllowed pref check into a new
IsFullscreenAllowedByPref() helper that is now consulted from both
CanEnterFullscreenModeForTab() and EnterFullscreenModeInternal().
Electron has no Profile (ExclusiveAccessContext::GetProfile() returns
nullptr), so guarding only the old call site would now reject every
fullscreen request on non-Mac platforms. Disable the pref lookup inside
the helper instead so it always allows fullscreen.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8518399

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 7867823: [android] Add a feature to propagate occlusion to viz

DisplayPrivate::SetDisplayVisible() now takes a
viz::mojom::DisplayVisibility enum instead of a bool. Keep the display
kVisible whenever background throttling is disabled, and kInvisible only
when throttling is enabled and the compositor is hidden.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7867823

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8510323: Use C++20 std::numbers::e and std::numbers::sqrt2 in blink

Remove the cherry-pick patch now that the upstream change has rolled in.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8510323

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8403316: [content] Add ContentClient::Schemes::code_cache_schemes

Upstream landed the embedder code cache scheme list that
feat_allow_code_cache_in_custom_schemes.patch added (it cites the
patch's earlier CL 5019665), so the patch is removed. The upstream
version records the schemes in blink::CommonSchemeRegistry rather than
in url::SchemeRegistry, so:

- RegisterSchemesAsPrivileged() now calls
  CommonSchemeRegistry::RegisterURLSchemeAsSupportingCodeCache() for
  custom schemes with codeCache enabled. The browser process registers
  these after RegisterContentSchemes() has already run, so it cannot
  rely on ContentClient::Schemes for them. Renderers keep registering
  them as CodeCacheWithHashing from the --code-cache-schemes switch.
- ElectronContentClient lists chrome-extension in
  Schemes::code_cache_schemes, matching ChromeContentClient, since the
  browser-side checks no longer special-case IsExtensionScheme().
- feat_allow_enabling_extensions_on_custom_protocols.patch loses the
  removed url::AddCodeCacheScheme() lines from its context.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8403316

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* chore: update patches

* 8362417: content: Add CopyFromSurfaceSecure and plumb is_secure to capturer

RenderWidgetHostViewBase::CopyFromSurface() is now final and dispatches
to CopyFromSurfaceImpl(), which takes is_copy_request_secure and must
pass it on to DelegatedFrameHost::CopyFromCompositingSurface().

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8362417

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8499040: Decisions API: Add Blink IDL, Mojo interfaces, Echo impl, and WPTs

Stub the new AIManager decision model methods as unavailable, like the
other unsupported AI APIs.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8499040

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8349225: Decouple Cookies API from Profile via CookiesApiDelegate

ExtensionsBrowserClient::GetBrowserContextLifetimeTracker() is now pure
virtual. Electron has no off-the-record sibling contexts to track, so
return nullptr, which the cookies API handles.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8349225

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8285500: hid: Restrict WebHID access in guest and partitioned contexts

HidDelegate::IsHidAllowedForFrame() is now pure virtual and gates
HidService creation. Mirror ElectronUsbDelegate::PageMayUseUsb(): deny
WebViewGuests and HTTP(S) pages in non-default storage partitions.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8285500

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8488316: [Linux] Query XDG portal versions per interface

RequestXdgDesktopPortal() now takes the portal interface whose version
to report; pass the FileChooser interface.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8488316

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8508466: Remove duplicate DownloadManager::CreateDownloadItem() overload

Pass an empty display_name, as the removed overload did.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8508466

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* 8357569: Move Cookies API implementation to //extensions

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8357569

* 8485746: gin: Use v8::CppHeapExternal for CallbackHolderBase

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8485746

* fix: re-enable v8 metagen

Skip-Lint: enabling a feature with cherry picked CL.

* fixup! 8499040: Decisions API: Add Blink IDL, Mojo interfaces, Echo impl, and WPTs

* 8526928: Reland "Mac: Activate the widget when focusing a View in an inactive widget"

FocusManager::SetFocusedViewWithReason() now activates an inactive widget
before focusing a View in it on macOS, and
NativeWidgetMacNSWindowHost::OnIsFirstResponderChanged() no longer
restores focus while the window is not key.

Forward both notifications to super so the views host tracks the
window's key status.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8526928

* fix: stop the remote debugging HTTP server on shutdown

DevToolsHttpHandler keeps a raw_ptr to the DevToolsManagerDelegate owned
by the DevToolsManager singleton, which is destroyed at exit. Electron
never stopped the HTTP server, so the delegate was freed while the
handler still pointed at it.

Skip-Lint: raw_ptr shutdown crash fix

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: electron-claude[bot] <279139701+electron-claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
2026-10-09 17:46:09 -05:00
..