Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r228716 - Crash under MIMETypeRegistry::isSupportedJavaScriptMI…
…METype() https://bugs.webkit.org/show_bug.cgi?id=182927 <rdar://problem/37675748> Reviewed by Antti Koivisto. Make it safe to call MIMETypeRegistry::isSupportedJavaScriptMIMEType() from the non-main thread. It is currently being called from a background thread in the following places: - ServiceWorkerJob::didReceiveResponse() - WorkerGlobalScope::importScripts() These call sites on non-main threads were added recently with the support for service workers. No new tests, already covered by existing tests that flakily experience service worker process crashes. * platform/MIMETypeRegistry.cpp: (WebCore::MIMETypeRegistry::isSupportedJavaScriptMIMEType):
- Loading branch information