EDIT from maintainer @ronjouch: Workaround for affected users until this is fixed: use the latest 6.x Electron by passing flag -e 6.1.9 . Help welcome, and I'm asking for help at https://github.com/electron/electron/issues/21256#issuecomment-602045272 .
navigator.cookieEnabled is set to false and triggers "Your browser does not support cookies" warnings.
When a website checks for navigator.cookieEnabled, nativefier returns false. I checked this in the console and it is false and not even undefined.
Nativefier Version: 7.7.0
Node Version: 10.17.0
OS: Linux
@allo- thanks for the feedback. On which website? Please share the full command-line example to reproduce the issue.
A private rainloop installation. You can test with their online demo.
Command Line:
nativefier --single-instance --name "RainloopTest" https://mail.rainloop.net/
When you login to the demo, you get redirected to a "No cookies enabled" page.
I patched the private rainloop and removed the check and the nativefied site works fine and remembers cookies even across closing and starting the app again, but the detection using navigator.cookiesEnabled fails.
I patched the private rainloop and removed the check and the nativefied site works fine and remembers cookies even across closing and starting the app again, but the detection using
navigator.cookiesEnabledfails.
Thanks. navigator.cookieEnabled contains true in an Electron 8 app built with the rework I'm finishing at https://github.com/jiahaog/nativefier/pull/898 . So, you should be okay once the rework is merged, and you have a workaround, so closing.
Re-opening. navigator.cookieEnabled (note to self: no 's', cookieEnabled, not cookiesEnabled) is initially set to true on app load, but becomes false after navigation to any page, breaking logins.
true in 6.1.9, but since 7.0.1 navigation flips it to falseI'm able to reproduce this as well. Thanks for the workaround!
I had the same issue trying with music.youtube.com
Yeah, unfortunately it is pretty widespread.
:wave: everybody. I just released Nativefier v9.0.0 which defaults to Electron 9.0.4, and I received an email notification in https://github.com/electron/electron/issues/21256#issuecomment-630306506 that "Electron 9 is no longer affected by this issue", but that comment got deleted.
So, not sure if this is fixed or not, tests welcome.
This is still a problem. Just tested with a fresh nativefier.
Still a problem I think!
Most helpful comment
This is still a problem. Just tested with a fresh nativefier.