Changeset 245142 in webkit
- Timestamp:
- May 9, 2019, 10:14:06 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dom/Document.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245126 r245142 1 2019-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 1 15 2019-05-09 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebCore/dom/Document.cpp
r245056 r245142 6301 6301 // FIXME: Not obvious why checkCompleted needs to go first. The order these are called is 6302 6302 // visible to WebKit clients, but it's more like a race than a well-defined relationship. 6303 auto weakThis = makeWeakPtr(this);6303 Ref<Document> protectedThis(*this); 6304 6304 checkCompleted(); 6305 if (weakThis) { 6306 if (auto* frame = this->frame()) 6307 frame->loader().checkLoadComplete(); 6308 } 6305 if (auto* frame = this->frame()) 6306 frame->loader().checkLoadComplete(); 6309 6307 } 6310 6308
Note:
See TracChangeset
for help on using the changeset viewer.