[Webkit-unassigned] [Bug 138506] New: AppCache breaks AJAX responseType "arraybuffer"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 7 09:47:07 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=138506

            Bug ID: 138506
           Summary: AppCache breaks AJAX responseType "arraybuffer"
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com
                CC: crogers at google.com

Steps to reproduce:

1. Visit http://www.scirra.com/labs/bugs/iosajaxcache/
2. Press 'Play sound'

If that works correctly, wait a few seconds, press Refresh, then press 'Play sound' again.

Expected result:

Sound should play every time 'Play sound' is pressed.

Observed result:

The AJAX request for explosion.m4a completes successfully, but returns an ArrayBuffer with a byteLength of 0. Audio decoding subsequently fails and the audio cannot play.

Compare to http://www.scirra.com/labs/bugs/iosajaxnocache/, which is identical except offline.appcache has been deleted and the html manifest attribute removed. Audio plays correctly every time.

Therefore an AJAX request of type "arraybuffer" to a file in the AppCache always returns an empty ArrayBuffer.

Reproduces with Safari on iOS 8.1, as well as Safari 8 on OS X 10.10 Yosemite. It works correctly in Chrome for Windows, Android and OS X, as well as Firefox for Windows. Note the test does not work on Firefox for OS X not because it is affected by this bug (it returns the correct byteLength), but simply because the test only uses an AAC audio file and Firefox does not support that format on all platforms.

Impact:

Any page using both AppCache and Web Audio will be broken, since the normal way of loading audio files to play with Web Audio does not work.

All content created by Construct 2 (www.scirra.com), a major HTML5 game engine, is affected by this issue. All the games it exports use AppCache for offline support and Web Audio for sound effect playback. There is already a large amount of Construct 2 content on the web affected by this, and the impact is that no sound plays in Safari on iOS or OS X.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141107/cf624c55/attachment-0002.html>


More information about the webkit-unassigned mailing list