Changeset 216133 in webkit


Ignore:
Timestamp:
May 3, 2017 12:27:09 PM (7 years ago)
Author:
jiewen_tan@apple.com
Message:

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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216131 r216133  
     12017-05-03  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        ASSERTION FAILED: m_scriptExecutionContext->isContextThread() seen with LayoutTest crypto/workers/crypto-random-values-limits-worker.html
     4        https://bugs.webkit.org/show_bug.cgi?id=171462
     5        <rdar://problem/31906859>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Covered by existing tests.
     10
     11        * workers/WorkerGlobalScope.cpp:
     12        (WebCore::WorkerGlobalScope::~WorkerGlobalScope):
     13        Clear Crypto early in destruction since its ContextDestructionObserver
     14        destruction makes checks about the WorkerThread.
     15
    1162017-05-03  Zalan Bujtas  <zalan@apple.com>
    217
  • trunk/Source/WebCore/workers/WorkerGlobalScope.cpp

    r214147 r216133  
    102102#endif
    103103
     104    m_crypto = nullptr;
     105
    104106    // Notify proxy that we are going away. This can free the WorkerThread object, so do not access it after this.
    105107    thread().workerReportingProxy().workerGlobalScopeDestroyed();
Note: See TracChangeset for help on using the changeset viewer.