John Kleinschmidt
db47267be4
build: Use windows src cache ( #45881 )
...
build: use source cache on windows
2025-03-21 14:45:08 -04:00
Charles Kerr
6723bfbe32
refactor: reduce coupling in electron::api::Protocol
( #46122 )
...
* refactor: decouple api::Protocol from ElectronBrowserContext
now they do not know about each other
* refactor: make electron::api::ProtocolError private
* refactor: remove unused isolate arg in Protocol constructor
* refactor: use =default for trivial destructor
2025-03-21 07:33:25 -05:00
Shelley Vohr
603057b198
fix: remove File.path
from types ( #46005 )
2025-03-21 08:40:49 +01:00
Shelley Vohr
9ccc63d682
fix: add missing cpp_heap
to Node.js worker CreateParams
( #46104 )
2025-03-21 08:40:28 +01:00
LZL
4d7161f36e
feat: add ffmpeg.dll to delay load configuration ( #46151 )
...
feat: set ffmpeg.dll as a delay-loaded DLL
Updated the /DELAYLOAD linker config in BUILD.gn to set ffmpeg.dll
as a delay-loaded DLL. This reduces startup overhead and prevents unnecessary
loading when ffmpeg-related functionality is not used (e.g., the browser process
was unnecessarily loading it).
2025-03-21 16:24:34 +09:00
Shelley Vohr
32141eacfb
refactor: use upstream Widget::IsVisibleOnAllWorkspaces()
( #45887 )
...
* refactor: use upstream Widget::IsVisibleOnAllWorkspaces()
* chore: add to breaking changes
2025-03-20 23:43:47 -05:00
Charles Kerr
1b5db9989e
refactor: make URLPipeLoader private ( #46113 )
...
Move the URLPipeLoader class into an anonymous namespace in
electron_url_loader_factory.cc.
2025-03-20 15:47:47 -05:00
Charles Kerr
46967ca9c9
refactor: Add ElectronBrowserContext::BrowserContexts()
( #46089 )
...
* refactor: add ElectronBrowserContext::BrowserContexts()
* refactor: use ElectronBrowserContext::BrowserContexts() in ElectronBrowserMainParts::PostMainMessageLoopRun()
* refactor: use ElectronBrowserContext::BrowserContexts() in ElectronExtensionsBrowserClient::IsValidContext()
* refactor: use ElectronBrowserContext::BrowserContexts() in ElectronExtensionsBrowserClient::BroadcastEventToRenderers()
* refactor: move PartitionKey, BrowserContextMap private
* refactor: add ElectronBrowserContext::IsValidContext()
decouple ElectronExtensionsBrowserClient from the internals of ElectronBrowserContext
2025-03-20 11:17:26 -05:00
Charles Kerr
273baf4ec2
refactor: use base::NumberToString() ( #46141 )
...
base::NumberToString() is slightly more efficient than
absl::StrFormat("%u").
2025-03-20 10:13:28 +01:00
Charles Kerr
c4800d9934
refactor: remove ToV8(isolate, const char*) ( #46108 )
2025-03-20 10:04:50 +01:00
Shelley Vohr
86cc9f626f
fix: APNS token ids are lowercase ASCII ( #46101 )
2025-03-20 07:57:50 +01:00
Shelley Vohr
09a3bcf0f0
fix: webContents.print()
crash on Linux ( #46087 )
2025-03-20 06:41:00 +01:00
Shelley Vohr
bf64967b68
build: combine pipewire patches ( #46129 )
2025-03-19 23:26:06 -05:00
Niklas Wenzel
bf1d377e08
docs: use optional chaining for app.dock
( #46119 )
...
docs: use optional chaining for app.dock
2025-03-19 18:34:03 -05:00
Shelley Vohr
d424c3aee7
test: disable parallel/test-worker-resource-limits
( #46105 )
...
test: disable parallel/test-worker-resource-limits
2025-03-19 22:03:26 +01:00
Niklas Wenzel
e4d660af86
docs: fix code example in breaking-changes.md ( #46093 )
2025-03-19 11:20:22 +01:00
Shelley Vohr
2efd75e2ca
build: fail for out of date patches on forks ( #46080 )
2025-03-19 10:05:51 +01:00
electron-roller[bot]
b13f05e2dc
chore: bump chromium to 136.0.7067.0 (main) ( #46018 )
...
* chore: bump chromium in DEPS to 136.0.7066.0
* chore: bump chromium in DEPS to 136.0.7067.0
* 6325710: [LNA] Add Local Network Access permission type
Refs 6325710
* 6342514: Create frame mojo endpoints in renderer during window.open()
Refs 6342514
* 6344040: Create widget mojo endpoints in renderer process for window.open()
Refs 6344040
* chore: update patches
* 6349218: Move ExtensionService::install_directory() to ExtensionRegistrar
Refs 6349218
* 6349395: Move ExtensionService::extensions_enabled() to ExtensionRegistrar
Refs 6349395
* 6331510: Migrate views::Background class to ui::ColorVariant | 6331510
* build: reorder set-cookie step https://github.com/electron/electron/pull/46091
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
Co-authored-by: alice <alice@makenotion.com>
2025-03-18 19:20:54 -04:00
Shelley Vohr
dcbab692c0
test: fix app.dock
for corrected type ( #46110 )
...
test: fix app.dock for corrected type
2025-03-18 17:44:39 -04:00
Niklas Wenzel
71f3ff6bf2
docs: fix types of app.dock
( #46073 )
2025-03-18 13:14:08 +01:00
Alice Zhao
ff0a14a7c6
build: move set chromium cookie before build tools step ( #46091 )
...
build: move set cookie before build tools
2025-03-18 10:07:05 +01:00
Charles Kerr
4bf99c9bea
refactor: add ElectronBrowserContext::GetDefaultBrowserContext()
( #46065 )
...
* refactor: add ElectronBrowserContext::DestroyAllContexts()
Simpler semantics than previous implementation; also hides the
"default context must be destroyed last" implementation detail.
* refactor: add ElectronBrowserContext::GetDefaultBrowserContext()
clearer semantics than everyone calling From("", false)
2025-03-17 08:43:23 -05:00
Charles Kerr
9513486bf3
refactor: use GetDefaultStoragePartition()
instead of GetStoragePartition(nullptr)
( #46064 )
...
refactor: use GetDefaultStoragePartition()
Use GetDefaultStorageParition() instead of GetStoragePartition(nullptr)
- It improves code uniformity, since we use get-default everywhere else
- It's more readable
- It's marginally faster, since GetStoragePartition() has more steps
Added in 49b0a1bf4a
2025-03-17 08:39:55 -05:00
Charles Kerr
bea7d618f1
fix: warning in file picker UI ( #46067 )
2025-03-16 20:49:15 -05:00
Charles Kerr
4ad20ccb39
chore: e patches all ( #46068 )
2025-03-16 14:04:01 -05:00
Charles Kerr
73a017577e
perf: avoid redundant map lookup in ElectronBrowserContext::From() ( #46044 )
...
perf: avoid redundant map lookup in ElectronBrowserContext::FromPath()
2025-03-15 09:51:20 -05:00
Shelley Vohr
2d8a547692
build: fix compound bash conditional in patchup ( #46047 )
2025-03-15 09:57:59 +01:00
Charles Kerr
5f0603ed28
fix: ElectronBrowserContext
raw_ptr
bug + remove dead code ( #46030 )
...
refactor: remove unused ElectronBrowserContext::extension_system()
Last use removed on Jul 21, 2020 by 2fb14f5
in PR #24575
This fixes a raw_ptr warning by letting us remove the raw_ptr field
`ElectronBrowserContext::extension_system_`.
2025-03-14 23:35:10 -05:00
Sam Maddock
afca4e271e
feat: ServiceWorkerMain.scriptURL ( #45863 )
...
feat: serviceWorker.scriptURL
2025-03-14 21:00:13 -04:00
Charles Kerr
30d2fadb28
refactor: replace base::StringPrintf() calls with absl::StrFormat() ( #46024 )
...
The former is now a pass-through for the latter and is slated for removal
Xref: https://issues.chromium.org/issues/40241565
4907781
2025-03-14 17:14:32 -05:00
Charles Kerr
3271b82094
refactor: remove unused system header includes ( #46015 )
...
* chore: remove unused #include <string>
* chore: remove unused #include <optional>
* chore: remove unused #include <vector>
* chore: remove unused #include <string_view>
* chore: remove unused #include <memory>
* chore: remove unused #include <utility>
* chore: remove unused #include <tuple>
* chore: remove unused #include <unordered_set>
* chore: remove unused #include <functional>
* chore: iwyu <set>
* chore: iwyu <map>
2025-03-14 10:59:15 -05:00
Shelley Vohr
c0e180758b
fix: don't crash Utility Processes on unhandled rejections ( #45921 )
...
* fix: don't crash on unhandled rejections
* Update docs/breaking-changes.md
Co-authored-by: Niklas Wenzel <dev@nikwen.de>
---------
Co-authored-by: Niklas Wenzel <dev@nikwen.de>
2025-03-14 09:09:02 -05:00
Shelley Vohr
5817d27429
fix: take Snapped status into account when showing a window ( #46006 )
2025-03-14 09:07:27 -05:00
Michaela Laurencin
4812b4e6c2
fix: prevent title change for within page navigation ( #45981 )
...
* fix: prevent title change for on page navigation
* add back and forward testing
* update Chromium comment
* remove errant script tag
2025-03-14 12:10:23 +01:00
Shelley Vohr
7c0b7b417b
fix: emit context-menu
event in Windows draggable regions ( #45851 )
...
fix: emit context-menu event in Windows draggable regions
2025-03-14 10:29:29 +01:00
Charles Kerr
785fe5f3b6
refactor: make a variadic gin_helper::internal::InvokeFactory()
( #45988 )
...
refactor: make a variadic gin_helper::internal::InvokeFactory()
2025-03-13 17:24:49 -05:00
Shelley Vohr
502a6b0166
build: roll sysroots again ( #46016 )
2025-03-13 16:28:53 -05:00
Shelley Vohr
4a28e60e89
fix: package import existence verification ( #45997 )
2025-03-13 14:51:43 -05:00
Shelley Vohr
a90d50e13f
fix: don't crash Web Workers on unhandled rejections ( #45992 )
2025-03-13 13:09:23 -05:00
electron-roller[bot]
962d8b325a
chore: bump chromium to 136.0.7064.0 (main) ( #45985 )
...
* chore: bump chromium in DEPS to 136.0.7063.0
* chore: bump chromium in DEPS to 136.0.7064.0
* 6169919: Instantiate Linux (or CrOS) system fonts using Fontations
Refs 6169919
* 6341209: Remove file-wide unsafe buffer suppression from content/ [1 of N].
Refs 6341209
* chore: update patches
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
2025-03-13 12:02:06 -05:00
Charles Kerr
c813bc2a92
refactor: use private inheritance from mojo::MessageReceiver
( #45973 )
...
* refactor: make UtilityProcessWrapper inherit privately from mojo::MessageReceiver
* refactor: make ParentPort inherit privately from mojo::MessageReceiver
* refactor: make MessagePort inherit privately from mojo::MessageReceiver
2025-03-12 19:06:41 +01:00
Shelley Vohr
5ce41bac8d
fix: system-context-menu
should only fire in draggable regions ( #45893 )
...
fix: system-context-menu should only fire in draggable regions
2025-03-12 13:47:58 +01:00
David Sanders
6bc7bde229
ci: don't fail branch created workflow if previous board not found ( #45986 )
2025-03-12 09:27:40 +01:00
electron-roller[bot]
2de8fd7d93
chore: bump chromium to 136.0.7062.0 (main) ( #45957 )
...
* chore: bump chromium in DEPS to 136.0.7059.0
* chore: bump chromium in DEPS to 136.0.7060.0
* chore: bump chromium in DEPS to 136.0.7062.0
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
2025-03-11 17:44:08 -04:00
Shelley Vohr
dcd319cfbe
build: roll sysroots to pick up glibc fix ( #45974 )
2025-03-11 17:31:48 -04:00
Shelley Vohr
cd56b96544
refactor: remove usage of V8's {Attach|Detach}CppHeap()
( #45922 )
...
* refactor: remove usage of V8's {Attach|Detach}CppHeap()
* chore: remove revert patch
2025-03-11 18:54:33 +01:00
Charles Kerr
22262c14f1
test: fix timing issue in utilityProcess
test fixtures ( #45964 )
...
* fix: potential timing issue in utilityProcess test
* fix: potential timing issue in utilityProcess esm test
2025-03-11 17:41:42 +01:00
dependabot[bot]
6e056709be
build(deps): bump github/codeql-action from 3.28.10 to 3.28.11 ( #45970 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.28.10 to 3.28.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](b56ba49b26...6bb031afdd
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 10:44:00 -05:00
dependabot[bot]
2f63b20acf
build(deps): bump dsanders11/project-actions from 1.5.2 to 1.7.0 ( #45969 )
...
Bumps [dsanders11/project-actions](https://github.com/dsanders11/project-actions ) from 1.5.2 to 1.7.0.
- [Release notes](https://github.com/dsanders11/project-actions/releases )
- [Changelog](https://github.com/dsanders11/project-actions/blob/main/.releaserc.json )
- [Commits](7fc3c5441a...2134fe7cc7
)
---
updated-dependencies:
- dependency-name: dsanders11/project-actions
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 10:43:46 -05:00
Felix Rieseberg
eb126eecb0
docs: Add 'Native Code and Electron' ( #45882 )
...
* docs: Add 'Native Code and Electron'
* docs: Add node-gyp requirements
* Update docs/tutorial/native-code-and-electron.md
Co-authored-by: Erick Zhao <erick@hotmail.ca>
* Cross-platform clean command
* Mention napi-rs
* Apply suggestions from code review
Co-authored-by: Erick Zhao <erick@hotmail.ca>
* Fix lint, fix more comments
* Apply suggestions from code review
Co-authored-by: Erick Zhao <erick@hotmail.ca>
---------
Co-authored-by: Erick Zhao <erick@hotmail.ca>
2025-03-10 13:45:33 -07:00