[webkit-help] WebKit2 Thread Safety

Sami Wagiaalla swagiaal at redhat.com
Thu Apr 3 06:12:11 PDT 2014


Hello Benjamin,

> Using threads to re-enter the core is not a solution. WebCore is not
> thread safe, and only specific subsystems of JavaScriptCore are thread
> safe. If you re-enter arbitrary web pages, you will run into additional
> problems since scripts are not written to be re-entrant.
>

I see

> The solution is almost always to redesign the interprocess IPC to use
> asynchronous messages. In this case, you may want to break the
> synchronicity from the WebProcess to the UIProcess, or execute the
> custom JS asynchronously.
>

Yeah.. I have found an asynchronous work-around for this particular issue.

Thanks!
   Sami



More information about the webkit-help mailing list