Bug 267741

Summary: sfusd.edu: Trying to load SFUSD School Finder sometimes fails
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2024-01-18 16:46:51 PST
Trying to load the following link often fails in Safari (and Firefox), works fine in Chrome:
https://www.sfusd.edu/schools/enroll/discover/school-finder

We see the following error in the JS console:
```
[Error] ReferenceError: Can't find variable: google
	(anonymous function) (js_h2tB6IRXjTJGY_6Kj6g8zvcS1bzOjvsppQOjs7XaUWs.js:12:176)
```

This is caused by the google maps script being marked as async while one of the sync script tries to access `window.google.maps`.
Comment 1 Chris Dumez 2024-01-18 16:46:59 PST
<rdar://116292738>
Comment 2 Chris Dumez 2024-01-18 16:49:20 PST
Pull request: https://github.com/WebKit/WebKit/pull/22950
Comment 3 EWS 2024-01-19 10:51:54 PST
Committed 273225@main (9c0f02f12a3c): <https://commits.webkit.org/273225@main>

Reviewed commits have been landed. Closing PR #22950 and removing active labels.