⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245449 in webkit


Ignore:
Timestamp:
May 17, 2019, 4:25:00 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r245142 - Correct delayed load event handling
https://bugs.webkit.org/show_bug.cgi?id=197679
<rdar://problem/50423334>

Reviewed by Alex Christensen.

We need to properly account for the fact that JavaScript might run
while performing loads.

  • dom/Document.cpp:

(WebCore::Document::loadEventDelayTimerFired):

Location:
releases/WebKitGTK/webkit-2.24/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/Source/WebCore/ChangeLog

    r245448 r245449  
     12019-05-09  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Correct delayed load event handling
     4        https://bugs.webkit.org/show_bug.cgi?id=197679
     5        <rdar://problem/50423334>
     6
     7        Reviewed by Alex Christensen.
     8
     9        We need to properly account for the fact that JavaScript might run
     10        while performing loads.
     11
     12        * dom/Document.cpp:
     13        (WebCore::Document::loadEventDelayTimerFired):
     14
    1152019-05-08  Brent Fulgham  <bfulgham@apple.com>
    216
  • releases/WebKitGTK/webkit-2.24/Source/WebCore/dom/Document.cpp

    r245448 r245449  
    68966896    // FIXME: Not obvious why checkCompleted needs to go first. The order these are called is
    68976897    // visible to WebKit clients, but it's more like a race than a well-defined relationship.
    6898     auto weakThis = makeWeakPtr(this);
     6898    Ref<Document> protectedThis(*this);
    68996899    checkCompleted();
    6900     if (weakThis) {
    6901         if (auto* frame = this->frame())
    6902             frame->loader().checkLoadComplete();
    6903     }
     6900    if (auto* frame = this->frame())
     6901        frame->loader().checkLoadComplete();
    69046902}
    69056903
Note: See TracChangeset for help on using the changeset viewer.