Bug 267741 - sfusd.edu: Trying to load SFUSD School Finder sometimes fails
Summary: sfusd.edu: Trying to load SFUSD School Finder sometimes fails
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-01-18 16:46 PST by Chris Dumez
Modified: 2024-01-19 10:51 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.