This will allow the sync xhr call done within a WorkerContext to get callbacks.
Created attachment 27877 [details] Proposed fix.
Created attachment 27918 [details] Proposed fix.
Comment on attachment 27918 [details] Proposed fix. > + Fixed the bug that m_unconfirmedMessageCount was getting incremented for non-message tasks. What are those non-message tasks? How do we manage lifetime for them?
They are all part of xhr, so lifetime would be managed by xhr having pending activity.
Comment on attachment 27918 [details] Proposed fix. > They are all part of xhr, so lifetime would be managed by xhr having pending > activity. That's what I expected, but it doesn't seem to be discoverable. How will someone adding a new kind of tasks learn that lifetime issues need to be resolved on a case by case basis? r=me, by the way.
Committed as r41184.