Hacker News new | past | comments | ask | show | jobs | submit login
Safari 10.0 (developer.apple.com)
43 points by bomanbot on Sept 20, 2016 | hide | past | web | favorite | 52 comments

Notably, the ApplePay API is entering general availability (GA)[1].

The following networks are supported[2]: amex, discover, interac, masterCard, privateLabel, or visa.

The following products are prohibited[3] as well as many other services:

* cigarettes or tobacco products;

* firearms, weapons, and ammunition;

* illegal drugs, non-legally prescribed controlled substances;

* items that create consumer safety risks;

* items that are intended to be used to engage in illegal activities;

* pornography;

* counterfeit or stolen goods; or

* collection of charitable donations;

A paired iPhone or Apple Watch device is required (re: the macOS Sierra app), as well as iOS 10 and macOS 10.12.

[1] https://developer.apple.com/reference/applepayjs

[2] https://developer.apple.com/reference/applepayjs/1916082-app...

[3] https://developer.apple.com/apple-pay/acceptable-use-guideli...

A pretty standard laundry list of no-go items and then...

> * collection of charitable donations;

!! This seems really different from all the other prohibitions. What's the idea behind that?

I imagine all the legal regulations surrounding charitable donations and tax breaks. If someone was fraudulently gathering money under the guise of charity, it would turn into a huge headache for them, even worse than normal fraud.

That's pure speculation on my part. Given that Tim Cook is personally very pro-charity (he put a matching contributions policy in place after assuming the CEO role), it seems likely that this will loosen up once Apple can put some certification policies in place.

> I imagine all the legal regulations surrounding charitable donations and tax breaks.

There aren't. You can collect donations on behalf of an organization just about anyway you please. Many of them have Apps for that. It's super fun on iOS because you have to kick out to Safari to complete donations so you don't have to pay the Apple tax. Not that I would know about any of that...

> * items that create consumer safety risks;

So buying fast food is prohibited!?

Eh... hard to get excited about this until Chrome and FF can somehow support Apple Pay.

Relatively minor change, but one of my favourites; cmd-z will now undo multiple tab closes.

That, or they could implement a real "recently closed" interface like every other browser. Is there some obscure security or performance reason they don't do this?


Unacceptable in this day and age.

Here's the bug in their bugtracker: https://bugs.webkit.org/show_bug.cgi?id=124288

The ECMAScript 2015 standard, also known as ES6, is completely supported, bringing this major JavaScript evolution to Safari on macOS and iOS.

Very nice to see ES6 getting implemented by all major browsers.

Obligatory "ES6 is supported but not ES6 modules."

ES6 only defined syntax for modules, it didn't define a way to load modules, that's a different standard

Yes this is exciting. It appears Safari 10 is the only browser today implementing 100% of ES6 according to kangax.


  When the webkit-playsinline property is specified, Safari on iPhone allows videos to play inline. Videos without the property will commence playback in fullscreen, but users can pinch close on the video to continue playing the video inline.
  On iOS, videos without audio tracks or with disabled audio tracks can play automatically when the webpage loads.
This allows for inline videos in Safari on iOS. Previously, webkit-playsinline only worked for pages saved to the home screen.

This was a 'wow' moment for me, as someone innovating in video.

I had to restart my mac for a browser update? (may have missed something else in there)

You probably have to restart because the web rendering engine (WebKit) used by your browser (Safari) is used all over the rest of the system as well (in webviews). Just a guess though.

Rings a bell.

I seem to remember that someone sometime got into some trouble for something like that.

Just a fading memory.

Yes I think it was something about forcing that to users through a de-facto monopoly of 95% of computers in the world.

Not sure why people try to apply monopoly restrictions to Apple. They don't have monopoly position (not even close) in any market they operate.

The biggest hope I had from macOS Sierra was Picture in Picture, but sadly, iTunes is basically the only thing supporting it.

Till, then, I'm stuck using Helium.

Helium : http://heliumfloats.com

I wish OSX had "picture in picture" in a more literal sense: the ability to make a Space (including a Desktop space) into a window, and then move/resize it around on another Desktop space as if it were a Screen Sharing client window.

