Jeremy Apthorp
ea89120c9e
chore: remove debugging log ( #22093 )
2020-02-07 12:31:08 -08:00
Shelley Vohr
928175bdfe
feat: allow specifying pageSize for print ( #22014 )
2020-02-05 04:25:02 +00:00
Charles Kerr
c83f836faf
refactor: prefer using app.whenReady() ( #21972 )
...
* docs: add references to app.whenReady() in isReady
* refactor: prefer app.whenReady()
In the docs, specs, and lib, replace instances of `app.once('ready')`
(seen occasionally) and `app.on('ready')` (extremely common) with
`app.whenReady()`.
It's better to encourage users to use whenReady():
1. it handles the edge case of registering for 'ready' after it's fired
2. it avoids the minor wart of leaving an active listener alive for
an event that wll never fire again
2020-02-03 22:43:22 +00:00
Jeremy Apthorp
1c6d8f5af6
fix: return path from netLog.stopLogging ( #21985 )
2020-01-31 10:43:02 -08:00
Hye Sung Jung
0bd8a97f38
update ( #21915 )
2020-01-29 18:42:25 +09:00
Shelley Vohr
548b290ea7
feat: add more options to printToPDF ( #21906 )
2020-01-28 20:47:24 +00:00
Charles Kerr
1b4eb0b679
fix: use powerMonitor.on() only after app is ready ( #21927 )
...
* fix: use powerMonitor.on() only after app is ready
powerMonitor can't be used until the app is ready; however, on Linux,
powerMonitor.on() was called as soon as lib/browser/api/power-monitor.ts
was loaded.
This patch takes @vladimiry's suggestion of wrapping that in an
app.on('ready') handler to prevent powerMonitor.on() from being called
prematurely.
Fixes #21716
2020-01-28 12:19:44 -06:00
Jeremy Apthorp
acb5b75057
chore: [extensions] support old APIs when enable_electron_extensions = true ( #21812 )
2020-01-21 09:42:55 -08:00
Samuel Attard
b31c02ef31
test: fix some failing and disabled node specs ( #19518 )
...
* test: fix some failing and disabled node specs
These tests were failing due to mismatched stacktraces as a result of
our Module._load hook. This fixes those by adding a flag to optionally
not hook those calls and instead do the asar override eagily.
* ELECTRON_EAGER_ASAR_HOOK => ELECTRON_EAGER_ASAR_HOOK_FOR_TESTING
* test: parallel/test-zlib-unused-weak consistently fails
Co-authored-by: Cheng Zhao <zcbenz@github.com>
2020-01-15 16:07:03 +09:00
Cheng Zhao
ceacadb4f4
fix: pass full response headers in net module ( #21552 )
2020-01-14 09:36:08 -08:00
Shelley Vohr
83c19faf61
fix: pass startPage url correctly to extensions ( #21711 )
...
* fix: pass startPage url correctly to extensions
* check for devtools_page first
2020-01-14 15:47:56 +09:00
Jeremy Apthorp
2e1531ad90
feat: warn when remote is used without enableRemoteModule: true ( #21546 )
...
* feat: warn when remote is used without enableRemoteModule: true
* fix security warning
2020-01-13 15:23:03 +09:00
Milan Burda
31c93fec67
fix: load window-setup in sandboxed renderer ( #21416 )
2020-01-06 22:23:03 +01:00
Shelley Vohr
d56f67b7af
refactor: throw error for getLastCrashReport if crashReporter not started ( #21643 )
2020-01-06 11:00:27 -05:00
Lutz Roeder
ed6a3877a4
fix: SimpleURLLoaderWrapper redirects ( #21630 )
2019-12-31 10:47:08 +11:00
Jeremy Apthorp
54b4756a29
refactor: try just using regular [Sync] for MessageSync ( #20797 )
2019-12-17 11:35:28 -08:00
Joël Charles
0bcfae752e
feat: allow pages to override window.history.length ( #17742 )
...
* fix: allow pages to override window.history.length
* Update lib/renderer/window-setup.ts
Co-Authored-By: magne4000 <joel.charles91@gmail.com>
* fix: lint error
2019-12-16 11:14:27 +09:00
Milan Burda
6a03d3cc66
refactor: export internalWindowOpen from guest-window-manager ( #21498 )
2019-12-16 10:30:25 +09:00
Milan Burda
341df4a8c2
fix: enforce parent-child relationship in custom postMessage() handler ( #21496 )
2019-12-13 10:10:56 -08:00
Cheng Zhao
3cb0ed306b
fix: hiding window menu should work on startup ( #21436 )
...
* fix: menu visibility should not be overwritten on startup
* fix: removing menu for window without global menubar
* test: setMenu tests are not for mac
2019-12-09 11:17:36 -08:00
Jeremy Apthorp
092e00f7f0
fix: fix ClientRequest.getUploadProgress ( #21388 )
2019-12-06 13:14:44 -08:00
Jeremy Apthorp
dc9beda182
feat: remove deprecated setLayoutZoomLevelLimits ( #21383 )
2019-12-06 13:14:25 -08:00
Shelley Vohr
4ac575416f
docs: fix return type of getPrinters ( #21411 )
2019-12-06 12:36:35 -08:00
Shelley Vohr
9e189eac71
fix: pass noLink correctly on Windows ( #21386 )
2019-12-05 13:38:57 -08:00
Jeremy Apthorp
9526c5584e
fix: deprecate setLayoutZoomLevelLimits ( #21296 )
2019-12-02 13:27:03 -08:00
Samuel Attard
ee58d60612
fix: ensure no node globals passively leak when nodeIntegration is disabled ( #21342 )
2019-12-02 10:09:47 -08:00
Shelley Vohr
5f365858c9
fix: correctly plumb checkboxChecked on win ( #21248 )
...
* fix: correctly plumb checkboxChecked on win
* address final style comment
2019-11-27 16:39:07 +09:00
Jeremy Apthorp
d25256dcf5
refactor: rewrite the net module to simplify state tracking ( #21244 )
2019-11-26 17:01:13 -08:00
Samuel Attard
d84ba30541
fix: reloadIgnoringCache() should ignore the cache ( #21263 )
2019-11-25 11:12:58 -08:00
Samuel Attard
34452ee69e
feat: expose executeJavaScriptInIsolatedWorld on webContents ( #21190 )
...
* feat: expose executeJavaScriptInIsolatedWorld on webContents
* Apply suggestions from code review
Co-Authored-By: loc <andy@slack-corp.com>
2019-11-22 15:33:55 -08:00
Milan Burda
3f2cb91a35
refactor: declare KeyWeakMap<K, V> returned by createIDWeakMap() / createDoubleIDWeakMap() ( #21171 )
2019-11-21 13:32:31 +01:00
Jeremy Apthorp
4f1536479e
fix: implement 'login' event for net.ClientRequest ( #21096 )
2019-11-14 10:01:18 -08:00
Shelley Vohr
af1e8a347e
chore: remove unused promisify code ( #21114 )
2019-11-14 14:50:50 +09:00
Milan Burda
1d596f616d
fix: NativeImage serialization of <webview>.capturePage() result ( #20825 )
2019-11-12 21:56:17 +01:00
Jeremy Apthorp
034f4d5734
fix: implement 'login' event for WebContents ( #20954 )
2019-11-11 09:47:01 -08:00
Milan Burda
093f2dd4a6
chore: remove deprecated <webview>.getWebContents() ( #20986 )
2019-11-08 15:46:35 -05:00
Milan Burda
f1e7393e30
feat: deprecate <webview>.getWebContents() ( #20726 )
2019-11-07 09:43:19 -08:00
Samuel Attard
d91cc257f9
chore: emit the document-start and document-end events in a sandboxed renderer ( #20987 )
2019-11-05 17:53:03 -08:00
Samuel Attard
5b7382765c
feat: allow TouchBarButton instances to be disabled ( #20945 )
...
* feat: allow TouchBarButton instances to be disabled
* Update touch-bar-button.md
2019-11-05 15:56:36 -08:00
Milan Burda
a034f5db0d
refactor: add Error to isSerializableObject() ( #20886 )
2019-11-04 14:35:57 -08:00
Milan Burda
01e18c2fc3
fix: cannot access nativeTheme via electron.remote ( #20938 )
2019-11-04 14:17:03 -08:00
Milan Burda
ee7ce3954a
fix: don't export __esModule = true by electron.ts ( #20939 )
2019-11-04 14:16:42 -08:00
Samuel Attard
267821831c
fix: capture the promise global to avoid userland mutation ( #20925 )
2019-11-04 11:16:51 -08:00
Jeremy Apthorp
8dfc896cfa
refactor: send the 'close' message asynchronously ( #20796 )
2019-10-30 13:13:01 -07:00
Milan Burda
3d56e13b38
fix: devtools extensions not loading ( #20791 )
2019-10-30 14:46:52 +09:00
Milan Burda
0f7ebff81e
fix: pass frameId to v8Util.setRemoteCallbackFreer() ( #20732 )
2019-10-29 15:40:09 +09:00
Milan Burda
0c870775c4
fix: deprecation warnings in Electron code ( #20793 )
2019-10-29 13:16:10 +09:00
Milan Burda
bd5a5b3ae6
fix: properly generate requestID in webContents.printToPDF() ( #20769 )
2019-10-29 11:36:29 +09:00
Electron Bot
b6246dcf12
chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) ( #20649 )
2019-10-28 15:12:35 -07:00
Milan Burda
ba8f80267c
fix: send ELECTRON_BROWSER_CONTEXT_RELEASE asynchronously ( #20632 )
...
* fix: send ELECTRON_BROWSER_CONTEXT_RELEASE asynchronously
* test: remote references should be able to be cleared for all cases
2019-10-23 13:44:21 +09:00