The EOS/StateChange/Error callbacks check the message type but they can only be called with that exact message. The check should be removed ;) Also instead of 3-4 different callbacks for all messages types it might make sense to only use a single one, with a switch over the message types.
Created attachment 41158 [details] proposed patch
Looks good to me
Comment on attachment 41158 [details] proposed patch Clearing flags on attachment: 41158 Committed r49621: <http://trac.webkit.org/changeset/49621>
All reviewed patches have been landed. Closing bug.