Nativefier: [7.6.1-7.6.2 regression] "Unable to communicate with the parent window" error when opening Dropbox file chooser

Created on 23 May 2018  路  11Comments  路  Source: jiahaog/nativefier

I've integrated Dropbox file chooser in our website. When i try to open the file chooser from nativefier app it gives this error "Unable to communicate with the parent window" as a result the dropbox popup doesn't get closed on file selection.
This was working fine for nativefier version 7.6.1, but not working now for 7.6.2.

This issue can be reproduced using this dropbox file chooser sample site as URL: https://www.dropbox.com/developers/chooser

For me this is happening on both Ubuntu & Windows.

Are you nativefying a public website? - yes
Full nativefier command used to build your app: nativefier https://www.dropbox.com/developers/chooser --internal-urls .*
Version of Nativefier (run nativefier --version): 7.6.2
Version of node.js (run node --version): v8.11.1
OS:

bug

Most helpful comment

That鈥檚 disappointing. I suspect we鈥檒l have to decide between disabling node integration, and having this use case work. I can try testing that tonight.

All 11 comments

@bhagyashri-sawkar thanks for the feedback, reproducible scenario, and precise narrowing down to a 7.6.1 ... 7.6.2 regression 馃憤馃憣馃檪.

@bacongravy probably a side-effect of https://github.com/jiahaog/nativefier/pull/591; can you have a look?

If this is a side-effect of #591 then it is probably fixed with https://github.com/jiahaog/nativefier/commit/69a5b2cbbe356876b767993358a1806ac6c5695f, which hasn't been released yet. Might be worth cutting a 7.6.3 release with just that fix (along with a bump to Electron 1.8.7).

@bacongravy ah, true. I'll release 7.6.3 soon, then; it will have 7.6.2....master: your fix, Electron 2.0.2 by default, macOS tabs.

@bhagyashri-sawkar I'll ping you here when 7.6.3 is on npm. In the meantime, if you have the time for that, a test confirming the problem is fixed on master (see our dev build guide) is welcome.

Might be worth branching from the 7.6.2 tag and backporting the .newGuest fix to put out a 7.6.3. I had sort of been assuming you'd bump the version to 7.7 or 8.0 to account for the electron 2 dependency update and the new tabs feature.

Additionally, I thought you might want to wait to include #613 before bumping to 8.0 as it might be considered a breaking change.

@bacongravy afaik, Electron 2.0.0 doesn't change anything to the eyes of a user (and we took care of the deprecations), so semver says it doesn't mandate a major bump. You're right that I could have bumped to 7.7.0 for tabs, though. Whatever, 7.6.3 is released and is on npm.

@bhagyashri-sawkar tests welcome 馃檪.

@ronjouch Thanks for the update. I tested on master as well as on 7.6.3, it still doesn't seem to be working.

"I tested on master as well as on 7.6.3, it still doesn't seem to be working."

@bacongravy

That鈥檚 disappointing. I suspect we鈥檒l have to decide between disabling node integration, and having this use case work. I can try testing that tonight.

@bacongravy Please let me know when its fixed.

I wasn't able to review this last night but expect to do so today.

I've put up a fix in #620. I have verified that it fixes the issue with the Dropbox chooser.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vegbrasil picture vegbrasil  路  4Comments

jamiewilson picture jamiewilson  路  5Comments

mklaber picture mklaber  路  5Comments

Waitsnake picture Waitsnake  路  5Comments

desimaniac picture desimaniac  路  4Comments