CachedFrame::destroy contains code that will detach the page, sometimes too soon, causing crashes or assertion failures when teardown code for frames assumes there is still an attached page. <rdar://problem/18550647>
Created attachment 240313 [details] Patch
Comment on attachment 240313 [details] Patch This appears to break tests: fast/loader/image-in-page-cache.html [ Crash Timeout Pass ] fast/frames/frame-crash-with-page-cache.html [ Timeout ]
I can see the following code being present in Webkit source from Github: https://github.com/WebKit/WebKit/blob/75043d22e2b75e0018914f38ab381214f048dba2/Source/WebCore/history/CachedFrame.cpp#L261 Although line order is different and it was done in this commit: https://github.com/WebKit/WebKit/commit/8506cd994976591f9a1db0dc5c10fc698768687f#diff-24fdd2b5535690eeec8038c328da95c097199ec9f376593c366505033eb18931 Considering this change landed in one way or form, I am going to mark this bug as "RESOLVED WONTFIX". Thanks!