Nativefier: Gmail, Evernote, ... login broken because navigator.cookieEnabled is set to false after navigation [Electron 7 regression]

Created on 13 Feb 2020  路  10Comments  路  Source: jiahaog/nativefier

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.

Details

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

bug help-welcome

Most helpful comment

This is still a problem. Just tested with a fresh nativefier.

All 10 comments

@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.cookiesEnabled fails.

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.

I'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!

Was this page helpful?
0 / 5 - 0 ratings