Keeley Hammond
21ac61270a
fix: ensure child window transparency ( #28107 )
...
* fix: ensure child window transparency works
Windows opened via window.open and intecepted via setWindowOpenHandler
or the `new-window` event should (a) have the correct background color
and (b) that background color should be transparent if specified.
The changes in api_web_contents fix (a) and the changes in
web_contents_preferences fix (b).
Notes: Child windows with specified background colors or transpency now
work as intended
* fix: set background_color in blink prefs apply logic
* fix: apply changes for 12
* fix: background_color patch simplification
* update patches
Co-authored-by: Samuel Attard <sattard@slack-corp.com >
Co-authored-by: Electron Bot <electron@github.com >
2021-03-10 13:08:44 -08:00
trop[bot]
f1c4265072
chore: Add a condition to crashReporter deprecate log ( #28013 )
...
* Add a condition to crashReporter deprecate log
When developer set submitURL to '' crash reports will be saved at `...\AppData\Roaming\...\Crashpad\reports`, will not be uploaded to the server.
So at this time `deprecate.log('Sending uncompressed crash reports....')` is unnecessary.
* Update lib/browser/api/crash-reporter.ts
change to check uploadToServer
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
Co-authored-by: liulun <xland@live.cn >
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-03-07 16:31:37 +09:00
trop[bot]
f5de5e9131
fix: warning when worldSafeExecuteJavaScript is disabled ( #27969 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-03-05 10:15:11 +09:00
Keeley Hammond
e7e1801443
fix: race-condition in electron.net ( #27938 )
2021-03-01 13:50:03 -05:00
trop[bot]
d00e869560
fix: isFullScreen typo ( #27864 )
...
* fix isFullScreen typo
* Update lib/browser/api/base-window.ts
Co-authored-by: John Kleinschmidt <jkleinsc@github.com >
Co-authored-by: Tony Wu <tonywoo@fb.com >
Co-authored-by: Tony <TonyWuu@users.noreply.github.com >
Co-authored-by: John Kleinschmidt <jkleinsc@github.com >
2021-02-24 18:05:32 +09:00
trop[bot]
98f57a20e7
fix: enableBlinkFeatures warning in webviews ( #27790 )
...
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2021-02-19 15:46:36 +09:00
Electron Bot
33f6ff40fc
chore: bump chromium to 89.0.4389.47 (12-x-y) ( #27591 )
...
Co-authored-by: Charles Kerr <charles@charleskerr.com >
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-02-16 15:17:43 -08:00
trop[bot]
e1f06510f8
refactor: load preload script directly as a string ( #27661 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-02-10 10:16:25 -06:00
trop[bot]
30be5bfa4b
fix: replace default frameName title with null check ( #27552 )
...
* refactor: replace default frameName title with null check
* add isNativeWindowOpen check in makeBrowserWindowOptions
* modify snapshot test files
* replace title with frame-name again for proxy - not native open
* modify proxy snapshot title key-value to come after height key-value
Co-authored-by: mlaurencin <mlaurencin@electronjs.org >
2021-01-29 12:42:34 -08:00
Milan Burda
0604f8727c
fix: CSP with unsafe-eval detection with Trusted Types ( #27446 ) ( #27471 )
2021-01-26 21:42:16 -06:00
trop[bot]
e49a88ba53
fix: <webview> not working with Trusted Types ( #27467 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-01-25 08:42:02 -08:00
Milan Burda
e25de07657
feat: add webFrameMain.send() / webFrameMain.postMessage() ( #26807 ) ( #27366 )
2021-01-21 15:49:02 +09:00
Milan Burda
a6af3bd8df
chore: remove unused sendToAll + related APIs ( #26771 ) ( #27354 )
2021-01-19 15:49:54 +09:00
trop[bot]
c74780117e
feat: exposeInMainWorld allow to expose non-object APIs ( #26834 )
...
* feat: ExposeAPIInMainWorld allow to process non-object APIs cpp part
* fix: add IsTypedArray check before DeepFreeze of the api
* feat: ExposeAPIInMainWorld allow to process non-object APIs js part - ts types change
* test: add new context bridge tests
* docs: ctx bridge exposeInMainWorld change documentation for any API
Co-authored-by: nikitakot <nikitakot@microsoft.com >
2021-01-19 15:46:01 +09:00
Milan Burda
f5af20d1d6
feat: add event.senderFrame property returning the originating webFrameMain ( #26764 ) ( #27047 )
2021-01-11 14:31:23 +09:00
trop[bot]
011315574c
fix: make webContents.id work even after destroy ( #27070 )
...
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-01-05 11:14:00 +09:00
trop[bot]
ba76f6846e
fix: memory leak in desktopCapturer.getSources ( #27058 )
...
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2020-12-16 20:47:42 -08:00
trop[bot]
39f865e4e3
fix: make protocol wrapper remote-friendly again ( #27043 )
...
Co-authored-by: Cheng Zhao <zcbenz@gmail.com >
2020-12-16 12:10:41 -08:00
trop[bot]
76be3b9211
fix(asar): readdir(withFileTypes) fails on deep directory when using readdirSync on a deep directory within the archive, the code fails to get the stats of child paths. ( #27011 )
...
Co-authored-by: Avi Vahl <avi.vahl@wix.com >
2020-12-16 08:42:32 +09:00
Shelley Vohr
d2c4b594bd
fix: screen EventEmitter methods with remote ( #26988 )
2020-12-14 11:51:20 -08:00
Jeremy Rose
36c695ce2a
fix: restrict sendToFrame to same-process frames by default ( #26875 ) ( #26925 )
2020-12-11 13:00:17 -08:00
trop[bot]
e84539f2e0
fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() ( #26879 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-12-09 14:58:52 +09:00
trop[bot]
d2591ed4f8
fix: handle security warnings promise when JS is disabled ( #26869 )
...
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com >
2020-12-07 13:03:48 -08:00
trop[bot]
6b54fe37de
fix: add a "set" trap to the "screen" module proxy ( #26868 )
...
* fix: add a "set" trap to the "screen" module proxy
* fixup! fix: add a "set" trap to the "screen" module proxy
Co-authored-by: Aleksei Kuzmin <alkuzmin@microsoft.com >
2020-12-07 10:52:51 -08:00
trop[bot]
9543f8b30a
fix: send IPC_MESSAGES.RENDERER_RELEASE_CALLBACK as internal message ( #26833 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-12-04 13:36:27 -08:00
Vadim
c0f0a02419
fix: internalModuleReadJSON for unpacked JSON ( #26750 )
2020-12-01 18:21:28 -06:00
trop[bot]
80e0473649
chore: remove deprecated crashReporter APIs ( #26709 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-11-30 16:54:17 +09:00
trop[bot]
4fbb58020c
fix: make screen wrapper remote-friendly again ( #26661 )
...
This restores accessibility of screen methods via remote.screen.
Fixes #26610 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Co-authored-by: Anders Kaseorg <andersk@mit.edu >
2020-11-24 16:19:41 -05:00
LuoJinghua
e1cc78f275
feat: allow setting the Origin header and Sec-Fetch-* headers in net.request() ( #26135 )
2020-11-17 14:25:41 -08:00
Jeremy Rose
92643a5a1c
refactor: consolidate WebContents::{Create,New} ( #26521 )
2020-11-17 14:14:33 -08:00
Jeremy Rose
a303813d15
refactor: move GetPrinterList off WebContents ( #26518 )
2020-11-17 14:14:09 -08:00
Jeremy Rose
7c2ac6b7c1
fix: BrowserWindow.fromBrowserView in multiple-BrowserView windows ( #26493 )
2020-11-17 11:12:02 -08:00
Jeremy Rose
a9924e1c32
feat: add powerMonitor.onBatteryPower ( #26494 )
2020-11-16 16:31:46 -08:00
Milan Burda
5ee9cc202b
fix: ensure that internal messages are sent from the main process ( #26429 )
2020-11-12 06:20:01 +03:00
Cheng Zhao
bb3fb548d8
feat: add APIs to enable/disable spell checker ( #26276 )
...
* feat: add APIs to enable/disable bulitin spell checker
* feat: add togglespellchecker menu item role
2020-11-11 10:29:18 -05:00
loc
0b85fdf26c
feat: add webContents.setWindowOpenHandler API ( #24517 )
...
Co-authored-by: Jeremy Rose <jeremya@chromium.org >
2020-11-10 09:06:03 -08:00
Jeremy Rose
34156c424c
fix: [webview] fix missing properties on events when contextIsolation: true ( #26289 )
2020-11-04 11:15:20 +09:00
Milan Burda
d25fa7b075
refactor: store <webview> attributes as typed Map ( #26307 )
2020-11-03 15:02:23 -08:00
Abhishek Shingane
d16e61dc85
fix: window.open not accepting size values with "px" at the end ( #26104 )
...
* fix: use parseInt to parse sizes
* fix: pass radix to parseInt
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com >
Co-authored-by: Cheng Zhao <github@zcbenz.com >
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com >
2020-11-02 18:55:59 +09:00
Milan Burda
0c2e2bca92
refactor: don't send ipcRenderer.sendSync() returnValue as an array ( #26178 )
2020-10-28 18:48:20 +03:00
Fabio Spampinato
d4191c4a26
fix: optimized asar paths checks ( #26024 )
...
* fix: optimized asar paths checks
* fix: ensuring the linter is happy
2020-10-26 12:19:35 +09:00
Shelley Vohr
e89abed924
fix: disable use of the vm module in the renderer ( #26087 )
2020-10-23 11:49:52 -07:00
Milan Burda
df1432a315
feat: add net.online / net.isOnline() ( #21004 )
2020-10-20 19:55:06 -07:00
Cheng Zhao
6b6ffbdd10
feat: add support for share menu on macOS ( #25629 )
2020-10-19 18:33:06 -07:00
Milan Burda
321395d96e
refactor: use Map instead of Object for better semantics ( #25982 )
2020-10-19 03:24:51 +03:00
Matt Kane
dfbb88c5f6
fix: pass module resolution paths to wrapped function ( #25891 )
2020-10-14 10:13:45 -07:00
Milan Burda
2c68bad631
refactor: create IPC_MESSAGES enum for IPC message channels ( #25694 )
2020-10-14 00:11:06 +03:00
David Sanders
b194030a34
chore: cleanup some typos in comments ( #25770 )
2020-10-13 10:25:21 -07:00
Milan Burda
f827acc3be
chore: convert guest-view-manager.js to TypeScript ( #25825 )
2020-10-13 04:29:08 +03:00
Milan Burda
83bb065b4f
refactor: wrap Object.prototype.hasOwnProperty.call ( #25834 )
2020-10-10 03:45:08 +03:00