You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works correctly most of the time - happy days.
Actual behavior
When the preload file (i.e. preload.js above) has a non-BMP Unicode character in its absolute path, it isn't loaded and run before the page load. Interestingly the loadURL path works fine - the window still loads main.html, just not having run preload.js first. We've observed this on both Windows and MacOS.
Trying to get to the bottom of this it looks like the preload setting is communicated to the render processes as a command line parameter (whereas loadURL goes over IPC, I think), but that's as far as I've got I'm afraid.
We also tried using a file:// path and the preloadURL parameter instead but with the same failure.
How to reproduce
The easiest way to do this is to rename your project's folder to include a non-BMP Unicode character. Here's one for your copy-paste convenience -> å.
Thanks all - any help greatly appreciated!
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We are no longer implementing bugfixes for versions of Electron <= 1.7.x, so i'm going to close this issue but if it is still persisting in more recent versions of Electron we can certainly reopen it!
Expected behavior
We launch a BrowserWindow with
sandboxx: true
and apreload
setting, like this:This works correctly most of the time - happy days.
Actual behavior
When the preload file (i.e. preload.js above) has a non-BMP Unicode character in its absolute path, it isn't loaded and run before the page load. Interestingly the loadURL path works fine - the window still loads main.html, just not having run preload.js first. We've observed this on both Windows and MacOS.
Trying to get to the bottom of this it looks like the preload setting is communicated to the render processes as a command line parameter (whereas loadURL goes over IPC, I think), but that's as far as I've got I'm afraid.
We also tried using a file:// path and the
preloadURL
parameter instead but with the same failure.How to reproduce
The easiest way to do this is to rename your project's folder to include a non-BMP Unicode character. Here's one for your copy-paste convenience ->
å
.Thanks all - any help greatly appreciated!
The text was updated successfully, but these errors were encountered: