News for hackers. Stuff that matters.
Re:Building video chat into my personal website using WebRTC... by VWWHFSfQ on Monday May 03, 2021 @06:05PM (#27031393)
iOS and Safari is riddled with WebRTC bugs like this. Sounds similar to my experience. Everything consistently works great in Chrome and Firefox and then only kinda works Safari. worst browser on the planet
Re:Building video chat into my personal website using WebRTC... by nobleach on Monday May 03, 2021 @06:14PM (#27031520)
I've jokingly referred to Safari as SafarIE for the last 5 years. It does tick all these boxes:

1. Backed by an OS manufacturer that doesn't care about the web 2. Spends more time working on features that suit itself than meeting standards agreed upon by a body of which they're a part. 3. The only sanctioned/allowed browser on their platform (MS didn't even achieve this holy grail) 4. Lagging behind most other popular browsers by years in some cases

But due to it being the ONLY browser that'll run on iOS, I have no choice but to dumb down user experience for it. This year's lovely issue has been MediaRecorder - but supposedly that's made it into the most recent release.

Re:Building video chat into my personal website using WebRTC... by cjohansson on Tuesday May 04, 2021 @01:28AM (#27034334)
The cycle repeats itself, maybe it's a successful pattern, that's why it keeps coming back..
Re:Building video chat into my personal website using WebRTC... by NetOpWibby on Monday May 03, 2021 @11:10PM (#27033663)
SafarIE?!

Bahaha, brilliant.

Re:Building video chat into my personal website using WebRTC... by mguerville on Monday May 03, 2021 @07:41PM (#27032332)
I use firefox on iOS, it’s even set as my default browser. Curious what you mean by “safari is the only browser that works in iOS”? For in browser video chat? Genuinely curious, what are the limitations?
Re:Building video chat into my personal website using WebRTC... by danielheath on Monday May 03, 2021 @07:46PM (#27032366)
Firefox on iOS uses the safari js runtime and the safari layout engine.
Re:Building video chat into my personal website using WebRTC... by mguerville on Tuesday May 04, 2021 @08:28AM (#27036825)
Ah I see, thanks I had no idea (I assume most average users are in the same situation). I assume IpadOS is the same, and only MacOS allows a true non safari browser.
Re:Building video chat into my personal website using WebRTC... by VWWHFSfQ on Monday May 03, 2021 @07:47PM (#27032369)
Firefox and chrome on iOS are just re-skins of safari. Apple doesn't allow other browser backends
Re:Building video chat into my personal website using WebRTC... by danielheath on Monday May 03, 2021 @07:53PM (#27032412)
To elaborate on "doesn't allow":

iOS binaries that are not signed by apple are not permitted to mark memory pages as executable if they have previously been writable.

This restriction makes exploiting buffer overruns very difficult on iOS - particularly important as objective-c doesn't give you much help avoiding them.

However, you can't write a runtime compiler unless you can generate bytecode (write) and then execute it, and nobody has found a way to write a performant javascript or CSS engine without some form of runtime compilation.

So, Apple does allow you to write your own browser backends, but they won't give their signature, which would permit you to use riskier techniques to gain performance.

In practice, that means any browser not using the safari engines would be unacceptably slow on the modern web.

Re:Building video chat into my personal website using WebRTC... by nobleach on Monday May 10, 2021 @09:38AM (#27105851)
This is the absolute best (and correct) explanation I've ever seen in such a small space. Thank you.