electron 44.2.0 β 44.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/checksums.json +67 -67
- package/electron.d.ts +168 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
[](https://electronjs.org)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/electron/electron/actions/workflows/build.yml)
|
|
4
|
-
[](https://discord.gg/electronjs)
|
|
5
4
|
|
|
6
5
|
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
|
7
6
|
View these docs in other languages on our [Crowdin](https://crowdin.com/project/electron) project.
|
package/checksums.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v44.
|
|
3
|
-
"chromedriver-v44.
|
|
4
|
-
"chromedriver-v44.
|
|
5
|
-
"chromedriver-v44.
|
|
6
|
-
"chromedriver-v44.
|
|
7
|
-
"chromedriver-v44.
|
|
8
|
-
"chromedriver-v44.
|
|
9
|
-
"chromedriver-v44.
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v44.
|
|
12
|
-
"electron-v44.
|
|
13
|
-
"electron-v44.
|
|
14
|
-
"electron-v44.
|
|
15
|
-
"electron-v44.
|
|
16
|
-
"electron-v44.
|
|
17
|
-
"electron-v44.
|
|
18
|
-
"electron-v44.
|
|
19
|
-
"electron-v44.
|
|
20
|
-
"electron-v44.
|
|
21
|
-
"electron-v44.
|
|
22
|
-
"electron-v44.
|
|
23
|
-
"electron-v44.
|
|
24
|
-
"electron-v44.
|
|
25
|
-
"electron-v44.
|
|
26
|
-
"electron-v44.
|
|
27
|
-
"electron-v44.
|
|
28
|
-
"electron-v44.
|
|
29
|
-
"electron-v44.
|
|
30
|
-
"electron-v44.
|
|
31
|
-
"electron-v44.
|
|
32
|
-
"electron-v44.
|
|
33
|
-
"electron-v44.
|
|
34
|
-
"electron-v44.
|
|
35
|
-
"electron-v44.
|
|
36
|
-
"electron-v44.
|
|
37
|
-
"electron-v44.
|
|
38
|
-
"electron-v44.
|
|
39
|
-
"electron-v44.
|
|
40
|
-
"electron-v44.
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v44.
|
|
43
|
-
"ffmpeg-v44.
|
|
44
|
-
"ffmpeg-v44.
|
|
45
|
-
"ffmpeg-v44.
|
|
46
|
-
"ffmpeg-v44.
|
|
47
|
-
"ffmpeg-v44.
|
|
48
|
-
"ffmpeg-v44.
|
|
49
|
-
"ffmpeg-v44.
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v44.
|
|
52
|
-
"libcxx-objects-v44.
|
|
53
|
-
"libcxx_headers.zip": "
|
|
54
|
-
"libcxxabi_headers.zip": "
|
|
55
|
-
"mksnapshot-v44.
|
|
56
|
-
"mksnapshot-v44.
|
|
57
|
-
"mksnapshot-v44.
|
|
58
|
-
"mksnapshot-v44.
|
|
59
|
-
"mksnapshot-v44.
|
|
60
|
-
"mksnapshot-v44.
|
|
61
|
-
"mksnapshot-v44.
|
|
62
|
-
"mksnapshot-v44.
|
|
63
|
-
"xcache-v44.
|
|
64
|
-
"xcache-v44.
|
|
65
|
-
"xcache-v44.
|
|
66
|
-
"xcache-v44.
|
|
67
|
-
"xcache-v44.
|
|
68
|
-
"xcache-v44.
|
|
2
|
+
"chromedriver-v44.4.0-darwin-arm64.zip": "3c2a46091fd0bace9cf48967e41c718c9f3f0981b2943d2053b749497f918338",
|
|
3
|
+
"chromedriver-v44.4.0-darwin-x64.zip": "991d77a640cc4132a23da916f275b690f9ed3b5905d9360006d73326e8becae3",
|
|
4
|
+
"chromedriver-v44.4.0-linux-arm64.zip": "13c298233c82c36aa11417b59050d84c1f7547be11336432f532b97575c04f0d",
|
|
5
|
+
"chromedriver-v44.4.0-linux-x64.zip": "ce0089a50c0b5f4dd6471472ff3aee8f27f6c285a4f70639287c45501aa61555",
|
|
6
|
+
"chromedriver-v44.4.0-mas-arm64.zip": "40ab8b5e23e65d3cf7a9e7c6ca86316ab5969f146fd540c4bca517836e9e6645",
|
|
7
|
+
"chromedriver-v44.4.0-mas-x64.zip": "0c11417f9fa13ec4df468f5dcdfa400471e2044c10312176e81d64cd493d6a39",
|
|
8
|
+
"chromedriver-v44.4.0-win32-arm64.zip": "60fc5d185f40f3f91d02d51bf70595acaae93b8f302449c624a958820b8c90db",
|
|
9
|
+
"chromedriver-v44.4.0-win32-x64.zip": "7818d2eadca1a16a2116312f48ae5e0314c273b0e7e10efb0f36a06e0007eaed",
|
|
10
|
+
"electron-api.json": "cb64106314702ddc40e817866567644c25004765b8c4ee2bbdc303548428570a",
|
|
11
|
+
"electron-v44.4.0-darwin-arm64-dsym-snapshot.zip": "8bdc48008bd46269ad071f5f6f8e030830a7849b448c4628aaa75ef44305688f",
|
|
12
|
+
"electron-v44.4.0-darwin-arm64-dsym.tar.xz": "b2b7499c9b895175b7f541f9c3865a1bff832e88c9782e401dcf0631900cd799",
|
|
13
|
+
"electron-v44.4.0-darwin-arm64-symbols.zip": "12bbe55b32ef1e3ead9de7fb54a1a1bd4fad54e54a187cce48913f5aea446052",
|
|
14
|
+
"electron-v44.4.0-darwin-arm64.zip": "b658a75b4093fcda7d56d3ee210c8d5fea232d4ebdcf5d7c42810124e77f3831",
|
|
15
|
+
"electron-v44.4.0-darwin-x64-dsym-snapshot.zip": "8bdc48008bd46269ad071f5f6f8e030830a7849b448c4628aaa75ef44305688f",
|
|
16
|
+
"electron-v44.4.0-darwin-x64-dsym.tar.xz": "d20fb1f3722174be5bc8679dde8dd508b4e389dcd6c3a7fce6619ba30f98d67c",
|
|
17
|
+
"electron-v44.4.0-darwin-x64-symbols.zip": "c062130b6bd15f5b1d5cafddfabdb0b7af6eb596a7e2c4c11ed44cff18ebc5c9",
|
|
18
|
+
"electron-v44.4.0-darwin-x64.zip": "7e6a465836d7cde8d986f8bc18506674b6dca9975d8877e13c77b878f562e8f5",
|
|
19
|
+
"electron-v44.4.0-linux-arm64-debug.zip": "7b242f7a59ea4f3413b9f02e9e7335ff63b39b44d1453851585bd722a8fda7fa",
|
|
20
|
+
"electron-v44.4.0-linux-arm64-symbols.zip": "95d0cc2205d07543f2b1946a2e3a0208984db9f3d8c799e4a55600313fe0737a",
|
|
21
|
+
"electron-v44.4.0-linux-arm64.zip": "a24bc331a02510312958279393114e17ca03f74600671db40fe9aa8c26a2b746",
|
|
22
|
+
"electron-v44.4.0-linux-x64-debug.zip": "e269317c53f14a72efa3dc673b311c31e03542800813c163a714ccfac656c907",
|
|
23
|
+
"electron-v44.4.0-linux-x64-symbols.zip": "a0c8fa8425ec5f92ea4735a0157f9249d1ec0c4bab67a275a56cce5d36183a24",
|
|
24
|
+
"electron-v44.4.0-linux-x64.zip": "db661711f521c2b9d53476fad313f473ea825b2da8f86eb68bb5ba33420c499d",
|
|
25
|
+
"electron-v44.4.0-mas-arm64-dsym-snapshot.zip": "8bdc48008bd46269ad071f5f6f8e030830a7849b448c4628aaa75ef44305688f",
|
|
26
|
+
"electron-v44.4.0-mas-arm64-dsym.tar.xz": "a79ea063ac63692a5421519dd7afd87a719a00b8a64499fb5568981937213481",
|
|
27
|
+
"electron-v44.4.0-mas-arm64-symbols.zip": "8ce218de90c3a04bb1ed2a4732b1ffd923a8e5a7feb52e95c2b9f7d8bb3930c8",
|
|
28
|
+
"electron-v44.4.0-mas-arm64.zip": "8f5bfc3ce1d2cc51b8186da313f0334131b9a967d972d4413908dd4f735c0b28",
|
|
29
|
+
"electron-v44.4.0-mas-x64-dsym-snapshot.zip": "8bdc48008bd46269ad071f5f6f8e030830a7849b448c4628aaa75ef44305688f",
|
|
30
|
+
"electron-v44.4.0-mas-x64-dsym.tar.xz": "4fa8bba0023085be2521ab2662fa9c63c530d921c79094e39a0439be1fa2fc8c",
|
|
31
|
+
"electron-v44.4.0-mas-x64-symbols.zip": "eef5d3f919ea2c384fd50c772d7c8b989ed5ebfdb117039652e81850348aee76",
|
|
32
|
+
"electron-v44.4.0-mas-x64.zip": "5343163e1cf040c1158e41ad716cf6ccf66777db10bdd9e488725f654d6dcd1f",
|
|
33
|
+
"electron-v44.4.0-win32-arm64-pdb.zip": "2fb82a4c900fc1ff700e5c0bd8fc78dbb5ba10295908919f83c268a7d2fa6d3b",
|
|
34
|
+
"electron-v44.4.0-win32-arm64-symbols.zip": "214c5bb7c110d5722a9565ad94c06662d1af0d1804b8ddb092d1e918341c7be8",
|
|
35
|
+
"electron-v44.4.0-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
36
|
+
"electron-v44.4.0-win32-arm64.zip": "2da891fe821ce8f1d253d4287a30059b198ab3e30165c298af2cc9368afddc40",
|
|
37
|
+
"electron-v44.4.0-win32-x64-pdb.zip": "6d47530a8503b09e1b86aef5679ce1a6171aea91fb5940e4c1ab671b51ef08eb",
|
|
38
|
+
"electron-v44.4.0-win32-x64-symbols.zip": "d41d84d687c404ccb6d6b6139754f9e94ab7fb553fe2d5537f095166d8235023",
|
|
39
|
+
"electron-v44.4.0-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
40
|
+
"electron-v44.4.0-win32-x64.zip": "596d5f7a77fc4f494f24ff9b362577954e16df819a81915bdb3b91d25f8eddd2",
|
|
41
|
+
"electron.d.ts": "7162e050f0b3f8bd790e9ff3510c2c4c6c98df89e2557086ef1ee70b53f40d35",
|
|
42
|
+
"ffmpeg-v44.4.0-darwin-arm64.zip": "5afa98fa554c862d67290429031a4cce5c7fb5c22c4e068cb086c0ff3404a439",
|
|
43
|
+
"ffmpeg-v44.4.0-darwin-x64.zip": "2490f4308750355491f35690477668c31313bfa08dac9a3b7b3bab44e8199124",
|
|
44
|
+
"ffmpeg-v44.4.0-linux-arm64.zip": "86b47b37b85a479a6c32685dd9590aee15857a00b252da35ff82bf51364d59a7",
|
|
45
|
+
"ffmpeg-v44.4.0-linux-x64.zip": "065c9f2822cdbb5edddb90acb737e85959356eb7624135c031783280842fdc02",
|
|
46
|
+
"ffmpeg-v44.4.0-mas-arm64.zip": "1ac71eac4898e753ce4226a34c5e75c7633a1f757dbdf2a34e19fc0f140275aa",
|
|
47
|
+
"ffmpeg-v44.4.0-mas-x64.zip": "830a7b95e0ec60d71bc6e42777524c480ffc85242bfb4b9064c6460acc1f159d",
|
|
48
|
+
"ffmpeg-v44.4.0-win32-arm64.zip": "9184f0f806bf02739b8ad44f882e63fdb3341a80e0556177d33f26544559fcc2",
|
|
49
|
+
"ffmpeg-v44.4.0-win32-x64.zip": "2ca51774057dbe9198014287e738c9d1e89f205d37e63732044cbd9c76566058",
|
|
50
|
+
"hunspell_dictionaries.zip": "f006fabe073c65dde72e46ca4a0d3dde461ba816693f47b3aaf9b21ee97f8053",
|
|
51
|
+
"libcxx-objects-v44.4.0-linux-arm64.zip": "dd14cf8142534ed60fac03247d30ab716a81236be698152943f643e2d65be3af",
|
|
52
|
+
"libcxx-objects-v44.4.0-linux-x64.zip": "5723141e868cda296d3b09db158c980a8413814bd1a4d39766b5a495063a06d1",
|
|
53
|
+
"libcxx_headers.zip": "0d71a3c6ba9ebaad1dd33242c52780e6215f50f9b73611c14cf62881b99e775f",
|
|
54
|
+
"libcxxabi_headers.zip": "3562a5137aa3c35c51f562924eba652074cee91b3465f172caf170bd74af3bd7",
|
|
55
|
+
"mksnapshot-v44.4.0-darwin-arm64.zip": "568e64c76de69fdd7919f8d572f37284d1ed4580421710190c027230a5ebcf3f",
|
|
56
|
+
"mksnapshot-v44.4.0-darwin-x64.zip": "9423498d61b07252df82ff69a66a6410a916b1f47877f3543fa55ac63100144d",
|
|
57
|
+
"mksnapshot-v44.4.0-linux-arm64-x64.zip": "6a79bd03fd75c2be83d1fe3778e486a2553843badd190bf16b7916b6c79d0494",
|
|
58
|
+
"mksnapshot-v44.4.0-linux-x64.zip": "d871ad8fbcd2cb6cd212d1676d063730c81e0f90495a728af7bc8b58fcf6ed57",
|
|
59
|
+
"mksnapshot-v44.4.0-mas-arm64.zip": "5cc67c1efb62129bff5a023881c277c93e15b7623030732e3d6c9c49be8dfaa9",
|
|
60
|
+
"mksnapshot-v44.4.0-mas-x64.zip": "16ab759c1ea505e76ebc2b85ee2071b04e41eb1b25a98c83646a1ff4b6a6e8bb",
|
|
61
|
+
"mksnapshot-v44.4.0-win32-arm64-x64.zip": "06f2786d48b0a2678f752f67da059ca38e773db01cfe11e25a1ae46eaf4a738a",
|
|
62
|
+
"mksnapshot-v44.4.0-win32-x64.zip": "f50fe93eb5cdc51aa18ca4ccd01f0a23d02b182921819d8d39014c1f57cd37e6",
|
|
63
|
+
"xcache-v44.4.0-darwin-arm64.zip": "a1b9d07901f53850c613ac51f1e6afaa303f97a663072c4ecc85b521554e640d",
|
|
64
|
+
"xcache-v44.4.0-darwin-x64.zip": "78dd0ba963d5f6706c4c498ae01fe0c45aa0479fcfb1cb8715a62c484f752665",
|
|
65
|
+
"xcache-v44.4.0-linux-arm64.zip": "724253e87f20b542fb2f8e1bae21bfec68800b70b1e1fd933219f2469adf873a",
|
|
66
|
+
"xcache-v44.4.0-linux-x64.zip": "73e333be9d9d04ab07718c8d6c4fd7e3cf84a0d2af4307a97cc9d44055b8235d",
|
|
67
|
+
"xcache-v44.4.0-win32-arm64.zip": "d0b0f9f99eede6488876dd3ba9ee783b7644666273c3ca27b4905d4f411a9589",
|
|
68
|
+
"xcache-v44.4.0-win32-x64.zip": "651402922e1e5e4c52b4a67b5a1d6148d051462dd4d971087a7c7777d6e2573b"
|
|
69
69
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.
|
|
1
|
+
// Type definitions for Electron 44.4.0
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -7651,6 +7651,14 @@ declare namespace Electron {
|
|
|
7651
7651
|
* indicating the failure of the command.
|
|
7652
7652
|
*
|
|
7653
7653
|
* Send given command to the debugging target.
|
|
7654
|
+
*
|
|
7655
|
+
* > [!NOTE]
|
|
7656
|
+
*
|
|
7657
|
+
* * If `sendCommand` is called before the target has navigated (e.g. immediately
|
|
7658
|
+
* after `attach()`), the returned promise may not resolve until navigation occurs.
|
|
7659
|
+
* * If the command's response has no `result` data, as defined by that command's
|
|
7660
|
+
* entry in the remote debugging protocol, the promise resolves with an empty
|
|
7661
|
+
* object (`{}`), not `null` or `undefined`.
|
|
7654
7662
|
*/
|
|
7655
7663
|
sendCommand(method: string, commandParams?: any, sessionId?: string): Promise<any>;
|
|
7656
7664
|
}
|
|
@@ -8258,6 +8266,14 @@ declare namespace Electron {
|
|
|
8258
8266
|
* actual name of saved file will be different.
|
|
8259
8267
|
*/
|
|
8260
8268
|
getFilename(): string;
|
|
8269
|
+
/**
|
|
8270
|
+
* The origin that started the download (for example `https://example.com`, or
|
|
8271
|
+
* `null` for an opaque origin), or an empty string if the download was not started
|
|
8272
|
+
* by web content (for example `webContents.downloadURL()`). Use this rather than
|
|
8273
|
+
* `getURL()` or the `webContents` to decide whose download it is: the URL is
|
|
8274
|
+
* chosen by the initiator and the `webContents` is the whole tab.
|
|
8275
|
+
*/
|
|
8276
|
+
getInitiatorOrigin(): string;
|
|
8261
8277
|
/**
|
|
8262
8278
|
* Last-Modified header value.
|
|
8263
8279
|
*/
|
|
@@ -9632,6 +9648,9 @@ declare namespace Electron {
|
|
|
9632
9648
|
* This property can be dynamically changed; setting it to `undefined` removes the
|
|
9633
9649
|
* badge. Only available on macOS 14 and up.
|
|
9634
9650
|
*
|
|
9651
|
+
* Badges are not displayed in Dock menus, though the same item shows its badge in
|
|
9652
|
+
* an application menu.
|
|
9653
|
+
*
|
|
9635
9654
|
* @platform darwin
|
|
9636
9655
|
*/
|
|
9637
9656
|
badge?: MenuItemBadge;
|
|
@@ -11552,6 +11571,12 @@ declare namespace Electron {
|
|
|
11552
11571
|
* Register a protocol handler for `scheme`. Requests made to URLs with this scheme
|
|
11553
11572
|
* will delegate to this handler to determine what response should be sent.
|
|
11554
11573
|
*
|
|
11574
|
+
* In addition to the standard `Request` fields, `request.initiatorOrigin` is set
|
|
11575
|
+
* to the origin that issued the request (for example `https://example.com`, or
|
|
11576
|
+
* `null` for an opaque origin) when web content made it; it is absent for requests
|
|
11577
|
+
* the browser started itself. Unlike `request.referrer` it is not controlled by
|
|
11578
|
+
* the requesting page, so prefer it when deciding whether to serve a request.
|
|
11579
|
+
*
|
|
11555
11580
|
* Either a `Response` or a `Promise<Response>` can be returned.
|
|
11556
11581
|
*
|
|
11557
11582
|
* Example:
|
|
@@ -11756,6 +11781,12 @@ declare namespace Electron {
|
|
|
11756
11781
|
// Docs: https://electronjs.org/docs/api/structures/protocol-request
|
|
11757
11782
|
|
|
11758
11783
|
headers: Record<string, string>;
|
|
11784
|
+
/**
|
|
11785
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
11786
|
+
* for an opaque origin). Absent for requests the browser started itself. Unlike
|
|
11787
|
+
* `referrer`, this is not controlled by the requesting page.
|
|
11788
|
+
*/
|
|
11789
|
+
initiatorOrigin?: string;
|
|
11759
11790
|
method: string;
|
|
11760
11791
|
referrer: string;
|
|
11761
11792
|
uploadData?: UploadData[];
|
|
@@ -12624,7 +12655,11 @@ declare namespace Electron {
|
|
|
12624
12655
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12625
12656
|
* the spec for more details.)
|
|
12626
12657
|
*/
|
|
12627
|
-
allowCredentials: boolean
|
|
12658
|
+
allowCredentials: boolean,
|
|
12659
|
+
/**
|
|
12660
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12661
|
+
*/
|
|
12662
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12628
12663
|
off(event: 'preconnect', listener: (event: Event,
|
|
12629
12664
|
/**
|
|
12630
12665
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12634,7 +12669,11 @@ declare namespace Electron {
|
|
|
12634
12669
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12635
12670
|
* the spec for more details.)
|
|
12636
12671
|
*/
|
|
12637
|
-
allowCredentials: boolean
|
|
12672
|
+
allowCredentials: boolean,
|
|
12673
|
+
/**
|
|
12674
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12675
|
+
*/
|
|
12676
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12638
12677
|
once(event: 'preconnect', listener: (event: Event,
|
|
12639
12678
|
/**
|
|
12640
12679
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12644,7 +12683,11 @@ declare namespace Electron {
|
|
|
12644
12683
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12645
12684
|
* the spec for more details.)
|
|
12646
12685
|
*/
|
|
12647
|
-
allowCredentials: boolean
|
|
12686
|
+
allowCredentials: boolean,
|
|
12687
|
+
/**
|
|
12688
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12689
|
+
*/
|
|
12690
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12648
12691
|
addListener(event: 'preconnect', listener: (event: Event,
|
|
12649
12692
|
/**
|
|
12650
12693
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12654,7 +12697,11 @@ declare namespace Electron {
|
|
|
12654
12697
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12655
12698
|
* the spec for more details.)
|
|
12656
12699
|
*/
|
|
12657
|
-
allowCredentials: boolean
|
|
12700
|
+
allowCredentials: boolean,
|
|
12701
|
+
/**
|
|
12702
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12703
|
+
*/
|
|
12704
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12658
12705
|
removeListener(event: 'preconnect', listener: (event: Event,
|
|
12659
12706
|
/**
|
|
12660
12707
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12664,7 +12711,11 @@ declare namespace Electron {
|
|
|
12664
12711
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12665
12712
|
* the spec for more details.)
|
|
12666
12713
|
*/
|
|
12667
|
-
allowCredentials: boolean
|
|
12714
|
+
allowCredentials: boolean,
|
|
12715
|
+
/**
|
|
12716
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12717
|
+
*/
|
|
12718
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12668
12719
|
/**
|
|
12669
12720
|
* Emitted when a HID device needs to be selected when a call to
|
|
12670
12721
|
* `navigator.hid.requestDevice` is made. `callback` should be called with
|
|
@@ -13002,26 +13053,47 @@ declare namespace Electron {
|
|
|
13002
13053
|
removeListener(event: 'usb-device-revoked', listener: (event: Event,
|
|
13003
13054
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
13004
13055
|
/**
|
|
13005
|
-
* Emitted when Electron is about to download `item` in `webContents`.
|
|
13056
|
+
* Emitted when Electron is about to download `item` in `webContents`. See also
|
|
13057
|
+
* `item.getInitiatorOrigin()`.
|
|
13006
13058
|
*
|
|
13007
13059
|
* Calling `event.preventDefault()` will cancel the download and `item` will not be
|
|
13008
13060
|
* available from next tick of the process.
|
|
13009
13061
|
*/
|
|
13010
13062
|
on(event: 'will-download', listener: (event: Event,
|
|
13011
13063
|
item: DownloadItem,
|
|
13012
|
-
webContents: WebContents
|
|
13064
|
+
webContents: WebContents,
|
|
13065
|
+
/**
|
|
13066
|
+
* The frame that started the download, if it still exists.
|
|
13067
|
+
*/
|
|
13068
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13013
13069
|
off(event: 'will-download', listener: (event: Event,
|
|
13014
13070
|
item: DownloadItem,
|
|
13015
|
-
webContents: WebContents
|
|
13071
|
+
webContents: WebContents,
|
|
13072
|
+
/**
|
|
13073
|
+
* The frame that started the download, if it still exists.
|
|
13074
|
+
*/
|
|
13075
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13016
13076
|
once(event: 'will-download', listener: (event: Event,
|
|
13017
13077
|
item: DownloadItem,
|
|
13018
|
-
webContents: WebContents
|
|
13078
|
+
webContents: WebContents,
|
|
13079
|
+
/**
|
|
13080
|
+
* The frame that started the download, if it still exists.
|
|
13081
|
+
*/
|
|
13082
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13019
13083
|
addListener(event: 'will-download', listener: (event: Event,
|
|
13020
13084
|
item: DownloadItem,
|
|
13021
|
-
webContents: WebContents
|
|
13085
|
+
webContents: WebContents,
|
|
13086
|
+
/**
|
|
13087
|
+
* The frame that started the download, if it still exists.
|
|
13088
|
+
*/
|
|
13089
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13022
13090
|
removeListener(event: 'will-download', listener: (event: Event,
|
|
13023
13091
|
item: DownloadItem,
|
|
13024
|
-
webContents: WebContents
|
|
13092
|
+
webContents: WebContents,
|
|
13093
|
+
/**
|
|
13094
|
+
* The frame that started the download, if it still exists.
|
|
13095
|
+
*/
|
|
13096
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13025
13097
|
/**
|
|
13026
13098
|
* Whether the word was successfully written to the custom dictionary. This API
|
|
13027
13099
|
* will not work on non-persistent (in-memory) sessions.
|
|
@@ -13392,8 +13464,12 @@ declare namespace Electron {
|
|
|
13392
13464
|
* is available and `useSystemPicker` is set to `true`, the handler will not be
|
|
13393
13465
|
* invoked.
|
|
13394
13466
|
*
|
|
13395
|
-
* Passing a WebFrameMain object as a video or audio stream
|
|
13396
|
-
*
|
|
13467
|
+
* Passing a WebFrameMain object as a video or audio stream captures the whole
|
|
13468
|
+
* `webContents` that contains that frame (the tab), not just the frame:
|
|
13469
|
+
* `request.frame` from an `<iframe>` therefore grants that iframe a capture of the
|
|
13470
|
+
* page that embeds it. Check `request.frame` before using it this way, and note
|
|
13471
|
+
* that the callback throws if the frame has been destroyed by the time it is
|
|
13472
|
+
* called.
|
|
13397
13473
|
*
|
|
13398
13474
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13399
13475
|
*/
|
|
@@ -18168,7 +18244,9 @@ declare namespace Electron {
|
|
|
18168
18244
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
18169
18245
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
18170
18246
|
* identifier is restricted to the web contents that it is registered to and is
|
|
18171
|
-
* only valid for 10 seconds.
|
|
18247
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18248
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18249
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
18172
18250
|
*/
|
|
18173
18251
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
18174
18252
|
/**
|
|
@@ -19466,8 +19544,10 @@ declare namespace Electron {
|
|
|
19466
19544
|
*/
|
|
19467
19545
|
nodeIntegrationInSubFrames?: boolean;
|
|
19468
19546
|
/**
|
|
19469
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19470
|
-
*
|
|
19547
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19548
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19549
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19550
|
+
* can be found in Multithreading.
|
|
19471
19551
|
*/
|
|
19472
19552
|
nodeIntegrationInWorker?: boolean;
|
|
19473
19553
|
/**
|
|
@@ -20037,6 +20117,10 @@ declare namespace Electron {
|
|
|
20037
20117
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
20038
20118
|
/**
|
|
20039
20119
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
20120
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
20121
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
20122
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
20123
|
+
* `event.senderFrame` identifies the sender.
|
|
20040
20124
|
*
|
|
20041
20125
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
20042
20126
|
* guest page and embedder page:
|
|
@@ -20419,7 +20503,9 @@ declare namespace Electron {
|
|
|
20419
20503
|
unselect(): void;
|
|
20420
20504
|
/**
|
|
20421
20505
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20422
|
-
* open new windows.
|
|
20506
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20507
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20508
|
+
* disabled by default.
|
|
20423
20509
|
*/
|
|
20424
20510
|
allowpopups: boolean;
|
|
20425
20511
|
/**
|
|
@@ -21862,6 +21948,15 @@ declare namespace Electron {
|
|
|
21862
21948
|
* The blocked path attempting to be accessed.
|
|
21863
21949
|
*/
|
|
21864
21950
|
path: string;
|
|
21951
|
+
/**
|
|
21952
|
+
* The frame that initiated access. May be `null` if the frame has since been
|
|
21953
|
+
* destroyed.
|
|
21954
|
+
*/
|
|
21955
|
+
frame: (WebFrameMain) | (null);
|
|
21956
|
+
/**
|
|
21957
|
+
* The WebContents that contains `frame`.
|
|
21958
|
+
*/
|
|
21959
|
+
webContents: (WebContents) | (null);
|
|
21865
21960
|
}
|
|
21866
21961
|
|
|
21867
21962
|
interface FindInPageOptions {
|
|
@@ -22447,6 +22542,7 @@ declare namespace Electron {
|
|
|
22447
22542
|
/**
|
|
22448
22543
|
* A badge shown alongside the label, either a system-styled count (`alerts`,
|
|
22449
22544
|
* `updates`, `new-items`) or a custom string. Only available on macOS 14 and up.
|
|
22545
|
+
* Not displayed in Dock menus.
|
|
22450
22546
|
*
|
|
22451
22547
|
* @platform darwin
|
|
22452
22548
|
*/
|
|
@@ -22842,6 +22938,12 @@ declare namespace Electron {
|
|
|
22842
22938
|
* or been destroyed.
|
|
22843
22939
|
*/
|
|
22844
22940
|
frame?: (WebFrameMain) | (null);
|
|
22941
|
+
/**
|
|
22942
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
22943
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
22944
|
+
* for requests the browser started itself.
|
|
22945
|
+
*/
|
|
22946
|
+
initiatorOrigin?: string;
|
|
22845
22947
|
/**
|
|
22846
22948
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22847
22949
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22871,6 +22973,12 @@ declare namespace Electron {
|
|
|
22871
22973
|
* or been destroyed.
|
|
22872
22974
|
*/
|
|
22873
22975
|
frame?: (WebFrameMain) | (null);
|
|
22976
|
+
/**
|
|
22977
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
22978
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
22979
|
+
* for requests the browser started itself.
|
|
22980
|
+
*/
|
|
22981
|
+
initiatorOrigin?: string;
|
|
22874
22982
|
/**
|
|
22875
22983
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22876
22984
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22892,6 +23000,12 @@ declare namespace Electron {
|
|
|
22892
23000
|
* or been destroyed.
|
|
22893
23001
|
*/
|
|
22894
23002
|
frame?: (WebFrameMain) | (null);
|
|
23003
|
+
/**
|
|
23004
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23005
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23006
|
+
* for requests the browser started itself.
|
|
23007
|
+
*/
|
|
23008
|
+
initiatorOrigin?: string;
|
|
22895
23009
|
/**
|
|
22896
23010
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22897
23011
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22914,6 +23028,12 @@ declare namespace Electron {
|
|
|
22914
23028
|
* or been destroyed.
|
|
22915
23029
|
*/
|
|
22916
23030
|
frame?: (WebFrameMain) | (null);
|
|
23031
|
+
/**
|
|
23032
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23033
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23034
|
+
* for requests the browser started itself.
|
|
23035
|
+
*/
|
|
23036
|
+
initiatorOrigin?: string;
|
|
22917
23037
|
/**
|
|
22918
23038
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22919
23039
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22939,6 +23059,12 @@ declare namespace Electron {
|
|
|
22939
23059
|
* or been destroyed.
|
|
22940
23060
|
*/
|
|
22941
23061
|
frame?: (WebFrameMain) | (null);
|
|
23062
|
+
/**
|
|
23063
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23064
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23065
|
+
* for requests the browser started itself.
|
|
23066
|
+
*/
|
|
23067
|
+
initiatorOrigin?: string;
|
|
22942
23068
|
/**
|
|
22943
23069
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22944
23070
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22964,6 +23090,12 @@ declare namespace Electron {
|
|
|
22964
23090
|
* or been destroyed.
|
|
22965
23091
|
*/
|
|
22966
23092
|
frame?: (WebFrameMain) | (null);
|
|
23093
|
+
/**
|
|
23094
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23095
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23096
|
+
* for requests the browser started itself.
|
|
23097
|
+
*/
|
|
23098
|
+
initiatorOrigin?: string;
|
|
22967
23099
|
/**
|
|
22968
23100
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22969
23101
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -22987,6 +23119,12 @@ declare namespace Electron {
|
|
|
22987
23119
|
* or been destroyed.
|
|
22988
23120
|
*/
|
|
22989
23121
|
frame?: (WebFrameMain) | (null);
|
|
23122
|
+
/**
|
|
23123
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23124
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23125
|
+
* for requests the browser started itself.
|
|
23126
|
+
*/
|
|
23127
|
+
initiatorOrigin?: string;
|
|
22990
23128
|
/**
|
|
22991
23129
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
22992
23130
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23014,6 +23152,12 @@ declare namespace Electron {
|
|
|
23014
23152
|
* or been destroyed.
|
|
23015
23153
|
*/
|
|
23016
23154
|
frame?: (WebFrameMain) | (null);
|
|
23155
|
+
/**
|
|
23156
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23157
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23158
|
+
* for requests the browser started itself.
|
|
23159
|
+
*/
|
|
23160
|
+
initiatorOrigin?: string;
|
|
23017
23161
|
/**
|
|
23018
23162
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23019
23163
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23232,7 +23376,8 @@ declare namespace Electron {
|
|
|
23232
23376
|
*/
|
|
23233
23377
|
embeddingOrigin?: string;
|
|
23234
23378
|
/**
|
|
23235
|
-
* The
|
|
23379
|
+
* The origin of the requesting frame, for `media`, `hid`, `usb` and `serial`
|
|
23380
|
+
* checks.
|
|
23236
23381
|
*/
|
|
23237
23382
|
securityOrigin?: string;
|
|
23238
23383
|
/**
|
|
@@ -23240,8 +23385,8 @@ declare namespace Electron {
|
|
|
23240
23385
|
*/
|
|
23241
23386
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
23242
23387
|
/**
|
|
23243
|
-
* The last URL the requesting frame loaded.
|
|
23244
|
-
*
|
|
23388
|
+
* The last URL the requesting frame loaded. Not provided when the check is not
|
|
23389
|
+
* made on behalf of a document (for example for a service worker).
|
|
23245
23390
|
*/
|
|
23246
23391
|
requestingUrl?: string;
|
|
23247
23392
|
/**
|
|
@@ -23835,7 +23980,8 @@ declare namespace Electron {
|
|
|
23835
23980
|
/**
|
|
23836
23981
|
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
23837
23982
|
* loopback device will capture system audio, and is currently only supported on
|
|
23838
|
-
* Windows. If a WebFrameMain is specified, will capture audio from
|
|
23983
|
+
* Windows. If a WebFrameMain is specified, will capture audio from the
|
|
23984
|
+
* `webContents` that contains that frame.
|
|
23839
23985
|
*/
|
|
23840
23986
|
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
23841
23987
|
/**
|