You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the oath2 module the user is eventually redirected to the redirect page which should close automatically or should be closed by a click on a button. It however does not work and throws the following error in the browser's console:
Scripts may not close windows that were not opened by script.
Describe the bug
Using the oath2 module the user is eventually redirected to the redirect page which should close automatically or should be closed by a click on a button. It however does not work and throws the following error in the browser's console:
In the following piece of code: https://github.com/plamere/spotipy/blob/dc89a00113e98b26b4932b582cb4f7b4449fcd4d/spotipy/oauth2.py#L1282-L1293
the page tries to close itself by doing a window.close() on line 1282 and also tries to add a button on line 1292 which should close the current window, but it does not.
This is the case in both Chromium-based browsers as in Firefox see: firefox definition .
This behavior is confusing for some users, someone opened an issue on my project regarding this: MartijnVogelaar/krunner-spotify#26
``
Your code
Expected behavior
The expected result is obviously that the window is automatically closed, or closed by clicking the button.
Output
As said earlier the browser console outputs:
Environment:
Suggestion
I would suggest to just remove the entire button and tell the user that the window can be closed by the user.
The text was updated successfully, but these errors were encountered: