RESOLVED FIXED 90870
REGRESSION(r109480): Form state for iframe content is not restored
https://bugs.webkit.org/show_bug.cgi?id=90870
Summary REGRESSION(r109480): Form state for iframe content is not restored
Kent Tamura
Reported 2012-07-10 04:32:32 PDT
Created attachment 151438 [details] Repro. Put this to LayoutTests/fast/loader/. Requires iframe/@srcdoc. Regression by http://trac.webkit.org/changeset/109480/trunk https://bugs.webkit.org/show_bug.cgi?id=79206 In r109480, I forgot to take care of documents in <iframe>s in a document loaded by FrameLoader::loadItem().
Attachments
Repro. Put this to LayoutTests/fast/loader/. Requires iframe/@srcdoc. (977 bytes, text/html)
2012-07-10 04:32 PDT, Kent Tamura
no flags
Patch (8.94 KB, patch)
2012-07-11 00:43 PDT, Kent Tamura
no flags
Patch 2 (8.91 KB, patch)
2012-08-23 17:58 PDT, Kent Tamura
no flags
Patch for landing (8.87 KB, patch)
2012-08-27 20:36 PDT, Kent Tamura
no flags
Kent Tamura
Comment 1 2012-07-11 00:43:26 PDT
Kent Tamura
Comment 2 2012-07-11 00:47:30 PDT
Comment on attachment 151624 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=151624&action=review > Source/WebCore/loader/HistoryController.cpp:166 > - if (item->isCurrentDocument(document)) { > + if (item->isCurrentDocument(document) && document->attached()) { I'm not confident of this change. HistoryController::saveDocumentState() is called twice for a subframe document when the main frame is navigated to another URL. 1. FrameLoader::detachChildren() of the parent FrameLoader FrameLoader::detachFromParent() FrameLoader::closeURL() HistoryController::saveDocumentState() 2. HTMLFrameOwnerElement::disconnectContentFrame FrameLoader::frameDetached() FrameLoader::detachFromParent() FrameLoader::closeURL() HistoryController::saveDocumentState() Is it an expected behavior?
Kent Tamura
Comment 3 2012-08-23 17:58:39 PDT
Created attachment 160301 [details] Patch 2 just rebase
jochen
Comment 4 2012-08-27 04:05:42 PDT
Comment on attachment 160301 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=160301&action=review > Source/WebCore/ChangeLog:29 > + Added. This function checks the current HisotryItem is associated spelling Hisotry > Source/WebCore/loader/HistoryController.cpp:182 > +static inline bool isAssociatedToRequestedHisotryItem(const HistoryItem* current, Frame* frame, const HistoryItem* requested) spelling "Hisotry"
Kent Tamura
Comment 5 2012-08-27 20:36:31 PDT
Created attachment 160891 [details] Patch for landing hisotry
WebKit Review Bot
Comment 6 2012-08-27 21:19:50 PDT
Comment on attachment 160891 [details] Patch for landing Clearing flags on attachment: 160891 Committed r126839: <http://trac.webkit.org/changeset/126839>
WebKit Review Bot
Comment 7 2012-08-27 21:19:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.