Live data from Hacker News

New WebKit features in Safari 15.4

webkit.org

211–220 of 311 posts

Re: New WebKit features in Safari 15.4

#211
post #51

With so many new features being added to browsers lately it is easy to forget, that not all browsers on old devices are updated, be it older iPad or even laptop with ChromeOS. Dear web developers, please don't forget to add fallbacks or polyfills for older devices.

That's the risk you take by buying iPhone or ChromeOS: you're buying into a platform where you don't have the option to find alternatives for "core" system functionality.

I care as much about outdated browsers as I care about Internet Explorer. If you want a modern experience, buy devices that allow you to update the browser (or complain to your manufacturer that you can't).

Every other website has given up on my old second hand iPad, there are no new apps available for it and the old APIs are all shut down. Why should I still care about it as a web developer? It's still a nice device to read PDFs on.

Re: New WebKit features in Safari 15.4

#212
post #37

A nice/useful bulleted summary thread by Apple's Jen Simmons: https://twitter.com/jensimmons/status/1503454398487408640?s=...

Nice list but arg that Twitter… HNers complain when sites break the back button, but Twitter breaks back scrolling!

I tend to use Nitter for reading threads. Replace the twitter.com in the URL with nitter.net and your reading experience is a lot smoother!

Re: New WebKit features in Safari 15.4

#213
post #92

Earlier quoted context omitted.

I want it so I can uninstall Facebook Messager. On Android I can log into Facebook's website, and receive push notifications via the web-browser. On iOS my choices are either the native iOS app (which has substantially more data hooks) or nothing at all. Essentially browser Push Notifications increase my privacy. PS - I am sympathetic to complaints about push notification request spam, but that feels like a solvable…

How do you use messenger like this? When I go to messenger.com a get pretty much just button with link play store...

Turn on Desktop Mode for that site.

Re: New WebKit features in Safari 15.4

#214
post #96
post #84

Earlier quoted context omitted.

The idea is that the browser, which is aware of your bandwidth, will disable this for you. But for a user on a limited bandwidth connection it’ll implement it. In other words the lazy attribute is a suggestion, not an instruction. The experience you describe is with JavaScript lazy loaders which don’t have this awareness.

Android makes it easy to have many browsers with different configurations for specific uses. I have Bromite configured with DoH that almost blinds my ISP as well as Tor Browser. Privacy Browser disables JavaScript by default, with an easy toggle to enable it, which is invaluable for taming many sites with obtrusive scripting. I use Firefox Focus with the bundled libgecko for general browsing. If I tried this on a Mic…

I agree, I'm quite surprised there's no Webkit browser on Android just yet. Though, based on my experience with Webkit on Linux, the Android version of Webkit would probably be leagues behind Safari.

A real mobile Webkit would make testing for iOS a hell of a lot easier. I'm not planning for buying a mac just to run a browser, we're not living in 2010 anymore. Even Microsoft bothers to provide free VMs for developers to run their browser tests in.

Re: New WebKit features in Safari 15.4

#215
post #41

Here I am still waiting for ES2018 regex look-behinds to be implemented. The folks working on the regex engine must have jumped ship or something.

What use do you have for that in a web application? Anecdote: I tried (limited) CSS validation to through a regexp some time ago, and it worked, except that Chrome’s implementation jumped from a few 100ms to over 5 minutes on adding a single character. Made the whole thing quite useless.

I recently used a lookbehind to replace \n by \r\n only if it’s not already preceded by \r. It was in a VSCode extension, because the output channel of the testing workbench stupidly requires \r\n, otherwise it doesn’t go to the beginning of the line.

I could have done it without a lookbehind but occasions to use it are quite rare to me :)

Re: New WebKit features in Safari 15.4

#216

Aaaand they introduced WebGL bugs that broke our product, and iPhone users will experience these bugs until we can hack a workaround in, or until Apple acknowledges a bug report (that I have to make a minimal test case for and report, and haven't narrowed down yet), patches the issue in Safari, and decides if it's important enough to release as a 15.4.1 (which they probably won't, which means I'm stuck finding a work…

> decides if it's important enough to release as a 15.4.1 (which they probably won't, which means I'm stuck finding a workaround) - or if it comes out in iOS 16, then a good chunk of our users will never get the fix I know people like to complain about Safari, but: 1. It’s absolutely common to ask developers for a minimal repro case in a bug report. 2. There are four major Safari releases under 15.x. 3. Apple OS upgr…

"you're holding it wrong" said as "you're too tired". OP's tiredness has nothing at all to do with Apple's abusive policy of forcing Safari on IOS. That's the whole entire problem, not OP not getting enough sleep.

Re: New WebKit features in Safari 15.4

#217

Earlier quoted context omitted.

I’m sure many of your users would welcome this feature but I’m personally grateful that I don’t get random notifications from websites.

You would not; you must grant a permission to push notifications to the site first.

I'm grateful I don't get random popovers asking me whether or not I would approve a popup asking me to grant permissions for push notifications (because the scripts exit early on mobile safari)

Re: New WebKit features in Safari 15.4

#218

Edit: removing the snark/sarcasm I put into it. I was really hoping this announcement would include support for push notifications for PWAs. I've been trying to build a few Discourse forums and they work very well as PWAs except for the fact that iOS doesn't support PWAs sending push notifications. So here's to hoping the next iteration will.

I’m surprised by all the heat around the push notifications API.

Is it really going to mean that much to web apps? I’m assuming it will work pretty much like push notifications on desktop, which is an awful UX.

Re: New WebKit features in Safari 15.4

#219
post #65

Earlier quoted context omitted.

This is actually the perfect compromise that I haven’t even thought of until you’ve mentioned it. Up until now, I was opposed to webkit push notifications for the same reason as the grandparent comment. Thank you for your comment.

Unfortunately Apple has crippled PWAs compared to the exact same code running in the browser on multiple occasions. Up until just about a year and a half or so ago you couldn't access a WebRTC stream from a PWA. The main use-case I needed this for was for a barcode scanner (which uses WebRTC under the hood) so my options were "deal with browser chrome" or "repackage into an app", I ended up doing the second (and to b…

AFAIK historically Home Screen web apps were run in a separate runner from the main Safari based on the web view control, and thus limited. There was a time they didn't get native JIT for javascript, either.

My suspicion is that they internally treat it as their own third party browser - e.g. they don't want to give it more entitlements/capabilities than a Firefox or Chrome browser would have from the iOS app store.

My suspicion also is that they have had a bit more wood behind the arrow to get media APIs working lately due to pushing large third-party cloud game subscription services to use the browser, and the regulatory scrutiny that likely brought on.

Re: New WebKit features in Safari 15.4

#220

Funny how the test button does not work on Safari 15.3, if it's not backward compatible, it might not be worth implementing. But kudos on the gradiant and CSS improvements.

This is like complaining you can't use electricity to fill up a petrol car...

This is something that can and has been polyfilled for the moment, but runs into some a11y issues with screen readers and the usual style/compatibility ones that a native implantation won't.

Post reply on HN