New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] signInWithPopup creates new tab instead of popup in Chrome 59 #63
Comments
This is a chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=723655 |
The only way we can fix it is via a hack. |
The fix I mentioned is a hack in my opinion. This should be fixed on Chrome's end. |
Also having this issue. What is the work around? @bojeil-google could you be more specific? Ideally I could do this in a modal even. I was unsuccessful with this:
|
This is a Chrome bug. There is no workaround. Chrome breaks this expected behavior. Please check the link: https://bugs.chromium.org/p/chromium/issues/detail?id=723655 |
I see. Well I'm using react.js with it, and I used your "window.open" method for a new route which does the "loginWithGoogle". It opens a new window successfully. However, I can't do 'window.close' when the sign in is complete. The promise doesn't seem to work. Am I using it right? This code never invokes the .'then' ''' This code causes the 'then' to happen immediately (ie before redirect even happens). ''' |
Internally we call something like: I am not sure about your case as you are using signInWithRedirect and not signInWithPopup. |
I'm using sign up redirect as I am opening it in a separate new window
FIRST, then running the "login with Google" in that new window.
How can I hook into the completion of the social sign up process?
…On Tue, 18 Jul 2017 at 8:49 AM, bojeil-google ***@***.***> wrote:
Internally we call something like:
window.open('about:blank', '_blank',
'width=515,height=680,top=260,left=702,location=1,resizable=1,statusbar=1,toolbar=0');
In the current version of Chrome this opens a tab and not a popup. This is
a bug in Chrome. There is not much we can do until it is fixed.
I am not sure about your case as you are using signInWithRedirect and not
signInWithPopup.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMcFex8SIyE7TV9U-r2o940k_-jQRdatks5sO-TlgaJpZM4N9CZc>
.
|
Oh, I see. So you are implementing your own sign in with popup where you open a popup and then signInWithRedirect on that window. You need to call Let me know if I am understanding this correctly. |
I tried your suggestion, by doing
However it gave this error:
Could you give a bit of an example? Thanks |
Check the documentation on this: |
Describe your environment
Describe the problem
When using firebase.auth.signInWithPopup(provider) a new tab is created with the auth instead of creating a popup as it did in Chrome 58 and earlier.
https://stackoverflow.com/questions/44417724/facebook-authentication-opening-tab-instead-of-popup-in-chrome-59 seems to say that the parameter 'location=no' needs to be passed in window.open(), but this is not accessible using the SDK.
Steps to reproduce:
Create an auth button with signInWithPopup() and click on it. A new tab will pop up instead of a new popup window.
Relevant Code:
This link describes the problem perfectly.
https://stackoverflow.com/questions/44417724/facebook-authentication-opening-tab-instead-of-popup-in-chrome-59
The text was updated successfully, but these errors were encountered: