Closed adrienjoly closed 4 years ago
for reference, full error:
Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
at x.C (https://ssl.gstatic.com/accounts/o/1921062015-idpiframe.js:12:285)
at Object.k.ub (https://ssl.gstatic.com/accounts/o/1921062015-idpiframe.js:8:121)
at S.h.start (https://ssl.gstatic.com/accounts/o/1921062015-idpiframe.js:50:170)
at Object.Bb [as startIdpIFrame] (https://ssl.gstatic.com/accounts/o/1921062015-idpiframe.js:84:713)
at https://accounts.google.com/o/oauth2/iframe:1:414
Behavior tests:
Block sites
alone => console error + google warns that cookies are disabledBlock 3rd-party cookies
alone => console.error + google login silently fails ⚠️accounts.google.com
+Block sites
=> works without error √accounts.google.com
+Block 3rd-party cookies
=> works without error √https://github.com/GoogleWebComponents/google-signin/issues/99#issuecomment-287895202 => suggestion: have a timeout display a message to the user, after a few seconds without successful login.
Closing in favor of #58.
identified from https://js-code.herokuapp.com (js qcm 5) by alexandre blanc.
cause:
when localstorage was disabled by the user on Chrome, the google-signin element fails to load:
same problem cited there:
solutions:
1) re-enable localstorage on Chrome: http://stackoverflow.com/questions/24456891/iframe-in-chrome-error-uncaught-securityerror-failed-to-read-the-sessionstora
2) add accounts.google.com to exception list: https://github.com/GoogleWebComponents/google-signin/issues/99 (instructions en français)