trop[bot]
cb5b28f833
feat: webFrameMain.origin ( #35535 )
...
* feat: webFrameMain.origin
* add tests
* update docs
* fix spec
Co-authored-by: Jeremy Rose <japthorp@slack-corp.com >
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2022-09-15 10:24:50 -07:00
trop[bot]
4be4dc7c4f
fix: ensure history navigations are sandboxed-iframe-aware ( #35622 )
...
Co-authored-by: Jeremy Spiegel <jeremy.spiegel@frontapp.com >
2022-09-12 22:58:07 +02:00
trop[bot]
2f5c0f9eec
fix: session.getBlobData never resolves with blob sizes > 65536 ( #35601 )
...
fix: session.getBlobData never resolves with blob sizes > 65536 (#35277 )
* fix: session.getBlobData never resolves with blob sizes > 65536 (#34398 )
* Add unit test case for session.getBlobData
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org >
Co-authored-by: Frank Pian <bianyongfang@vip.qq.com >
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org >
2022-09-08 06:47:53 -04:00
trop[bot]
44bd6aac3a
fix: compensate for title bar height when setting bounds on BrowserView ( #35494 )
...
fix: compensate for title bar height when setting bounds
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-08-30 11:09:16 +02:00
trop[bot]
dad125a0e0
fix: fullscreen crashing with roundedCorners: false ( #35455 )
...
fix: fullscreen crashing with roundedCorners
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-08-25 15:52:21 +02:00
trop[bot]
3795fbaccb
fix: undefined details.requestingUrl from session.setPermissionCheckHandler ( #35408 )
...
* fix: undefined details.requestingUrl from setPermissionCheckHandler
* fix: compilation error
Co-authored-by: deepak1556 <hop2deep@gmail.com >
2022-08-24 11:42:55 +02:00
trop[bot]
a415eb6f06
fix: promise support with webFrameMain.executeJavaScript ( #35358 )
...
* fix: promise support with webFrameMain.executeJavaScript
* chore: reject when result is an error
Co-authored-by: deepak1556 <hop2deep@gmail.com >
2022-08-23 11:40:04 +02:00
trop[bot]
09beb48648
fix: app.relaunch loses args when execPath specified ( #35253 )
...
fix: app.relaunch loses args when execPath specified (#35108 )
Co-authored-by: Aaron Meriwether <me@ameriwether.com >
2022-08-09 08:55:23 +09:00
trop[bot]
305751aa47
test: temporarily disable tests on mas arm64 that are causing a crash ( #35248 )
...
test: temporarily disable tests on mas arm64 that are causing a crash (#35226 )
* test: temporarily disable test on mas arm64 that is causing crash
* disable the right test
* chore: speculative fix for CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER crash
* enable all the tests
* Revert "chore: speculative fix for CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER crash"
This reverts commit b7c8ef364c .
* test: disable tests that crash on mas arm64
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org >
2022-08-08 15:56:17 -04:00
trop[bot]
910dd786a9
fix: DCHECK entering fullscreen while loading url ( #35165 )
...
* fix: DCHECK entering fullscreen while loading url
* spec: fixup test
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-08-02 11:34:45 -04:00
Keeley Hammond
08aa57806e
feat: sandbox preloads by default ( #35125 )
...
feat: sandbox preloads by default (#32869 )
Co-authored-by: Jeremy Rose <jeremya@chromium.org >
2022-07-29 15:06:31 -07:00
trop[bot]
c61a14c5d1
fix: empty result of webContents.getUserAgent() ( #35131 )
...
fix: empty result of webContents.getUserAgent()
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-07-29 11:26:33 -07:00
trop[bot]
e02fbe1d29
fix: crash on BrowserWindow.setEnabled() ( #34972 )
...
fix: crash on BrowserWindow.setEnabled()
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-07-21 10:38:44 +02:00
trop[bot]
76975dfefd
fix: enable deviceName validation on Linux ( #34901 )
2022-07-14 09:38:23 +02:00
trop[bot]
5a121dd077
fix: safer check for WCO button updates ( #34875 )
...
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-07-12 15:51:20 +02:00
trop[bot]
659b2c3c52
test: add first-party-set chromium tests ( #34842 )
...
test: add first-part-set chromium feature tests
Co-authored-by: Keeley Hammond <khammond@slack-corp.com >
2022-07-08 09:44:28 -07:00
trop[bot]
46d609fc2c
fix: window button visibility fullscreen interaction ( #34675 )
...
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-06-22 12:27:22 +02:00
trop[bot]
ff7f2a5091
fix: make preload calculation identical between sandbox & non-sandboxed ( #34585 )
...
* fix: make preload calculation identical between sandbox & non-sandboxed
* fix test
* split IPCs
* fix ipc constant
* fix unneeded async function
* remove unused preloads blink preferences
* fix typings
Co-authored-by: Jeremy Rose <japthorp@slack-corp.com >
2022-06-20 10:02:49 +09:00
trop[bot]
10131e36f3
fix: crash when setWindowOpenHandler callback throws ( #34547 )
...
* fix: crash when setWindowOpenHandler throws
* refactor: throw as process uncaughtException event
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-06-15 14:25:41 +09:00
trop[bot]
e174aac845
fix: make navigator.userAgentData non-empty ( #34524 )
...
fix: make navigator.userAgentData non-empty (#34481 )
Co-authored-by: Jeremy Rose <jeremya@chromium.org >
2022-06-13 16:04:47 -04:00
trop[bot]
dd1a692aba
chore: remove unused proxy-window-open.snapshot.txt ( #34521 )
...
chore: remove unused spec-main/fixtures/snapshots/proxy-window-open.snapshot.txt
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2022-06-13 16:21:57 +02:00
trop[bot]
16561d08ae
fix: update normal bounds prior to minimizing ( #34486 )
...
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-06-13 11:17:42 +02:00
trop[bot]
69179bbfe7
fix: html fullscreen transitions stacking ( #34468 )
...
* fix: html fullscreen transitions stacking
* spec: move webview test to spec-main
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-06-08 11:33:17 +02:00
trop[bot]
b64b87a8d6
test: fix for flaky renderer crash test ( #34454 )
...
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com >
2022-06-08 16:44:06 +09:00
trop[bot]
7bdc9d8039
fix: fullscreen windows aren't resizable on macOS ( #34433 )
...
* fix: fullscreen windows aren't resizable on macOS
* chore: GetStyleMask -> HasStyleMask
* chore: depreacate style names
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
Co-authored-by: Cheng Zhao <zcbenz@gmail.com >
2022-06-06 15:03:51 -04:00
trop[bot]
bde27c7e6b
fix: render process crash handling ( #34432 )
...
* fix: crash when renderer process is reused
Could occur when a renderer crashes and the same-origin URL is loaded again
which leads to reusing the renderer process.
* test: renderer process crash recovery
* fix: handle case which leads to render frame DCHECK
* fix: lint
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com >
2022-06-02 19:53:12 -07:00
electron-roller[bot]
948949f83d
chore: bump chromium to 104.0.5073.0 (20-x-y) ( #34352 )
2022-06-02 10:54:37 +02:00
trop[bot]
4b793692ea
fix: zombie windows when fullscreening and closing ( #34393 )
...
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-05-31 13:15:31 -04:00
John Kleinschmidt
ba573f5583
feat: add support for HIDDevice.forget() ( #34210 )
...
* feat: add support for HIDDevice.forget()
* chore: remove whitespace
* chore: use `SetGetter` to serialize the render_frame_host
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com >
* fixup chore: use `SetGetter` to serialize the render_frame_host
* fixup after rebase
* fixup for crash on navigator.serial.getPorts()
* fixup for lint
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com >
2022-05-23 15:13:18 -04:00
Milan Burda
09a80ea48c
test: use webContents.setWindowOpenHandler() in specs ( #34310 )
2022-05-23 16:39:50 +02:00
John Kleinschmidt
887b5a7dc7
fix: crash on navigator.serial.getPorts() ( #34280 )
...
* fix: crash on navigator.serial.getPorts()
* test: fixup BrowserWindow.setTitlebarOverlay test
2022-05-23 10:33:39 -04:00
Robo
1639ccf98f
fix: service worker registration with custom protocols ( #34290 )
...
Refs https://github.com/electron/electron/issues/32664
2022-05-23 00:42:37 -07:00
Keeley Hammond
38c21b7aca
revert: add first-instance-ack event to the app.requestSingleInstanceLock() flow ( #34297 )
...
fix: revert "feat: add first-instance-ack event to the `app.requestSingleInstanceLock()` flow"
2022-05-22 22:20:54 -07:00
Shelley Vohr
97c9451efc
fix: WCO crash on bad titlebarStyle ( #34140 )
...
fix: WCO crash on bad titlebarStyle
2022-05-17 11:50:27 -04:00
Shelley Vohr
7af0b58c98
test: add setTitlebarOverlay spec ( #34221 )
...
spec: add setTitlebarOverlay spec
2022-05-16 12:14:27 -04:00
Samuel Attard
ba3aca8200
test: fix background transparency flake ( #34190 )
2022-05-12 09:41:58 +02:00
Shelley Vohr
d67532ee9f
fix: crash when loading extension with missing manifest ( #34168 )
...
* fix: crash when loading extension missing manifest
* Update electron_paks.gni
Co-authored-by: Robo <hop2deep@gmail.com >
Co-authored-by: Robo <hop2deep@gmail.com >
2022-05-11 13:41:06 -07:00
Shelley Vohr
dd6ce91f57
fix: call loadUrl when opening new windows from links ( #34159 )
...
* fix: call loadUrl when opening new windows from links
* spec: add regression test
2022-05-11 11:34:33 -07:00
John Kleinschmidt
6f8a36f404
test: fixup done being called multiple times ( #34175 )
2022-05-11 10:23:24 -07:00
Cheng Zhao
9483e714c4
feat: allow customizing browser data location ( #33554 )
...
* feat: redirect Electron/Chromium cache location
* fix: network services should also use browserData
* test: browserData
* chore: no need to explicitly create dir
* feat: browserData => sessionData
* test: check existings of specific items
* docs: add background on userData and sessionData
Co-authored-by: emmanuel.kimmerlin@thomsonreuters.com <emmanuel.kimmerlin@thomsonreuters.com >
2022-05-09 10:26:57 -04:00
Darshan Sen
03e68e2efe
fix: fix a crash in safeStorage on Linux ( #33913 )
...
On Linux, `isEncryptionAvailable()` was crashing instead of returning a
boolean before the 'ready' event was emitted by the app. The reason of
the crash is that [`CreateKeyStorage()`](https://source.chromium.org/chromium/chromium/src/+/main:components/os_crypt/os_crypt_linux.cc;l=74;drc=35be6215ec8f09e50176f36753c68f26c63d1885;bpv=1;bpt=0 )
expects the config to be set but the function responsible for setting the
config, [`SetConfig()`](https://source.chromium.org/chromium/chromium/src/+/main:components/os_crypt/os_crypt_linux.cc;l=237;drc=35be6215ec8f09e50176f36753c68f26c63d1885;bpv=1;bpt=0 ),
is called only after the app is ready inside [`PostCreateMainMessageLoop()`](https://github.com/electron/electron/blob/main/shell/browser/electron_browser_main_parts.cc#L499 ).
So this changes `IsEncryptionAvailable()` to return `false` when the app
is not ready on Linux and uses that instead of the raw API in other
places like `EncryptString()` and `DecryptString()`.
Fixes: https://github.com/electron/electron/issues/32206
Signed-off-by: Darshan Sen <raisinten@gmail.com >
2022-05-09 09:38:53 -04:00
Samuel Attard
a2a8e493eb
test: unflake some more tests ( #34084 )
...
* test: unflake webview fullscreen test
* test: unflake net throttle test
* Update spec-main/api-net-spec.ts
Co-authored-by: Jeremy Rose <jeremya@chromium.org >
Co-authored-by: Jeremy Rose <jeremya@chromium.org >
2022-05-05 11:42:38 -07:00
Samuel Attard
60f1e5e008
test: unflake some focus tests ( #34061 )
...
* spec: unflake some focus tests
* test: disable flaky webFrame visibiilty spec
2022-05-04 01:29:30 -07:00
Darshan Sen
f887000d50
fix: make BrowserWindow#isFocused() return false when blur() is called on macOS ( #33734 )
...
The isFocused() method on macOS works by checking if the selected
BrowserWindow is a key window. Unfortunately, this didn't work well
with blur() because it wasn't calling any macOS APIs that would change
the key status of the window. Hence, this changes the implementation of
blur() to call orderOut first, which removes the key
status of the window. Then when the orderBack function is called, it
moves the window to the back of its level in the screen list, without
changing the key window.
Fixes: https://github.com/electron/electron/issues/33732
Signed-off-by: Darshan Sen <raisinten@gmail.com >
2022-05-03 16:39:18 +09:00
John Kleinschmidt
a71936e395
test: skip flaky test on 32-bit Windows ( #34021 )
2022-05-02 21:08:20 -04:00
Jamie Magee
e1ed96b574
test: scope internal test fixtures under @electron-ci ( #33822 )
...
* test: scope internal test fixtures under `@electron`
* Missed references
* Move packages from @electron to @electron-ci scope
* Fix tests
2022-05-02 13:09:23 -04:00
Robo
16f8d713ab
fix: apply senderFrame details to ipcMain port event ( #33756 )
2022-04-13 21:01:00 -07:00
Shelley Vohr
b66667b843
feat: allow null when subscribing notification ( #33641 )
...
* feat: allow null when subscribing notification
* docs: document null event
2022-04-13 22:02:33 +02:00
electron-roller[bot]
59dd17f2cf
chore: bump chromium to 102.0.4989.0 (main) ( #33557 )
...
* chore: bump chromium in DEPS to 102.0.4975.0
* chore: bump chromium in DEPS to 102.0.4977.0
* chore: update patches
* Remove parameter of OnGpuProcessCrashed()
https://chromium-review.googlesource.com/c/chromium/src/+/3543396
* hid: Add exclusionFilters option to requestDevice
https://chromium-review.googlesource.com/c/chromium/src/+/3478175
* chore: bump chromium in DEPS to 102.0.4979.0
* chore: bump chromium in DEPS to 102.0.4981.0
* chore: update patches
* Deny notification/push permission for documents in non-standard StoragePartitions
https://chromium-review.googlesource.com/c/chromium/src/+/3257305
* Improve FrameTreeNode tracking in URLLoaderNetworkContext
https://chromium-review.googlesource.com/c/chromium/src/+/3341866
* fixup! Remove parameter of OnGpuProcessCrashed()
* chore: fix lint
* Reland "Use gfx::Insets[F]::TLBR() and gfx::Insets[F]::VH() in the rest of Chrome"
https://chromium-review.googlesource.com/c/chromium/src/+/3554236
* chore: bump chromium in DEPS to 102.0.4983.0
* Ensure EyeDropperView does not access a destroyed window
https://chromium-review.googlesource.com/c/chromium/src/+/3561542
* ci: don't delete dawn .git directory
83901: Adds a generated file with the dawn git hash encoded at build time. | https://dawn-review.googlesource.com/c/dawn/+/83901
* ci: update Windows toolchain
3550827: New toolchain for Windows 10 20348 SDK | https://chromium-review.googlesource.com/c/chromium/src/+/3550827
* chore: bump chromium in DEPS to 102.0.4985.0
* chore: update patches
* chore: bump chromium in DEPS to 102.0.4987.0
* chore: update patches
* 3563432: codehealth: remove uses of DictionaryValue in cbui/webui
https://chromium-review.googlesource.com/c/chromium/src/+/3563432
* chore: update patches after rebase
* Use gfx::Insets[F]::TLBR() and gfx::Insets[F]::VH() in the rest of Chrome
https://chromium-review.googlesource.com/c/chromium/src/+/3554236
* 3565724: Preserve "proper method names" as-is in error.stack.
https://chromium-review.googlesource.com/c/v8/v8/+/3565724
* chore: bump chromium in DEPS to 102.0.4989.0
* chore: update patches
* fixup ci: don't delete dawn .git directory for Windows
* 3560843: Remove multi-parameter version of gfx::Rect[F]::Inset()
https://chromium-review.googlesource.com/c/chromium/src/+/3560843
* 3572711: Remove unused IDS_PDF_TOOLTIP_ROTATE_CW resource.
https://chromium-review.googlesource.com/c/chromium/src/+/3572711
* 3572926: Reland "[Sysroot] Switch to Debian Bullseye stable"
https://chromium-review.googlesource.com/c/chromium/src/+/3572926
* build: fixup sysroots with electron specific dependencies
* fixup Remove multi-parameter version of gfx::Rect[F]::Inset()
* fixup 3565724: Preserve "proper method names" as-is in error.stack.
* fixup Remove multi-parameter version of gfx::Rect[F]::Inset()
* test: add spec for navigator.hid.requestDevice({ exclusionFilters: [...] }
* fixup 3565724: Preserve "proper method names" as-is in error.stack.
* ci: use python3 to get the windows toolchain profile
3525960: Explicitly run everything with python3 | https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3525960
* chore: add diagnostic logging
* fix: try calling process.crash()
* chore: remove logging
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com >
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org >
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2022-04-12 13:19:14 +02:00
Shelley Vohr
e8ed9cb4b5
test: re-enable disabled ScriptOrModule specs ( #33702 )
2022-04-12 12:00:42 +02:00