Charles Kerr
5a6f1ede6a
feat!: remove support for ProtocolResponse.session null value ( #46264 )
...
BREAKING CHANGE
This was deprecated in f7ba0d3b
& is now being removed for Electron 37.
2025-04-01 08:52:12 -05:00
Shelley Vohr
9c4720766d
fix: UtilityProcess.fork
crash before app ready ( #46380 )
...
fix: UtilityProcess.fork crash before app ready
2025-04-01 13:42:03 +02:00
Shelley Vohr
5da75c4a97
feat: support system-context-menu
on Linux ( #45848 )
...
feat: support system-context-menu on Linux
2025-04-01 11:00:39 +02:00
Calvin
09135443a0
feat: Corner Smoothing CSS rule (Reland) ( #46278 )
...
* feat: Corner Smoothing CSS rule (Reland)
Reland of #45185
* Fix patch conflicts
* fixup! Fix patch conflicts
* Update expected image
The dashed border is subtly different. The new version is correct and the old one was incorrect.
2025-03-31 11:22:23 -05:00
Samuel Attard
49aba471dc
feat: add support for associating a Menu with a WebFrameMain ( #45138 )
...
* feat: add support for associating a Menu with a WebFrameMain
This allows certain OS level features to activate such as Writing Tools, Autofill.. and Services.
There appears to be a bug in macOS where the responder chain isn't traversed if the menu is not popped up using an event, as such we spoof a fake mouse event at the write coordinates in the right window and use that to open the menu.
* build: fix build on non-mac
* build: oops missed a header
* fix: safely handle optional T* by checking nullptr too
* build: fix gn check and build errors
* docs: suggested changes
* feat: default `frame` to `window.webContents.mainFrame` when possible
* fix: avoid deref nullptr view
* Revert "feat: default `frame` to `window.webContents.mainFrame` when possible"
This reverts commit 2e888368199317d67f6ad931a7e9eff0295c4b1b.
* fix: lint
* Remove redundant scoped objects
This code, including the comments, matches almost exactly the behavior of this argument to the function.
* Add ScopedPumpMessagesInPrivateModes patch
* More null pointer safety
---------
Co-authored-by: clavin <clavin@electronjs.org>
2025-03-28 11:50:07 -07:00
Shelley Vohr
d2c2261c58
fix: hard crash on invalid command line switches ( #46004 )
...
* fix: hard crash on invalid command line switch
* Update docs/api/command-line.md
Co-authored-by: Niklas Wenzel <dev@nikwen.de>
* chore: feedback from review
* docs: Add breaking change note
---------
Co-authored-by: Niklas Wenzel <dev@nikwen.de>
2025-03-26 08:14:03 -05:00
Charles Kerr
f7ba0d3b4b
docs: deprecate setting ProtocolResponse.session to null ( #46131 )
...
* docs: deprecate setting ProtocolResponse.session to null
* docs: mark null ProtocolResponse.session as deprecated in struct docs
* Update docs/breaking-changes.md
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
---------
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
2025-03-25 10:04:21 -05:00
Calvin
abaef13c0b
fix: Revert "feat: Corner Smoothing CSS rule" ( #46231 )
...
Revert "feat: Corner Smoothing CSS rule (#45185 )"
This reverts commit b75e802280
.
2025-03-24 20:36:49 +01:00
Calvin
b75e802280
feat: Corner Smoothing CSS rule ( #45185 )
...
* feat: Corner Smoothing
* Patch Blink to add CSS rule and Painting
* Add `system-ui` keyword
* Add `cornerSmoothingCSS` web preference
* Add tests
* Documentation
* fixup! Documentation
* fix: initialize smoothness value
* Use a 1.0 scale factor in tests
* Fix tests for CI
* Fix tests
* fixup! Merge branch 'main' into clavin/corner-smoothing
* Add code docs
* Document `system-ui` keyword values
* Address review comments
* fixup! Address review comments
* Address review comments
* Update patch to address upstream changes
The patch went from 694 lines to 505 lines, which is a 27.2% smaller!
* fixup! Update patch to address upstream changes
2025-03-24 11:46:12 -04:00
Shelley Vohr
9ec14b91e7
feat: add BrowserWindow.isSnapped()
( #46079 )
...
* feat: add BrowserWindow.isSnapped() on Windows
* docs: mark _Readonly_
2025-03-24 12:09:14 +01:00
Erik Moura
e9082ea57a
docs: fix capitalization for InputEvent.modifiers
( #46130 )
2025-03-23 16:38:15 -05:00
Shelley Vohr
603057b198
fix: remove File.path
from types ( #46005 )
2025-03-21 08:40:49 +01: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
Shelley Vohr
86cc9f626f
fix: APNS token ids are lowercase ASCII ( #46101 )
2025-03-20 07:57:50 +01: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
Niklas Wenzel
e4d660af86
docs: fix code example in breaking-changes.md ( #46093 )
2025-03-19 11:20:22 +01:00
Niklas Wenzel
71f3ff6bf2
docs: fix types of app.dock
( #46073 )
2025-03-18 13:14:08 +01:00
Sam Maddock
afca4e271e
feat: ServiceWorkerMain.scriptURL ( #45863 )
...
feat: serviceWorker.scriptURL
2025-03-14 21:00:13 -04: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
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
electron-roller[bot]
20414f66ca
chore!: bump chromium to 136.0.7054.0 (main) ( #45923 )
...
* chore: bump chromium in DEPS to 136.0.7054.0
* chore: update allow_in-process_windows_to_have_different_web_prefs.patch
Xref: 5906158
patch applied manually due to context shear
* chore: e patches all
* refactor!: Session.clearStorageData(syncable)
Xref: 6309405
Remove syncable type from opts.quota in Session.clearStorageData(opts)
because it that category has been removed upstream.
BREAKING CHANGE: Removed ses.clearDataStorage({ quota: 'syncable' })
* docs: deprecate Session.clearDataStorage({ quota })
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2025-03-07 17:49:21 -06:00
Erick Zhao
431a791a99
chore: emphasize documentation style guide ( #45639 )
...
docs: emphasize documentation style guide
2025-03-06 17:17:06 +01:00
Sam Maddock
8c11764800
feat: WebContents.focusedFrame ( #45667 )
...
feat: webContents.focusedFrame
2025-03-04 11:38:58 -05:00
Michaela Laurencin
3041fd66cd
docs: update timelines for E36 ( #45785 )
...
Update electron-timelines.md
2025-02-28 11:24:40 +01:00
Charles Kerr
b504f65ace
docs: update breaking-changes.md for 35.0.0 ( #45822 )
...
* docs: update breaking-changes.md for 35.0.0
* fixup! docs: update breaking-changes.md for 35.0.0
docs: make lint happy
2025-02-27 22:01:26 -06:00
Charles Kerr
d19cac6772
docs: fix PrinterInfo info in breaking-changes.md ( #45843 )
...
> ### Removed:`isDefault` and `status` properties on `PrinterInfo`
> These properties have been removed from the PrinterInfo Object
> because they have been removed from upstream Chromium.
These properties won't be removed until Electron 36, but
breaking-changes.md lists them as being removed in 35.
This PR corrects the error.
2025-02-27 17:49:58 -06:00
reito
b8d0f18ff8
docs: add docs about shared texture mode osr ( #45670 )
...
* docs: add docs about shared texture mode osr
* docs: add docs about shared texture mode osr
* docs: fix dot
* 更新 web-contents.md
Co-authored-by: Sam Maddock <samuel.maddock@gmail.com>
---------
Co-authored-by: Sam Maddock <samuel.maddock@gmail.com>
2025-02-27 11:10:58 -05:00
co63oc
96c2022483
chore: Fix typos ( #45825 )
2025-02-27 14:31:21 +01:00
Dietrich Ayala
ff05d4a96c
docs: dialog.md - typo fix s/wndow/window/ ( #45831 )
...
Update dialog.md - typo fix
2025-02-27 10:32:42 +01:00
reito
f3259be73c
feat: remove osr framerate limit when use shared texture ( #45669 )
...
feat: remove framerate limit, if use shared texture osr.
2025-02-24 10:21:46 -05:00
Sam Maddock
e3f61b465d
refactor: move extension APIs to session.extensions ( #45597 )
...
refactor: move extensions to session.extensions
2025-02-21 17:36:51 -06:00
Erick Zhao
a63f6143ea
docs: clarify navigationhistory offsets ( #45616 )
...
* docs: clarify navigationhistory offsets
* "relative offset"
2025-02-21 17:35:17 -06:00
Shelley Vohr
340fdaf511
feat: allow setting roundedCorners
on Windows ( #45594 )
...
* feat: allow setting roundedCorners on Windows
* Update docs/api/structures/base-window-options.md
Co-authored-by: Will Anderson <will@itsananderson.com>
---------
Co-authored-by: Will Anderson <will@itsananderson.com>
2025-02-20 15:39:12 -05:00
Milan Burda
22b7403cd1
chore: remove deprecated systemPreferences.isAeroGlassEnabled()
( #45563 )
2025-02-18 18:59:00 -06:00
electron-roller[bot]
47572286f3
chore: bump chromium to 135.0.7015.0 (main) ( #45500 )
...
* 6230977
* chore: bump chromium to 135.0.7012.0
* chore: update accelerator.patch
Support parsing Ctrl+Alt shortcuts | 6238137
* 6234236: Reapply bindings: Pass CppHeap on Isolate creation | 6234236
* 6234614: [ios blink] Move to use external begin frame source | 6234614
* chore: update chromium/feat_add_streaming-protocol_registry_to_multibuffer_data_source.patch
no manual changes; patch applied with fuzz
* chore: update chromium/build_libc_as_static_library.patch
no manual changes; patch applied with fuzz
* chore: remove chromium/cherry-pick-dd8e2822e507.patch
landed upstream
* 6188884: Grit: Remove output_all_resource_defines from list of valid attributes. | 6188884
* 6226981: [views-ax] Remove View::GetAccessibleNodeData() method | 6226981
* 6214895: [views-ax] Deprecate View::NotifyAccessibilityEvent | 6214895
* 6196494: Remove ImageView::SetImage() with ImageSkia param | 6196494
* 6236267: [cleanup] Remove unused PrinterBasicInfo fields | 6236267
* refactor: remove status, isDefault properties from PrinterInfo
Xref: 6236267
* chore: lint
* fixup: added mas bypass to new file added in 6208630
see slack for more context
* chore: node script/gen-libc++-filenames.js
* chore: e patches all
* fix: duplicate crdtp symbols
* chore: update patches
* fixup! [Media Features] Remove launched features
---------
Co-authored-by: alice <alice@makenotion.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
2025-02-18 11:51:27 -05:00
Alice Zhao
02be7c1185
feat: add excludeUrls and modify urls in WebRequestFilter for better URL filtering ( #44692 )
...
* feat: add excludeUrls to web request filter
* refactor: add deprecated field
* test: update tests
* lint: newline
* docs: improve API doc
* fix: add is filter defined property to match all urls
* refactor: remove includeUrls
* refactor: remove typescript binding
* refactor: all_url
* refactor: remove isDefined methods
* refactor: remove comment
* fix: logic
* docs: add to breaking changes
2025-02-17 12:40:47 -08:00
Robo
137a552641
fix: support for v8.setHeapSnapshotNearHeapLimit api ( #45606 )
...
* fix: support for v8.setHeapSnapshotNearHeapLimit api
* docs: add support
2025-02-14 10:00:39 -06:00
Felix Rieseberg
9f47c9a051
feat: Restore webContents navigation history and page state ( #45433 )
...
* feat: Working navigationHistory.restore with just title/url
* feat: Restore page state, too
* chore: Docs, lint, tests
* Implement feedback
* More magic
* Make _awaitNextLoad truly private
* Implement API group feedback
* One more round of feedback
2025-02-11 15:09:38 -08:00
Josh Jancourtz
2f288bc7cc
docs: fix grammar in preload tutorial summary ( #45522 )
2025-02-10 16:15:32 -05:00
Milan Burda
e055ce7c39
chore: deprecate systemPreferences.isAeroGlassEnabled()
( #45434 )
2025-02-10 15:17:07 -05:00
Sam Maddock
e4cd162433
docs: fix powerMonitor event types ( #45518 )
...
* fix: powerMonitor event types
* fix: thermal-state-change missing Returns
2025-02-10 10:13:11 -05:00
Calvin
4085185e2d
docs: transactions-updated
event type ( #45527 )
...
fix: `transactions-updated` event type
2025-02-10 10:12:17 -05:00
Kavindu Udara
d0110d897d
docs: remove width and height params ( #45331 )
...
remove width and height params
2025-02-07 11:42:16 +01:00
Anh Le
6adc737a89
docs: use correct headings in tutorial/security.md ( #45397 )
2025-02-06 11:16:24 +01:00
max54nj
c0282eb9c8
docs: style fixes ( #45458 )
...
* docs: fix code field
* docs: add missing space
2025-02-05 15:10:07 -05:00
Maria Alejandra Arias Frontanilla
471b1a873d
fix: fix typo in docs why-electron.md ( #45437 )
2025-02-05 09:26:47 -06:00
Robo
bec6ddda70
feat: route deprecated sync clipboard read through permission checks ( #45377 )
...
* feat: route deprecated clipboard commands through permission checks
* docs: address review feedback
* fix: enable checks for child windows
2025-02-05 15:13:29 +09:00
Niklas Wenzel
1d27a27813
docs: document deletion of databases
directory ( #45412 )
2025-02-03 16:28:44 -05:00
Niklas Wenzel
d3bead5e0e
docs: mention C++20 requirement in breaking changes document ( #45413 )
...
* docs: mention C++20 requirement in breaking changes document
* chore: fix linter issue
2025-02-03 13:19:26 -08:00
Sam Maddock
e2a7981dd3
feat: view.getVisible() ( #44999 )
...
* feat: view.getVisible()
* test: visible apis
* docs: clarify getVisible
2025-01-31 13:27:16 -05:00