Though, really, they could go even further: I use Fast User Switching to basically be two people: "home" me, and "work" me, who each use the same apps but logged into different accounts. (The OS manages this far better than the one-off multi-account features of apps do, I find.) But Fast User Switching isn't very convenient when you "are" both users. How about letting me intermingle the Spaces from two login sessions, so I can have a "Picture In Picture" Space from my own other account open on my desktop?

(If you're wondering, Screen Sharing doesn't allow you to connect to localhost. Even if you hack around that [which requires patching some bytes in a private framework], it's still a cruddy experience, especially concerning screen locking and display resolution. And, obviously, slow.)

PiP is supported for YouTube etc. too.

Control-click/Right-click on a YouTube video – the first time around it'll show its private menu – then CLICK AGAIN on the video, which will bring up Safari's menu for videos including the Picture-in-Picture option: http://i.imgur.com/ekWnBQr.png

No, anything that does standard controls will support PiP and as indicated in the notes for HTML5 players that have their own controls (like Youtube) then it's possible to do it through JS (if Youtube decides to).

I'm sure some browser plugin can be created to add the controls to Youtube or all the other major HTML5 players.

You can use PiP for the YouTube HTML5 player by right-clicking on it twice, see my previous comment:


I'm curious, what advantage should Picture in Picture have over Helium?

Really nice update as a developer. As a user, I still can't use any browser that doesn't have something like [self destructing cookies](https://addons.mozilla.org/en-US/firefox/addon/self-destruct...). Cookies are just way too sticky and invasive, and turning them off breaks just about every site.

I don't own a Mac, but I'm curious if Safari 10 is finally good enough to run one of my hobby projects, and if not I'd like to debug it because it seems the feature support is finally here (specifically, IndexedDB).

Are there any better options than coercing one of my friends with a Mac into upgrading and letting me borrow their laptop? If not, will I have to get them to upgrade the whole OS like it's old school Internet Explorer, or is it standalone?

You can use BrowserStack (https://www.browserstack.com/) or Sauce Labs (https://saucelabs.com/) to test with Safari.

BrowserStack supports Safari 10 now (https://www.browserstack.com/list-of-browsers-and-platforms?...), Sauce Labs only lists up to Safari 9 currently (https://saucelabs.com/platforms#macos).

I just updated Safari to 10.0 without being on macOS, so it's presumably standalone. Some features (i.e. picture in picture) might not work as well, but indexedDB has been in Safari for a while, so I'm sure the updates to it are supported everywhere.

Actually, I think this is the first Safari version where IndexedDB works. They shipped a broken implementation earlier.

Wait, what? What other OS is it out for?

(That comment is using "macOS" to differentiate from older builds of "OS X".)

I think you're hung up on the name change. It's now macOS, whereas it used to be OS X. When the parent poster is says macOS, they mean the latest version of OS X/macOS.

You can't run Safari on Linux or Windows if that's what you're asking.

But you can use a service like Browserstack to run Safari if you don't otherwise have access to a Mac.

The company I work for offers remote access to Mac/Win/Linux - We've been offering Mac Sierra (beta) for a while with Safari 10 installed: https://testingbot.com/support/getting-started/browsers.html which you can control straight from your browser.

Pretty sure it's not going to be standalone.

Safari 10 seems to choke while I'm reading this page:


Usually about the time I get to the section on Animations.


Doesn't work for me in chrome either. The images (or whatever they are) doesn't load at all, but just show up gray with the text that they couldn't load. Better than choking like Safari does though.

Works fine here.

Probably didn't give it enough time. It kills Safari on my iPad too. I submitted a Radar.

Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fffd0a0ec8a __psynch_cvwait + 10

1 libsystem_pthread.dylib 0x00007fffd0af797a _pthread_cond_wait + 712

2 libc++.1.dylib 0x00007fffcf48558d std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47

3 com.apple.JavaScriptCore 0x00007fffbe6ef7de WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2494

same here!

Does Safari 10 support the fetch api[0] yet?

[0]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

The first beta preview of sierra had webp support and safari supported it. They removed it in the later preview release. Hopefully they will support webp in some future release of macOS.

HTML 5 geolocation seems to not work on my local development environment anymore, Webinspector says a secure connection (https) is needed.

Any workarounds for this?

Getting ready for a new macbook hopefully

Anyone know the release date?

It came as an App Store update for me today.

Can I just say, after years of neglect and falling behind the industry, fuck Safari.

Will Safari 10.0 work on Mavericks?

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact