flobro / flobro-chrome-app

Chrome app of Flobro, floating browser window
https://chrome.google.com/webstore/detail/faaljkdndnfoagcmhedlmbgieoocemch
MIT License
110 stars 20 forks source link

Browser Callbacks not being handled #54

Closed chen369 closed 4 years ago

chen369 commented 4 years ago

Describe the bug A clear and concise description of what the bug is The Program does not handle browser Javascripts call backs adequately to handle 3rd party sites authorization.

EXAMPLE CODE that is failing.. if (window.opener) window.opener.postMessage('LOGIN_COMPLETE', ''); else if (window.parent) window.parent.postMessage('LOGIN_COMPLETE', '');

Flobro opens new authuntication tabs in main chrome browser however after login in successfully the Window.opener.postMessage fails to "PostMessage" to window inside Flobro.

Steps to reproduce Open Flobro... Goto Settings, Enter https://foxnews.com as URL have Flobro open web page. click Live(in fox news) Click a 3rd party subscription service (Spectrum, Xfinity... etc)... After clicking a 3rd party the site opens two pop ups. After logging successfully, it fails to update in the main browser windows.

Expected behavior After successful login to a 3rd party login it should refresh on the main site.

Screenshots If applicable, add screenshots to help explain your problem.

Environment variables:

Additional context Spectrum is the 3rd party service.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It may be closed if no further activity occurs. Thank you for your contributions.

cornips commented 4 years ago

Duplicate of #40