Ignore:
Timestamp:
Feb 11, 2013, 4:01:36 PM (12 years ago)
Author:
[email protected]
Message:

XMLHttpRequestProgressEventThrottle::resume() always schedules timer even when unnecessary
https://bugs.webkit.org/show_bug.cgi?id=105348

Reviewed by Alexey Proskuryakov.

Let resume() clear the defer flag and return if there is deferred events to dispatch.

No new tests as this should not affect existing cross-platform behavior. It should be
OK as long as it doesn't break anything.

  • xml/XMLHttpRequestProgressEventThrottle.cpp:

(WebCore::XMLHttpRequestProgressEventThrottle::resume):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp

    r114374 r142538  
    199199    ASSERT(!m_total);
    200200
     201    if (m_deferredEvents.isEmpty() && !m_deferredProgressEvent) {
     202        m_deferEvents = false;
     203        return;
     204    }
     205
    201206    // Do not dispatch events inline here, since ScriptExecutionContext is iterating over
    202207    // the list of active DOM objects to resume them, and any activated JS event-handler
Note: See TracChangeset for help on using the changeset viewer.