Bug 130536 - [iOS] asynchronous media callbacks should happen on the web thread
Summary: [iOS] asynchronous media callbacks should happen on the web thread
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-03-20 13:47 PDT by Eric Carlson
Modified: 2014-03-21 16:24 PDT (History)
6 users (show)

See Also:


Attachments
Proposed patch. (1.59 KB, patch)
2014-03-20 13:50 PDT, Eric Carlson
jer.noble: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2014-03-20 13:47:46 PDT
MediaPlayerPrivateAVFoundationObjC::checkPlayability uses dispatch_async(dispatch_get_main_queue()) to trampoline an AVFoundation callback to the "main" thread, but this doesn't work in WK1 where we need to make all calls on the WebThread.
Comment 1 Eric Carlson 2014-03-20 13:50:09 PDT
Created attachment 227329 [details]
Proposed patch.
Comment 2 Jer Noble 2014-03-20 13:55:30 PDT
Comment on attachment 227329 [details]
Proposed patch.

r=me
Comment 3 Eric Carlson 2014-03-20 14:03:48 PDT
Committed r165998: https://trac.webkit.org/r165998
Comment 4 Radar WebKit Bug Importer 2014-03-21 16:24:44 PDT
<rdar://problem/16396919>