Changeset 141351 in webkit


Ignore:
Timestamp:
Jan 30, 2013 5:31:12 PM (11 years ago)
Author:
jsbell@chromium.org
Message:

IndexedDB: Remove speculative dispatchEvent crash fix now that root cause is addressed
https://bugs.webkit.org/show_bug.cgi?id=108131

Reviewed by Tony Chang.

A patch was landed in r140027 to prevent a null pointer crash in
IDBRequest::dispatchEvent and confirm the source of the crash (which
we couldn't repro locally). Following confirmation from user reports,
the root cause was tracked down to a race condition in MessageQueue,
and was fixed in r140483. This patch is no longer needed, and there's
always been an ASSERT in place to catch regressions while debugging.

No new tests - no behavior change.

  • Modules/indexeddb/IDBRequest.cpp:

(WebCore::IDBRequest::dispatchEvent): Remove extraneous test.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141350 r141351  
     12013-01-30  Joshua Bell  <jsbell@chromium.org>
     2
     3        IndexedDB: Remove speculative dispatchEvent crash fix now that root cause is addressed
     4        https://bugs.webkit.org/show_bug.cgi?id=108131
     5
     6        Reviewed by Tony Chang.
     7
     8        A patch was landed in r140027 to prevent a null pointer crash in
     9        IDBRequest::dispatchEvent and confirm the source of the crash (which
     10        we couldn't repro locally). Following confirmation from user reports,
     11        the root cause was tracked down to a race condition in MessageQueue,
     12        and was fixed in r140483. This patch is no longer needed, and there's
     13        always been an ASSERT in place to catch regressions while debugging.
     14
     15        No new tests - no behavior change.
     16
     17        * Modules/indexeddb/IDBRequest.cpp:
     18        (WebCore::IDBRequest::dispatchEvent): Remove extraneous test.
     19
    1202013-01-30  Joe Mason  <jmason@rim.com>
    221
  • trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp

    r141013 r141351  
    442442    ASSERT_WITH_MESSAGE(m_readyState < DONE, "When dispatching event %s, m_readyState < DONE(%d), was %d", event->type().string().utf8().data(), DONE, m_readyState);
    443443
    444     // FIXME: This method should not be called if stop() was previously called,
    445     // but there are crash reports (no local repro) indicating a null pointer
    446     // deference in the following DOMRequestState::Scope constructor. If this
    447     // resolves the crashes, track down the root cause, otherwise back this out.
    448     if (m_contextStopped)
    449         return false;
    450 
    451444    DOMRequestState::Scope scope(m_requestState);
    452445
Note: See TracChangeset for help on using the changeset viewer.