by 2fast4you · 4y ago · 0 comments
People say this all the time, have you ever actually used Safari? I use it daily and it’s rock solid, I have zero complaints.
From a developer point of view, Safari is widely lagging behind other engines in terms of features, and has been rigged with hundreds of show stopping bugs for years, including relative to very basic features like scrolling. As an example, as of today, it is still impossible to reliably prevent page scrolling in Safari on iOS. Don't tell web developers "Safari is rock solid"; for us it's the bane of our existence.
I must have missed the implied “for developers” preface there
i've been a web dev for 20 years. safari is rock solid but has quirks, yes.
Safari offers the most refined developer experience for web dev and testing (my favourite are the automation capabilities which are incredible and private as it separates my data from test data during a run). With technology preview updates delivered directly in macOS, I'm always confident I have the latest setup to test my web apps...
1. Safari, performs worst on wpt.fyi by a VERY wide margin 2. In State of CSS last year had the most number of complaints in relation to bugs. 360 related to Safari, compared to 30 for chrome and 10 for firefox. 3. In the MDN developer Survey developers ranked Safari as the second biggest problem after IE. A browser that's no longer supported. 3. Doesn't really support Web Apps, no user findable method of install (install prompts), no push notifications. 4. Huge numbers of bugs (some of which haven't been fixed in over 7 years) 5. and the devtools are still far behind chromes. 6. and missing all of these: Notifications / Push API No AppStore Support App Store Support for Web Apps Fullscreen API Badging Deep Links Screen Orientation Lock Bluetooth NFC Web Share Target Screen Wakelock Keyboard Lock and Keyboard Layout APIs getInstalledRelatedApps() Background Fetch API Background Sync API WebGPU WebXR Offscreen Canvas Declarative Shadow DOM SQL SIMD WASM Threads Shared Array Buffers AV1/AVIF and VP8/VP9/WebP (Open Media Codecs) Compression Streams Scoped Custom Element Registry ElementInternals
You can see other replies for details lists of functionalities and capabilities often pioneered and supported by Safari long before other browsers (even Firefox).
Some loud voices from the community have very selective memory, and they momentarily forget all the evilness pumped into Chrome regularly. (remember FLoCs? Advertising API? AMP?)
All that hate for Safari can be much more productive if channeled as constructive feedback on browsers' bug trackers and governance discussions, improving the ecosystem as a whole (which is what you want if you care for the web). Such conversations can even lead to the natural evolution of standards and implementations towards more refined engine customizations on each platform.
Today, iOS allows for open browser choice on iOS, so any technical requirements for the implementation are of no meaningful consequence to iOS users. Everyone can get the look, feel, and service integration with their preferred vendor's ecosystem. Consumers and developers also get a consistent experience throughout the entire operating system - a piece of content will appear the same in any context. Simple, efficient, and reliable. All this will be lost the moment someone decides to prop a "To view this website, download browser XYZ." Imagine you are faced with this in a stressful situation when you need your phone to work the most.
Chrome-only non-standards that both Firefox and Safari are against.
> Declarative Shadow DOM
Actually proposed by Safari, and stalled for multiple reasons. Moreover, at the start of the whole web component brouhaha Safari wanted to have declarative ways of specifying Web Components, but Chrome said "no, we want to move fast and break things"
> WebGPU
Proposed by Safari
---
Can't be bothered to check others, but off the top of my head, but most of other standards that you just dumped without understanding fall under the following categories:
- Chrome-only non-standards with multiple issues that have multiple objections from both Safari and Firefox
- Originally proposed by Safari
- Have specific technical objections from Safari, and specific reasons for not implementing
- (very small minority of specs) No idea why they haven't implemented these yet
I really like Safari but no, they are definitely not "leading the gang" in adopting features.
At the bottom right there is a chart and Safari is in 3rd.
I built a company based on browser testing and Safari in general was/is always behind.
They have hired some good people so maybe that situation will change but in general Safari is the currently the boat anchor of browsers. Hopefully the situation will change over time.
not sure what your scrolling issue is, hidden overflow and blocked pointer events have always worked just fine for me. typically when someone gets scrolling wrong they're using 100vh instead of stretch and/or not scoping overflow correctly
It would have been much wiser for Safari to catch up on the dozens of features they don't support that both Chrome and Firefox do, or to focus on bug fixes for the most basic features that's been broken for years. Instead, they chose to ship shiny new ones to try and convince both regulators (from the EU, UK, US, etc) and web developers that they are leading the way in feature adoption. Unfortunately this seems to be working to some extent in the web devs community. Regulators are unlikely to fall for it though.
Here is the 7 years old scrolling bug I'm referring to, which prevents any decent implementation of modals in Safari on iOS: https://github.com/web-platform-tests/interop-2022/issues/84
Here you can see that Safari has 5 times more API failures (representative of both missing features and bugs) than Chrome, and 3 times more than Firefox: https://wpt.fyi/
https://chromestatus.com/feature/6525308435955712
Subgrid is progressing thanks to engineering from the Edge team, and I expect it to land this year.
why would it?
it's a USER-Agent after all. if there is something to scroll, the user probably wants to and should be able to.
Maybe, just maybe, people should stop trying to develop webapps and instead make websites that just work without javascript. Like this one.
1) I agree. Apps have maps, but most websites?
2) Zooming and panning can be done without WPA. At most some basic JS, although I think you can do the same via HTML+CSS.
3) The old way of zooming panning was buttons for zooming and panning. Those worked fine. In face ,they worked better than zooming and panning buggy implementations.
Until m1 I am not sure apple has the intel experience considering the hackintosh. But apple dominate for a while the developer market.
The question imho is whether apple provide a good enough solution for its users. And for monopoly I am not sure why os pre-installed browser is that relevant. Remember why edge exist. Just to download chrome.
Btw I use both as there are things can be easily done by one cannot by the others. I hope we have more. Not less.
https://caniuse.com/?compare=chrome+106,safari+16.0&compareC...
Interop2022 is probably what your referring too but that’s just a small (but still important) functionality that the browsers have agreed to focus on. Interop is great, but using it as the primary metric for your browser is very dishonest. Apple tried to do this in their regulatory filing but every other vendor and developers said that the overall stats are much more representative.
I don't trust Chrome. When I went to App Store to get it, and the data Chrome gathers that is linked to your identity is: financial info, location, contact info, contacts, user conten, search history, browsing history, identifiers, usage data, diagnostics and other data. Safari also collects browsing history and location information, but they don't link it to your identity.
I would honestly not care if Chrome was 100% faster, because Google is severely lacking in their privacy policy.
And this is so much better than the alternative which is a 500 page legal document.
When you install the app you see what data can be collected and decide if you trust the provider of the app with that data. And for that you don’t need any context. Because you don’t know what the code in this app does.
They have to declare everything they might use, but everything is still subject to the various Chrome privacy policies. I can guarantee that if Chrome were found to be violating those policies, people would sue.
Why do I have a work iPhone? Because Safari is the one browser that you can't just assume things will work for so I need to occasionally use it before pushing website changes.
Say what you want but it is so frustrating when you run into problems like this. It does remind me of old IE days where we had to produce one gazillion hacks for IE.
People have different priority, most end user gives no fuck about the pile of garbage APIs that just keeps growing in modern browsers, they just wanna read some stuff. When developers cry about their "api", some kid in africa isn't able to access knowledge on ther internet because sites have to use look behind or whatever.
Personally I find Safari a great browser on iOS and prefer not to add to the test matrix burden with different browser engines on iOS. Also this restriction is the only thing keeping Chrome from dominating the future of Web, who can't be trusted to not use it as an anti competitive weapon as we've seen with AMP.
And in Safari there's zero visibility into why things break, they just silently don't work. At least Chrome is pretty good (in my experience) about throwing an exception or at least logging warnings to the console
Is it really as bad as the IE days though? I didn’t work on web back then, but these days if I run into a safari comparability issue, the workaround is usually pretty painless.
At least in the IE days everyone _knew_ IE was a problem, so we were looking for a solution as a community. Now? We comments that are dismissive of crap instead of inspiring towards quality.
But it's not really a polyfill, just a library.
Safari is the modern IE in this respect.
If you’re just building a standard body scroll website with a simple ui/ux you’ll likely be ok. As soon as you start doing complex stuff with pinned panels, or gestures, animations, drag and drop then you’ll hit the bugs.
Some of the bugs developers have been complaining about for 7 years.
Every browser we develop has bugs, Safari just has 10x as many.
Multiple times I've hit issues with things that I would have expected to be 100% complete, like SVGs not being able to properly transition animations in certain cases.
- CSS outline not being affected by the border-radius property.
- Drag images being completely screwed up if the dragged element, or any of its ancestor, has a CSS transform.
Both of these problems have workarounds (insanely ugly hacks would be a better term), but they shouldn't have.
- Regular expression lookbehind
- overscroll-behavior
- Web push
- SVG favicon
- Web Bluetooth (haven't run into this personally, but someone complained about this)
- Nice to have - Problem - Don’t want it, will never allow it - Nice to have - Don’t want it, will never allow it
Of the five items you list, I only see one as a real problem. Two of them are privacy misfeatures that have no business being on the web platform. The other two are annoying and would be better to have than not.
On mobile platforms that's a pretty major feature to brush aside.
As a user I don’t care nearly as much if my browser supports WebOnions v2 or whatever feature-du-jour as I do that it’s not wantonly burning through my battery just doing basic browsing.
I find Chrome absolutely murders the battery life of my work 16" MBP, though.
I never used Safari as my main browser nor I hate it as a developer. I'm just talking about the argument here.
At the same time by lacking features it becomes the lowest common browser api target blocking progress.
Because, perhaps, the main one of those "other browsers" is widely considered to be a surveillance tool first, browser second, for a surveillance company and one of Apple's main current marketing thrusts is "we help you avoid people spying on you on your phone"?
This argument falls over when the most popular apps on their store are YouTube, Google Maps, Instagram and TikTok.
They’re fine with “surveillance tools” if they get a cut.
Unless you consider the minimal $100 / year that Google has to pay to be "a cut".
...yes? Who are people going to complain to when ANOther browser leaks their PII from an iPhone? Who will get the bad PR? It won't be ANOther browser because lord knows they've been getting away with it for years with little to no consequence. Why would Apple put themselves - and their customers given their marketing claims to care about their privacy - in a position where that privacy can a) be compromised and b) reflect badly on Apple?
It is astonishing reading like Safari is some derelict junk when the edges are laughable trivial stuff. "But it doesn't support some random, irrelevant standard Google tried to railroad through last month..."