News for hackers. Stuff that matters.
Re:There's a WebGL talk at WWDC 2014 by 0x0 on Thursday May 22, 2014 @06:50AM (#7783137)
Wild speculation: iOS 8 will bring an out-of-process, heavily sandboxed webview, which was the missing piece for enabling webgl for everyone. The greatly increased attack surface (with almost direct gpu access via shaders etc) was too risky to host in in-process web views - explains why webgl was only enabled for iAds (since those would be vetted by a review team)
Re:There's a WebGL talk at WWDC 2014 by higherpurpose on Thursday May 22, 2014 @07:22AM (#7783231)
I wonder if Firefox will remain the only browser out there without a process sandbox. It's still the most vulnerable browser because of that:

http://www.extremetech.com/computing/178587-firefox-is-still...

Re:There's a WebGL talk at WWDC 2014 by bgirard on Thursday May 22, 2014 @11:30AM (#7784318)
We were talking about this yesterday. I asked how many of the previous issues we classified a security problem would of been mitigated by a sandbox and the conclusion would be that it would not even cover the majority.

Most of the security issues we encounter are with bugs in the driver. A common bug for example with the Intel mac driver is when sending allocating a valid large texture the texture will sometimes instead be filled with old gpu memory[1]. Then you can glReadPixel the data and reconstruct parts of the desktop windows or tabs. A sandbox isn't going to stop you from exploiting this kind of buggy driver if it incorrectly starts returning other people's data when you asking for unrelated valid commands.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=631258

Re:There's a WebGL talk at WWDC 2014 by willvarfar on Thursday May 22, 2014 @11:49AM (#7784420)
I thought webgl didn't have glreadpixels?
Re:There's a WebGL talk at WWDC 2014 by bgirard on Thursday May 22, 2014 @12:19PM (#7784602)
Re:There's a WebGL talk at WWDC 2014 by erickt on Thursday May 22, 2014 @09:20AM (#7783654)
It is coming soon. Firefox Nightly has it as an option, and according to this it's supposed to be an option in Firefox 30. I'm not sure when it will be turned on by default though:

https://wiki.mozilla.org/Electrolysis

Re:There's a WebGL talk at WWDC 2014 by bgirard on Thursday May 22, 2014 @11:11AM (#7784222)
Electrolysis is NOT sandboxing, full stop.
Re:There's a WebGL talk at WWDC 2014 by cowchase on Thursday May 22, 2014 @11:55AM (#7784442)
To cite the wiki: "sandboxing the content processes is a separate project from Electrolysis". So Electrolysis lays the foundation for sandboxing.
Re:There's a WebGL talk at WWDC 2014 by bgirard on Thursday May 22, 2014 @12:15PM (#7784562)
It's true. It wont provide anything on its own so I'm trying to be blunt to kill this misconception that keeps spreading.
Re:There's a WebGL talk at WWDC 2014 by troymc on Thursday May 22, 2014 @12:56PM (#7784818)
I know Servo is currently a research project, but maybe Mozilla's plan is to get a process sandbox from it?

"... The [Servo] engine processes will use the operating system sandboxing facilities to restrict access to system resources."

https://github.com/mozilla/servo/wiki/Design

Re:There's a WebGL talk at WWDC 2014 by pirateking on Thursday May 22, 2014 @07:00AM (#7783169)
Going along with your plausible speculation, and assuming XPC is used to communicate with the WebGL view (using UIRemoteView maybe), hopefully that means opening up the XPCKit framework as well in iOS 8.
Re:There's a WebGL talk at WWDC 2014 by masklinn on Friday May 23, 2014 @03:45AM (#7788360)
Finally having XPC would be really great for application and tools developers.
Re:There's a WebGL talk at WWDC 2014 by twoodfin on Thursday May 22, 2014 @07:01AM (#7783171)
Would be nice to get something similar for in-app JavaScript JIT'ing.
Re:There's a WebGL talk at WWDC 2014 by Flow on Thursday May 22, 2014 @09:18AM (#7783646)
Or a standard way to use sandboxes from within your apps. So you can do on-the-fly code generation.
Re:There's a WebGL talk at WWDC 2014 by rsynnott on Thursday May 22, 2014 @09:47AM (#7783808)
Arguably, such a solution would make Javascript JITing safe, too.
Re:There's a WebGL talk at WWDC 2014 by United857 on Thursday May 22, 2014 @03:05PM (#7785710)
iAds have always run in another process (named AdSheet). So extending this approach to all UIWebViews is quite plausible.
Re:There's a WebGL talk at WWDC 2014 by masklinn on Friday May 23, 2014 @03:46AM (#7788365)
Re:There's a WebGL talk at WWDC 2014 by shadowmint on Thursday May 22, 2014 @08:36AM (#7783484)
> The greatly increased attack surface (with almost direct gpu access via shaders etc) was too risky to host in in-process web views

