Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charliehess/webview-preload-globals
Minimal repro for a Slack signin bug
https://github.com/charliehess/webview-preload-globals
Last synced: 17 days ago
JSON representation
Minimal repro for a Slack signin bug
- Host: GitHub
- URL: https://github.com/charliehess/webview-preload-globals
- Owner: CharlieHess
- Created: 2017-04-24T20:05:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T18:26:05.000Z (over 7 years ago)
- Last Synced: 2024-10-29T20:09:50.950Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webview-preload-globals
This is a minimal repro for https://github.com/electron/electron/issues/4025. After a series of navigations in a `webview` with a `preload` script, we attempt to load native modules twice and get the following about 50% of the time:```
Unable to load preload script: /Users/charlie/webview-preload-globals/src/preload.js
Error: Module did not self-register.
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Users/charlie/webview-preload-globals/node_modules/runas/lib/runas.js:4:11)
at Object. (/Users/charlie/webview-preload-globals/node_modules/runas/lib/runas.js:47:4)
```In the `webview`'s devTools, check `window.injectedGlobal` and you'll see that it's no longer there.
## To Reproduce
```
npm i
electron-forge start
```
Then sign into one of your Slack teams. It might take a couple attempts.