Live data from Hacker News

Firefox Nightly now plays Amazon.com Flash videos using Shumway

mail.mozilla.org

51–60 of 109 posts

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#51

Earlier quoted context omitted.

Why Typescript, out of curiosity?

In part, the team just wanted to experiment with TypeScript. Also, the language is syntactically similar to AS3 so there is a close mapping from the AS3 library APIs to Shumway's TypeScript implementation.

was there any pain point, at TypeScript side? what do the team think now about their initial decision giving TS a try?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#52

Earlier quoted context omitted.

Yes, definitely! SWF obfuscators are a problem because they rely on undocumented behavior and implementation details of the Flash plugin that the Shumway developers must debug and support to maintain compatibility. Obfuscated AS1 code can do strange things like jumping to unaligned SWF addresses in the middle of bytecodes.

> Obfuscated AS1 code can do strange things like jumping to unaligned SWF addresses in the middle of bytecodes. Oh, I've seen much worse. The AS1 VM actually treats the entire SWF file (after decompression) as an AS program. That means it's possible to jump outside of the bytecode tag and into e.g. the metadata of a JPEG file.

Reminds me of one highly-regarded (at the time) obfuscator whose operation consisted entirely of renaming the existing bytecode tags to a reserved value, and adding a bytecode tag after it with lots of useless code including opaque predicates which eventually jumped out of the tag, backwards, into the original code. A bit of a letdown as I was looking for a challenge at the time, but that jump out of the tag was sure easy to detect and unobfuscate...

(This is something that is still not fixed in Gnash, so Shumway is certainly farther along.)

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#53
post #36
post #22

Earlier quoted context omitted.

Do you fear that by the time shumway actually works for "most ppl stuff" flash would already be gone and the effort wasted? (its gone from YT..)

It's not gone from YT! It's certainly on its way out. But despite the announcement I still see Flash as default in Firefox and even in Chrome it sometimes falls back to Flash (happens to me when I start a video, put my laptop to sleep, and continue the video after resume).

It looks like the main change was enabling HTML5 for every video. I haven't had Flash enabled for a couple years – previously many videos (IIRC everything with ads) would display the missing plugin error page. Now it falls back to but since they built it wrong, that only happens if Flash is completely unavailable — any sort of click-to-play will still result in using Flash.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#54
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

I have a question! >Shumway needs H.264 video decoders that may not be available on Windows XP or Linux. Is that a reason for Linux users to be annoyed, or just something that happened and will be corrected soon?

Search bugzilla & you should find open tickets. They shipped first for platforms with native support, understandably, but last time I checked the intention was to support everyone.

EDIT: It looks like Linux support shipped in FF26 as long as GStreamer supports it: https://bugzilla.mozilla.org/show_bug.cgi?id=794282#c101

Windows XP is still left out – they use DirectShow for MP3 (https://bugzilla.mozilla.org/show_bug.cgi?id=861693) but using it for H.264 would require a licensed plugin which few people have and while OpenH.264 is available, it doesn't support the Main & High profiles used for most video on the web (it's been focused on streaming): https://bugzilla.mozilla.org/show_bug.cgi?id=799318#c57

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#55
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

I've been using shumway for a while now. Thank you so much for making my web browsing experience lighter and faster. It's a huge improvement.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#56
post #7

I'm a program manager on Mozilla's Shumway team. If you have any questions, please ask! :) The name "Shumway" is derived from "Gordon Shumway", the actual name of the TV character ALF: Flash -> Flash Gordon -> Gordon Shumway -> Shumway. :) Shumway is written in TypeScript. It has an ActionScript interpreter and a JIT that generates JavaScript, compiled using eval(). The code is on GitHub: https://github.com/mozilla/s…

Hi thanks for creating Shumway, will it replace flash for all video content or what is the goal of the Shumway project?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#57

Sounds like Shumway is already further along than Gnash or Lightspark. What versions of SWF does Shumway aim to support? 7, 8, 9, 10, all of the above? How does Shumway interact with click-to-play and similar mechanisms to stop unwanted Flash objects from playing? Does it have that functionality built-in?

Shumway is implementing APIs as needed, not targeting a specific SWF version. Shumway does not currently support click-to-play because it is not a real browser plugin. It hooks into Firefox's click-to-play mechanism to conditionally override the Flash plugin. This is a hack and will soon be replaced with "jsplugins", a Firefox feature that will allow browser plugins to be written in JS and run in an out-of-process sa…

Will this be more secure than Adobe's Flash, since that already runs in a separate process?

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#59
post #57

Earlier quoted context omitted.

Shumway is implementing APIs as needed, not targeting a specific SWF version. Shumway does not currently support click-to-play because it is not a real browser plugin. It hooks into Firefox's click-to-play mechanism to conditionally override the Flash plugin. This is a hack and will soon be replaced with "jsplugins", a Firefox feature that will allow browser plugins to be written in JS and run in an out-of-process sa…

Will this be more secure than Adobe's Flash, since that already runs in a separate process?

Since it won't be native code, they'll only be able to abuse a FF bug exposed by the JS plugin API, but should be in a very bad position to exploit a kernel bug...

Same process isolation, but the JS plugin got a vastly reduced surface to attack.

Re: Firefox Nightly now plays Amazon.com Flash videos using Shumway

#60

Only somewhat related, but is there still no way to access the clipboard in a web app without flash?

Imagine a web where you could just write to the users clipboard without a plugin + requiring a click.

It would NEVER be safe to Ctrl+V again!

Post reply on HN