Bug 246776
| Summary: | REGRESSION (Safari 16?): Firebase authentication fails: Right side of assignment cannot be destructured | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mehdi <mars.martian> |
| Component: | Frames | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, cdumez, webkit-bug-importer, wilander |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mehdi
The overall issue is that Firebase communicates with an iframe to coordinate login and it seems the events being passed back from the iframe in Safari 16.1 are different and subsequently cause a problem.
I searched around on the tracker and couldn't find anything related. Here is the issue on the Firebase SDK issue tracker: https://github.com/firebase/firebase-js-sdk/issues/6636
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Could you please provide steps to reproduce here, ideally a minimized test case without libraries?
I don't think that this is actionable as is.
Mehdi
I don't have a minimal test case yet as I am an end user of Firebase and merely reporting an error that their library runs into.
You can repro it by going to https://fir-ui-demo-84a6c.firebaseapp.com/? and trying to login via Google. In the console, you'll see an error at a line like:
`const { urlResponse, sessionId, postBody, tenantId, error, type } = event;`
where event is a MessageEvent.
This runs into the error: TypeError: Right side of assignment cannot be destructured
I have tried to repro using a minimal MessageEvent but not been able to.
I also tried to run a webkit bisect but the archived builds for Mac don't seem to go back far enough to find a passing case.
Alexey Proskuryakov
Thank you for the repro case!
Radar WebKit Bug Importer
<rdar://problem/101479243>