asterick/JSBoy — pull request #1 by agrieser (2012-08-22 02:44:10+00:00)
Title: Update to work with new browsers

I saw this project and it looked cool, so I downloaded it to try it out. I mean, a gameboy emulator in javascript with canvas? WAY COOL.

BUT, it turns out browser vendors (and the W3C) have made breaking changes since this was written, and it doesn't work anymore :(

I poked around a bit, and made the lowest impact change I could to get JSBoy back on its feet. Then I got distracted and played Super Mario Bros.

I submit this small change so that others can enjoy playing gameboy in their browser.

Technical Notes: Starting with Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0 / SeaMonkey 2.8), as well as WebKit build 528, these browsers no longer let you use the responseType attribute when performing synchronous requests. Attempting to do so throws an NS_ERROR_DOM_INVALID_ACCESS_ERR exception. This change has been proposed to the W3C for standardization.

See: https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType