Changeset 242797 in webkit
- Timestamp:
- Mar 12, 2019, 9:50:46 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
history/CachedFrame.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r242796 r242797 1 2019-03-12 Ryosuke Niwa <rniwa@webkit.org> 2 3 In CachedFrame's constructor, release-assert that DOMWindow still has a frame after page-caching subframes 4 https://bugs.webkit.org/show_bug.cgi?id=195609 5 6 Reviewed by Chris Dumez. 7 8 r242677 added release assertions to DOMWindow::suspendForPageCache. But when the first release assert in 9 that function is hit, we still can't tell whether active DOM objects are detaching frames, or if creating 10 CachedFrame's on one of subframes is causing the frame to go way. 11 12 Add a release assertion immediately after creating CachedFrame on subframes to detect this case. 13 14 * history/CachedFrame.cpp: 15 (WebCore::CachedFrame::CachedFrame): 16 1 17 2019-03-12 Zalan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/history/CachedFrame.cpp
r237266 r242797 148 148 m_childFrames.append(std::make_unique<CachedFrame>(*child)); 149 149 150 RELEASE_ASSERT(m_document->domWindow()->frame()); 151 150 152 // Active DOM objects must be suspended before we cache the frame script data. 151 153 m_document->suspend(ReasonForSuspension::PageCache);
Note:
See TracChangeset
for help on using the changeset viewer.