Changeset 200986 in webkit
- Timestamp:
- May 16, 2016, 6:09:27 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r200981 r200986 1 2016-05-16 Brent Fulgham <bfulgham@apple.com> 2 3 heap use-after-free at WebCore::TimerBase::heapPopMin() 4 https://bugs.webkit.org/show_bug.cgi?id=157742 5 <rdar://problem/26236778> 6 7 Reviewed by Simon Fraser. 8 9 * fast/frames/crash-during-iframe-load-stop-expected.txt: Added. 10 * fast/frames/crash-during-iframe-load-stop.html: Added. 11 * fast/frames/resources/crash-during-iframe-load-stop-inner.html: Added. 12 * fast/frames/resources/crash-during-iframe-load-stop.html: Added. 13 1 14 2016-05-16 Saam barati <sbarati@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r200985 r200986 1 2016-05-16 Brent Fulgham <bfulgham@apple.com> 2 3 heap use-after-free at WebCore::TimerBase::heapPopMin() 4 https://bugs.webkit.org/show_bug.cgi?id=157742 5 <rdar://problem/26236778> 6 7 Reviewed by David Kilzer. 8 9 Tested by fast/frames/resources/crash-during-iframe-load-stop.html. 10 11 * loader/FrameLoader.cpp: 12 (WebCore::FrameLoader::stopForUserCancel): Protect m_frame from destruction while it is still 13 being used by the current stack frame. 14 (WebCore::FrameLoader::frameDetached): Ditto. 15 (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): Ditto. 16 1 17 2016-05-16 Dean Jackson <dino@apple.com> 2 18 -
trunk/Source/WebCore/loader/FrameLoader.cpp
r199955 r200986 1633 1633 void FrameLoader::stopForUserCancel(bool deferCheckLoadComplete) 1634 1634 { 1635 // Calling stopAllLoaders can cause the frame to be deallocated, including the frame loader. 1636 Ref<Frame> protectedFrame(m_frame); 1637 1635 1638 stopAllLoaders(); 1636 1639 … … 2492 2495 void FrameLoader::frameDetached() 2493 2496 { 2497 // Calling stopAllLoaders can cause the frame to be deallocated, including the frame loader. 2498 Ref<Frame> protectedFrame(m_frame); 2499 2494 2500 stopAllLoaders(); 2495 2501 m_frame.document()->stopActiveDOMObjects(); … … 2790 2796 if (!shouldContinue) 2791 2797 return; 2798 2799 // Calling stopLoading() on the provisional document loader can cause the underlying 2800 // frame to be deallocated. 2801 Ref<Frame> protectedFrame(m_frame); 2792 2802 2793 2803 // If we have a provisional request for a different document, a fragment scroll should cancel it.
Note:
See TracChangeset
for help on using the changeset viewer.