This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Upgrade to Electron 3.0 - #18603
Merged
Merged
Upgrade to Electron 3.0#18603
Conversation
|
Over in Arch Linux, we've been packaging an unofficial electron 3.x package for the past month. Although it mostly works, we did receive a bug report with a proposed resolution that we've forwarded to atom/tabs#552 |
Contributor
|
Segmentation fault in this issue. Looks like somethings been deprecated. |
Contributor
|
Deprecations have already been fixed in fs-plus 3.1.1, which is in this PR. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 task
1 task done
Contributor
|
There are some workarounds in |
This change uses a different JavaScript syntax to cause the "when a .js file does not start with 'use babel'" spec to fail again after upgrading to Electron 3 / Node 10.3.0. The previous generator syntax seems to be supported in the version of V8 used by Node 10 so we now need to use the 'export default' syntax to trigger an error. I've verified that changing the first line of this file to 'use babel' causes the file to load successfully, so it seems this new syntax is effective to verify the desired behavior.
In Chrome 66+ it seems that getComputedStyle().fontWeight returns the computed numeric value of the style instead of the original descriptive name. We now look for value '700' which corresponds to the value of 'bold'.
This change is necessary for Electron 3 to a bug in Node.js 10.2.x which causes the `removeAllListeners` method to no longer remove all listeners for any event name when no argument is passed: nodejs/node#20924 This issue has been fixed in Node.js 10.3.0+ so we will have to remove this workaround when we move to Electron 4.0 to avoid future event handler leaks.
As of Chromium 63, ::shadow CSS selectors have been fully removed: https://developers.google.com/web/updates/2017/10/remove-shadow-piercing As a result, any usage of ::shadow in a stylesheet seems to get removed as soon as the stylesheet is applied to an HTMLStyleElement. Since we have a couple of tests that expect ::shadow selectors to be present, we must remove those expectations since those selectors do not appear any longer.
This was referenced Jan 24, 2019
This dependency is no longer needed now that we use Node's built-in APIs
1 task done
jasonrudolph
added a commit
that referenced
this pull request
Feb 25, 2019
- Downgrade to latest version of Electron 2.0.x - Revert script/lib/generate-startup-snapshot.js to the state it was in prior to the Electron 3 upgrade in #18603. This change is needed to resolve the error shown below: ``` Moving generated startup blob into "./out/Atom Dev.app/Contents/Frameworks/Electron Framework.framework/Resources/v8_context_snapshot.bin" Error: ENOENT: no such file or directory, rename './out/v8_context_snapshot.bin' -> './out/Atom Dev.app/Contents/Frameworks/Electron Framework.framework/Resources/v8_context_snapshot.bin' at Object.fs.renameSync (fs.js:766:18) at electronLink.then (./script/lib/generate-startup-snapshot.js:128:10) at <anonymous>:null:null ```
This was referenced Feb 25, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 change upgrades Atom to Electron 3
. This gives us (and package authors) access to Chromium 66 and Node 10.
Related Issues
Fixes #17819.
Fixes #6666.
Fixes #18535.
TODO
General testing
electronto see if any of them are fixedSteps
1. Open a file 1. Share a portal 1. Have a guest join the portal 1. When guest edits the text in the file, verify that the host sees those changesCheck for regressions experienced in previous upgrades
Text Input/Keybindings
See how to setup keyboard layouts.
IME not working (1.19.0-beta2: Cursor stucks at the first letter when using macOS Chinese IME #14911)
Repro steps
zhongwenshuruExpected: in Pinyin simplified
中文输入is expectedIssues we've seen: Only shows latin first character and not every character typed.
macOS: Key binding with composition characters are ignored (key-mappings with
altdon't suppress Mac OS composition characters anymore (atom-1.19) #15189)Repro steps
ABC - Extendedkeyboard layoutExpected: the keybindings work
Issues we've seen: it types out the modified keys and ignores the key mapping
macOS: Composition characters mess up insertion point (Composition characters mess up insertion point #15344)
Repro steps
Expected: Both alt-o and alt-n behave the same
Issues we've seen:

Ubuntu: Keystrokes involving ctrl resolve to the default layout instead of the active layout (Keystrokes involving ctrl on Linux resolve to the default layout instead of the active layout #13170)
Repro steps
This should be tested on Linux with gnome
Expected:
core:closeto dispatch (Or the keybinding-resolver to resolve to ctrl-w). Should be resolving to the keyboard layout that is chosen and not the OS default layout.Issues we've seen:
core:undodispatched because it was resolved as ctrl-z because AZERTY has Z where W is on QWERTY.Other keyboard layouts on new Electron version
UI
tree-view drag image (Display the correct drag image on Electron >= 1.14 tree-view#1054)
Repro steps
Expected:

Issues we've seen:
drag-and-drop indicator (Fix missing drop indicator on Electron >= 1.14 tree-view#1055, Fix missing drop indicator on Electron >= 1.4 tabs#426, Fix mistakenly shown docks drop indicator on Electron >= 1.4 tabs#437)
Repro steps
atom folderA folderB folderC)Expected:
The placeholder indicates where the folder/project is being dropped to.
Issues we've seen:
No placeholder shows up after drag and dropping
Large file rendering (Bad rendering after ~1 million lines #16591)
Repro steps
Expected: To not regress the number of lines that can be rendered. Rendering to be correct for lines past a certain point. Atom 1.25 can render around 800k to 1 million lines correctly.
Issues we've seen: Increased number of lines rendered but bad rendering past a certain point
Loss of subpixel AA when the cursor is at the end of long lines (Loss of subpixel AA on soft-wrapped line #16889, Don't break subpixel AA when cursor is at the end of longest line #16595)
Repro steps
auntil the you reach the end of the windowExpected: To not lose subpixel AA
Issues we've seen: Loss of subpixel AA. Both when soft wrapping was enabled and disabled.
Scrolling horizontally shift + scroll wheel (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
Expected: File to scroll horizontally in both directions
Issues we've seen: File does not scroll horizontally at all in any direction
Scrollbars misbehaving on the first file that is opened (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
Expected: Scrollbar to be visible
Issues we've seen: Scrollbar is not visible and is flickering when you are editing
Middle clicking on unsaved tab (1.19, Linux: Middle-clicking an unsaved tab causes entire desktop to be unresponsive to clicks #15197)
Repro steps
Expected:
Clicking save/cancel or the options on the dialog works.
Issues we've seen:
The UI and the dialog is unable to receive mouse clicks. You can still choose options via Keyboard, but not mouse.
Linux: Atom scrolls even when not focused (Atom scrolls even when not focused #15482)
Repro steps
Expected: Atom window should keep the original scroll position
Issues we've seen: The Atom window scrolls after it is focused
Other
Deprecation warnings (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
This should be tested on macOS, Linux and Windows with community packages installed
Expected: No new deprecation warnings
Issues we've seen: New deprecation warnings both from core and community packages
Supported Versions of OS (Atom 1.19.0 crashes instantly after launching #15297)
Repro steps
Expected: https://atom.io and https://atom.io/faq to display the same versions as the Electron documentation
Issues we've seen: macOS version support changed and https://atom.io and https://atom.io/faq was not updated
macOS : Native tabs (Native tabs on macOS #14711)
Repro steps
Show Tab BarExpected:
Native Tab bar shows up and able to drag different windows to each other. Also make sure UI isn't messed up.
Issues we've seen:
Native Tab Bar doesn't work and messes up UI when enabled
Ubuntu with KDE: Menu uses 100% CPU (Globalmenu consumes 100% CPU and does not work electron/electron#8455, Menus not working in plasma 5.9 with global menu enabled #13885)
Repro steps
Expected:
Desktop menu items work
Issues we've seen:
Desktop menu items do nothing when you click on things.
macOS: Slovak QWERTZ (Slovak QWERTZ does not resolve keys correctly on macOS atom-keymap#223)
Repro steps
cmd+'.Expected: Resolves to
cmd+'like it shows on keyboard viewer on mac.Issues we've seen: It resolves to
ctrl+§macOS: IME jump (1.20.0: Popup jump when using macOS Chinese IME #15696)
Repro steps
Expected:
Expected the IME to be positioned at under the character you entered
Issues we've seen: The IME window is in the top left corner. When you enter the second character it jumps to be positioned under the text