Bug 244670
| Summary: | Support desired callback queue for loadFromHTMLWithData to prevent deadlocks | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jonathan Bedard <jbedard> |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jonathan Bedard
The UIKit usage of this API permits public clients to call into `loadObjectOfClass` from the main queue, therefore typically spinning the run loop or using semaphores. As a result, it’ll deadlock due to loadFromHTMLWithData always re-dispatching back out onto the main queue for its callback.
The only way to get around this is to provide a callback queue up front.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jonathan Bedard
<rdar://problem/99404547>
Kieran Senior
Pull request: https://github.com/WebKit/WebKit/pull/3897