What really?

Were they seriously even pretending to use that excuse?

Everyone I've ever talked to was 100% certain it was simply because they didn't want anyone by-passing the app store for games and other immersive content they would then have no control over.

I'm not denying that webgl is an attack surface; it totally is; but surely it's a bit rich to say that the webgl implementation in webkit has been switched off for the last 3 years because of security concerns.

If that was the only reason to not having feature parity with other OS's, they'd have some something about it.. oh, you know. 2-3 years ago.

Re:There's a WebGL talk at WWDC 2014 by coldtea on Thursday May 22, 2014 @09:23AM (#7783675)
>Were they seriously even pretending to use that excuse? Everyone I've ever talked to was 100% certain it was simply because they didn't want anyone by-passing the app store for games and other immersive content they would then have no control over.

Well, "everyone you ever talked to" was wrong. Apple could not care less about web apps by-passing the app store in this regard.

For one, they initially offered web apps in place of a native API, and developers (and users) hated it.

Second, they had for the longest time (still do IIRC), the fastest and more complete web browser experience on mobile. Including extra JS hooks for things like the accelerometer and such. Strange coming from a company concerned about the web apps by-passing the app store.

Third, most iOS developers don't pericularly want web apps. The App Store has half a billion of credit cards on the ready, and gives billions of dollars to developers each year. It will be extremely difficult to try to monetize some web based game for iOS users. Plus it offers far better performance (and possibilities for integration) than some Javascript/WebGL game.

Fourth, WebGL is not that great a deal on the desktop web yet (even most casual games prefer the canvas API or Flash still), so why would it be on the mobile web?

>If that was the only reason to not having feature parity with other OS's, they'd have some something about it.. oh, you know. 2-3 years ago.

Well, those other OSes, namely Android, just enabled WebGL in their Chrome browser 9 months ago. And, oh you know, that in the beta version of the broswer. In fact, "Can I Use It", still shows only partial support for WebGL, and for the first time available just in the latest Android Chrome version: http://caniuse.com/webgl

Re:There's a WebGL talk at WWDC 2014 by rsynnott on Thursday May 22, 2014 @09:50AM (#7783824)
> Everyone I've ever talked to was 100% certain it was simply because they didn't want anyone by-passing the app store for games and other immersive content they would then have no control over.

This never made sense to me as an explanation, if only because for a very long time iOS had a far more sophisticated browser than Android; Android only really reached feature parity with Chrome for Android, and for years iOS was a much better platform for webapps. If they were so protective of the app store, they would hardly have put so much effort into best-in-class modern web support; offline web apps are in principle as much a threat to the app store as webgl stuff.

Re:There's a WebGL talk at WWDC 2014 by Touche on Thursday May 22, 2014 @11:03AM (#7784185)
While true, to be fair they've hardly put much effort into the browser since iOS 3 or 4. Still far behind on many important web standards. Still do releases like once a year. Haven't improve homescreen webapps at all (every time you click the icon it starts the app from-scratch, even if it was already open).
Re:There's a WebGL talk at WWDC 2014 by rsynnott on Thursday May 22, 2014 @11:06AM (#7784198)
> While true, to be fair they've hardly put much effort into the browser since iOS 3 or 4. Still far behind on many important web standards.

Well, it's much, much faster, and they've added plenty of stuff since IOS4 (web sockets, for instance, which it had a fair while before Chrome for Android).

Re:There's a WebGL talk at WWDC 2014 by Gorbzel on Thursday May 22, 2014 @11:20AM (#7784272)
I love this useless outlook that Apple's ecosystem arguments (which may or may not be relevant banter, depending on your outlook. I for one am tired of the fighting.) automatically mean that all engineering decisions the company makes are automatically ANTI-FREEDOM!!111!!1

It's not like Apple's been a major engineering company in the center of some meaningful tech discussions (RFCs, open source projects sometimes, etc) for 30+ years. Not respecting other people's technical decisions really just hampers/hinders good collaborative work and conversation (especially about security) getting done.