This repository has been archived by the owner on Oct 18, 2020. It is now read-only.
Update dependency electron to v7 [SECURITY] #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.0.4
->7.2.4
GitHub Vulnerability Alerts
CVE-2020-4077
Impact
Apps using both
contextIsolation
andcontextBridge
are affected.This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions.
Workarounds
There are no app-side workarounds, you must update your Electron version to be protected.
Fixed Versions
9.0.0-beta.21
8.2.4
7.2.4
For more information
If you have any questions or comments about this advisory:
CVE-2020-4076
Impact
Apps using
contextIsolation
are affected.This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions.
Workarounds
There are no app-side workarounds, you must update your Electron version to be protected.
Fixed Versions
9.0.0-beta.21
8.2.4
7.2.4
Non-Impacted Versions
9.0.0-beta.*
For more information
If you have any questions or comments about this advisory:
CVE-2020-4075
Impact
The vulnerability allows arbitrary local file read by defining unsafe window options on a child window opened via window.open.
Workarounds
Ensure you are calling
event.preventDefault()
on allnew-window
events where theurl
oroptions
is not something you expect.Fixed Versions
9.0.0-beta.21
8.2.4
7.2.4
For more information
If you have any questions or comments about this advisory:
CVE-2020-15096
Impact
Apps using
contextIsolation
are affected.This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions.
Workarounds
There are no app-side workarounds, you must update your Electron version to be protected.
Fixed Versions
9.0.0-beta.21
8.2.4
7.2.4
6.1.11
For more information
If you have any questions or comments about this advisory:
Release Notes
electron/electron
v7.2.4
Compare Source
Release Notes for v7.2.4
Fixes
nativeWindowOpen: true
could invoke the non-native-open path. #23224v7.2.3
Compare Source
Release Notes for v7.2.3
Fixes
a9bead2
v7.2.2
Compare Source
Release Notes for v7.2.2
Fixes
zoomFactor
values when setting the zoom factor of a webpage. #22710maximizable
state persistence of BrowserWindows on macOS. #230191065094
. #23059Other Changes
1023810
). #22869v7.2.1
Compare Source
Release Notes for v7.2.1
Fixes
cac3884
v7.2.0
Compare Source
Release Notes for v7.2.0
Features
useSessionCookies
flag tonet
requests to allow them to use the session cookie store.Fixes
c16c4c2
Object
prototype could cause internal Electron logic to throw errors. #22729Unknown
ace3216
v7.1.14
Compare Source
Release Notes for v7.1.14
Fixes
safeDialog
preferences not being passed properly. #22376v7.1.13
Compare Source
Release Notes for v7.1.13
Fixes
webRequest
API not working with WebSockets. #22141webContents.print()
with custom print margins. #22187undefined
was printed fromconsole.log
on Window when no arguments were passed. #22173Other Changes
deviceName
s inwebContents.print()
. #22012Documentation
v7.1.12
Compare Source
Release Notes for v7.1.12
Fixes
contextBridge
module. #22112v7.1.11
Compare Source
Release Notes for v7.1.11
Fixes
window.print()
only worked once on a singleBrowserWindow
. #21911Documentation
v7.1.10
Compare Source
Release Notes for v7.1.10
Fixes
BrowserWindow.setFocusable(true)
not working on Windows. #21855set-cookie
header not passed in net module. #21770Other Changes
v7.1.9
Compare Source
Release Notes for v7.1.9
Fixes
nativeWindowOpen: false
and an unsandboxed parent window. Also fixeddocument.visibilityState
not working in sandboxed<webview>
. #21696shell.showItemInFolder
on Windows. #21749Documentation
v7.1.8
Compare Source
Release Notes for v7.1.8
Fixes
net
module where aborting a request during a redirect could cause an error to be thrown. #21645defaultId
is passed for dialog message boxes. #21652Other Changes
crashReporter
to throw an error forgetLastCrashReport
ifcrashReporter
not started. #21683v7.1.7
Compare Source
Release Notes for v7.1.7
Fixes
v7.1.6
Compare Source
Release Notes for v7.1.6
Fixes
<select>
tag inside<webview>
and OOPIF on windows. #21526v7.1.5
Compare Source
Release Notes for v7.1.5
Fixes
cookies.set
not working correctly whenname
orexpirationDate
is omitted. #21481v7.1.4
Compare Source
Release Notes for v7.1.4
Fixes
webContents.setBackgroundThrottling
. #21357Other Changes
v7.1.3
Compare Source
Release Notes for v7.1.3
Fixes
--ignore-connections-limit
, ironically, being ignored. #21299net.request
. #21135disabled-by-default-cpu_profiler
tracing category now correctly records stack samples from the main process and utility processes. #21277webContents.reloadIgnoringCache()
will now forcefully ignore all caches, including service workers. #21284window.root
andwindow.GLOBAL
are both now undefined whennodeIntegration
is disabled as expected. #21354Other Changes
net
module. #21304v7.1.2
Compare Source
Release Notes for v7.1.2
Fixes
<webview>.capturePage()
resolving with an empty object instead ofNativeImage
instance. #21104webRequest
module unable to modify CORS headers. #21123registerStreamProtocol
would sometimes fail to complete the response when the stream ended. #21179Other Changes
v7.1.1
Compare Source
Release Notes for v7.1.1
Fixes
backgroundThrottling: false
not having an effect. #21013globalShortcut.registerAll()
on Windows and Linux. #20983recentDocuments
MenuItem. #20957app.setAppLogsPath
did not work when you provided a valid path. #21008Other Changes
v7.1.0
Compare Source
Release Notes for v7.1.0
This release is a minor bump as it contains exactly one new feature.
contextBridge
module, this feature is outlined below along with the other fixes and changes that went into this release. The7.1.x
series is now only release line in the7.x.y
major release line that will receive bug fixes and security fixes. It is recommended you upgrade to7.1.x
.Features
contextBridge
module to make it easier to communicate between an isolated context and the main world. #20789Fixes
nativeTheme
not accessible via theremote
module. #20961Bluebird
was installed in the renderer. #20947Other Changes
18176b4
,ef548b6
v7.0.1
Compare Source
Release Notes for v7.0.1
Fixes
shell.openExternal()
optionworkingDirectory
not working with Unicode characters. #20905menu.popup()
. #20808recentDocuments
role on macOS. #20670remote
could sometimes not be correctly freed. #20693webContents.printToPDF()
multiple times. #20810BrowserView
s. #20846remote
module. #20715remote
module is used in sub-frames (<iframe>
or scriptable popup). #20814Other Changes
Documentation
v7.0.0
Compare Source
Release Notes for v7.0.0
Notable Changes
ipcRenderer.invoke()
andipcMain.handle()
for asynchronous request/response-style IPC. These are strongly recommended over theremote
module. See this "Electron’s ‘remote’ module considered harmful" blog post for more information. #18449nativeTheme
API to read and respond to changes in the OS's theme and color scheme. #19758, #20486Breaking Changes
More information about these and future changes can be found on project's Planned Breaking Changes page.
Tray.setHighlightMode()
(macOS). #18981app.enableMixedSandbox()
#17894app.getApplicationMenu()
,app.setApplicationMenu()
,powerMonitor.querySystemIdleState()
,powerMonitor.querySystemIdleTime()
,webFrame.setIsolatedWorldContentSecurityPolicy()
,webFrame.setIsolatedWorldHumanReadableName()
,webFrame.setIsolatedWorldSecurityOrigin()
#18159Session.clearAuthCache()
no longer allows filtering the cleared cache entries. #17970electron
module to use@electron/get
. The minimum supported node version is now Node 8. #18413electron.asar
file no longer exists. Any packaging scripts that depend on its existence should be updated. #18577New Features
netLog.startLogging()
now returns a promise which resolves when the net log has started recording.webContents
/<webview>
methods now return aPromise
. #18792always-on-top-changed
event emission for macOS. #19462app.resignCurrentActivity()
to allows marking inactive the current Handoff user activity without invalidating it. #18659captureMode
andmaxFileSize
options to the netLog API. #19215creationTime
/sandboxed
/integrityLevel
toapp.getAppMetrics()
output. #18718failureReason
parameter to thewebContents.print()
callback function to distinguish between success, failure, and cancellation. #19000getBounds()
method for BrowserView. #19370gpu-info-update
event toapp
, which is emitted whenever there is a GPU info update. #18250memory
toapp.getAppMetrics()
. #18831process.getBlinkMemoryInfo()
. #17762removeInsertedCSS()
towebFrame
/webContents
/<webview>
. #16579zoom-changed
event towebContents
, which is emitted when the user zooms using the mouse wheel on Windows, even if the focus is inside an (x-origin) iframe. #17747Tray
from custom to native view to be compatible with Catalina (macOS). #18981MenuItem.toolTip
property macOS. #19099app.moveToApplicationsFolder
. #18916ELECTRON_DEFAULT_ERROR_MODE
in the GPU process. #17728origin
inwebFrame.insertCSS()
. #19268mouse-move
event of Tray API on Windows. #19265systemPreferences.isDarkMode()
API on Windows. #19217systemPreferences.isHighContrastColorScheme()
API on macOS. #19331BrowserWindow
for macOS. #19294BrowserWindow
enablesnodeIntegrationInSubFrames
. #18650ELECTRON_SKIP_BINARY_DOWNLOAD=1
environment variable to skip electron binary download. #17627netLog.currentlyLoggingPath
. #18289Properties
webContents
primitive getters and setters to actual properties. #18998badgeCount
to an actual property on theapp
module. #17363app.name
is now a property. #17701nativeImage.templateImage
is now a property on thenativeImage
prototype. #18124appLevelAppearance
to be a property onsystemPreferences
. #18477autoHideMenuBar
to a property onBrowserWindow
instances. #18555savePath
accessor to a property on DownloadItem instances. #18677closable
,fullscreenable
,maximizable
,minimizable
,movable
, andresizable
to be properties on theBrowserWindow
prototype. #18618Fixes
ELECTRON_RUN_AS_NODE
now correctly parses both node options and v8 flags. E.g.--expose_gc
#19403triggeredByAccelerator
Event property behavior forMenuItems
. #18865window.print()
. #19728deviceName
not working. #19668close
event would not emit upon closing modal window on macOS. #19014addExtraParameter
/removeExtraParameter
methodsundefined
in macOS node child processes. #15790src
on<webview>
being too slow. #18990document.visibilityState
would be incorrect. Thewin.show()
andwin.hide()
methods now correctly update visibility state. #20134webkitdirectory
attribute oninput[type=file]
elements. #18343process
,Buffer
, etc.) are no longer removed from the global scope if you havecontextIsolation
enabled as it is safe for those variables to still exist in their isolated world. #18967getPath('logs')
now throws a more descriptive error if it fails to find the logs path. #19514web-contents-created
andbrowser-window-created
no longer emit an empty object in place of Event. #19465netLog.startLogging()
would silently fail when called immediately duringapp.on('ready')
.Documentation
End of Support for 4.x.y
Electron 4.x.y has reached end-of-support as per the project's support policy. Developers and applications are encouraged to upgrade to a newer version of Electron.
v6.1.12
Compare Source
Release Notes for v6.1.12
Other Changes
v6.1.11
Compare Source
Release Notes for v6.1.11
Fixes
Promise.then
context usage in V8v6.1.10
Compare Source
Release Notes for v6.1.10
Fixes
1065094
. #23060Other Changes
1023810
). #22870v6.1.9
Compare Source
Release Notes for v6.1.9
Fixes
v6.1.8
Compare Source
Release Notes for v6.1.8
Fixes
BrowserWindow.setFocusable(true)
not working on Windows. #21856nativeWindowOpen: false
and an unsandboxed parent window. Also fixeddocument.visibilityState
not working in sandboxed<webview>
. #21697window.print()
only worked once on a singleBrowserWindow
. #21913Other Changes
crashReporter
to throw an error forgetLastCrashReport
ifcrashReporter
not started. #21684v6.1.7
Compare Source
Release Notes for v6.1.7
Fixes
v6.1.6
Compare Source
Release Notes for v6.1.6
Fixes
webContents.setBackgroundThrottling
. #21359Other Changes
v6.1.5
Compare Source
Release Notes for v6.1.5
Fixes
<webview>.capturePage()
resolving with an empty object instead ofNativeImage
instance. #21105backgroundThrottling: false
not having an effect. #21014globalShortcut.registerAll()
on Windows and Linux. #20982v6.1.4
Compare Source
Release Notes for v6.1.4
Fixes
v6.1.3
Compare Source
Release Notes for v6.1.3
Fixes
menu.popup()
. #20786webContents.printToPDF()
multiple times. #20811BrowserView
s. #20834remote
module. #20716remote
module is used in sub-frames (<iframe>
or scriptable popup). #20815v6.1.2
Compare Source
Release Notes for v6.1.2
Fixes
v6.1.1
Compare Source
Release Notes for v6.1.1
Fixes
nativeWindowOpen
child window. #20547remote
could sometimes not be correctly freed. #20694v6.1.0
Compare Source
Release Notes for v6.1.0
This release is a minor bump as it contains exactly one new feature.
contextBridge
module, this feature is outlined below along with the other fixes and changes that went into this release. The6.1.x
series is now only release line in the6.x.y
major release line that will receive bug fixes and security fixes. It is recommended you upgrade to6.1.x
.Features
contextBridge
module to make it easier to communicate between an isolated context and the main world. #20639Fixes
Other Changes
3ca62d9
v6.0.12
Compare Source
Release Notes for v6.0.12
Features
Fixes
worker_threads
inELECTRON_RUN_AS_NODE
. #20457recentDocuments
MenuItem role on macOS. [#20409Renovate configuration
📅 Schedule: "" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.