Changeset 139929 in webkit


Ignore:
Timestamp:
Jan 16, 2013 3:11:07 PM (11 years ago)
Author:
jsbell@chromium.org
Message:

IndexedDB: Possible null ScriptExecutionContext passed to callbacks during frame destruction
https://bugs.webkit.org/show_bug.cgi?id=107050

Reviewed by Tony Chang.

Temporary code to defend against null contexts. Will either refute a hypothesis, or we'll
need to make a more systemic fix elsewhere. Either way it will be removed in a few days.
We're unable to repro, but watching crash reports from users. One possible source is
that during page tear-down WorkerScriptController::controllerForContext() returns null
(there's a comment about that case) leading to a null context.

No new tests - this shouldn't be happening.

  • Modules/indexeddb/IDBObjectStore.cpp:

(WebCore::IDBObjectStore::createIndex):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139928 r139929  
     12013-01-16  Joshua Bell  <jsbell@chromium.org>
     2
     3        IndexedDB: Possible null ScriptExecutionContext passed to callbacks during frame destruction
     4        https://bugs.webkit.org/show_bug.cgi?id=107050
     5
     6        Reviewed by Tony Chang.
     7
     8        Temporary code to defend against null contexts. Will either refute a hypothesis, or we'll
     9        need to make a more systemic fix elsewhere. Either way it will be removed in a few days.
     10        We're unable to repro, but watching crash reports from users. One possible source is
     11        that during page tear-down WorkerScriptController::controllerForContext() returns null
     12        (there's a comment about that case) leading to a null context.
     13
     14        No new tests - this shouldn't be happening.
     15
     16        * Modules/indexeddb/IDBObjectStore.cpp:
     17        (WebCore::IDBObjectStore::createIndex):
     18
    1192013-01-16  Kenneth Russell  <kbr@google.com>
    220
  • trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp

    r139666 r139929  
    357357{
    358358    IDB_TRACE("IDBObjectStore::createIndex");
     359    // FIXME: Temporary code to determine if null contexts are plausible during frame destruction.
     360    // https://bugs.webkit.org/show_bug.cgi?id=107050
     361    ASSERT(context);
     362    if (!context)
     363        return 0;
     364
    359365    if (!m_transaction->isVersionChange() || m_deleted) {
    360366        ec = IDBDatabaseException::InvalidStateError;
Note: See TracChangeset for help on using the changeset viewer.