Bug 258081

Summary: www.cross-code.com using incompatible ogg format
Product: WebKit Reporter: furrows-lumber.0c
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, furrows-lumber.0c, karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 16   
Hardware: All   
OS: iOS 16   
URL: http://www.cross-code.com/en/start
Attachments:
Description Flags
Error screen before crash none

Description furrows-lumber.0c 2023-06-14 10:42:53 PDT
Created attachment 466693 [details]
Error screen before crash

http://www.cross-code.com/en/start

Crashes with errors on any iOS or ipadOS and only in safari in macOS. Works well with chrome on macOS.
Comment 1 Karl Dubost 2023-06-15 04:11:26 PDT
1. Go to http://www.cross-code.com/en/start with STP 172

There is a message saying:

> Untested Browser
> We don't know if your current browser supports CrossCode, so proceed at own risk. If things don't work out, you can try Chrome or Firefox.


According to Firefox console.log
All JSON are sending 

XML Parsing Error: not well-formed
Location: http://www.cross-code.com/data/effects/trail.json
Line Number 1, Column 1:


There is no content type sent. 

```
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2023 09:41:23 GMT
Content-Length: 9428
Connection: keep-alive
Access-Control-Allow-Origin: *
Last-Modified: Sat, 20 Aug 2016 23:12:56 GMT
ETag: "24d4-53a88f48d135f"
Accept-Ranges: bytes
Cache-Control: max-age=7200, public, must-revalidate
```

Back to Safari to understand.


```
HTTP/1.1 200 OK
ETag: "123c-53a88f1ec395f"
Access-Control-Allow-Origin: *
Last-Modified: Sat, 20 Aug 2016 23:12:12 GMT
Date: Thu, 15 Jun 2023 09:40:40 GMT
Accept-Ranges: bytes
Content-Length: 4668
Cache-Control: max-age=7200, public, must-revalidate
Connection: keep-alive
Server: nginx
```


The error sent by the app is 


```
map: [GAME INIT], version: [---], platform: [Browser], OS: [Mac], browser: [Safari], browserVersion: [17], webAudioSupport: [true], webAudioOption: [null]
Message: [Web Audio Load Error: Could not DECODE: media/sound/environment/train-cube-appear.ogg]

--- GAME INFO ---


STACK TRACE

@http://www.cross-code.com/js/game.compiled.js:95:495
```

so that looks like incompatible ogg format.
http://www.cross-code.com/media/sound/environment/train-cube-appear.ogg
Comment 2 Alexey Proskuryakov 2023-06-17 14:46:01 PDT
If I understand what Karl is saying correctly, this seems like an issue in system frameworks below WebKit. 

Could you please report it to Apple via https://feedbackassistant.apple.com, and post the feedback number here? We can also migrate it ourselves, but you'll have better visibility into its state if you report the feedback yourself.
Comment 3 Radar WebKit Bug Importer 2023-06-21 10:43:19 PDT
<rdar://problem/111111557>