ASSERTION FAILED: m_scriptExecutionContext->isContextThread() seen with LayoutTest...
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 May 2017 19:27:09 +0000 (19:27 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 May 2017 19:27:09 +0000 (19:27 +0000)
commitcec1d9c704143f110b6045af2b087690a0af81a9
treee519595a2e2a80fe8e9f5c44cbe487e4cfdb31a5
parent6e9c186ec2ba82a4378b9db17263efe486c866da
ASSERTION FAILED: m_scriptExecutionContext->isContextThread() seen with LayoutTest crypto/workers/crypto-random-values-limits-worker.html
https://bugs.webkit.org/show_bug.cgi?id=171462
<rdar://problem/31906859>

Reviewed by Brent Fulgham.

Covered by existing tests.

* workers/WorkerGlobalScope.cpp:
(WebCore::WorkerGlobalScope::~WorkerGlobalScope):
Clear Crypto early in destruction since its ContextDestructionObserver
destruction makes checks about the WorkerThread.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/workers/WorkerGlobalScope.cpp