Changeset 21738 in webkit
- Timestamp:
- May 24, 2007, 4:48:02 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21734 r21738 1 2007-05-24 Adele Peterson <adele@apple.com> 2 3 Reviewed by Darin. 4 5 Test for <rdar://problem/5211921> Form values sometimes get transposed (iGoogle) 6 7 * fast/history/redirect-load-no-form-restoration-expected.txt: Added. 8 * fast/history/redirect-load-no-form-restoration.html: Added. 9 * fast/history/resources/redirect-load.html: Added. 10 1 11 2007-05-24 Mitz Pettel <mitz@webkit.org> 2 12 -
trunk/WebCore/ChangeLog
r21734 r21738 1 2007-05-24 Adele Peterson <adele@apple.com> 2 3 Reviewed by Darin. 4 5 Fix for <rdar://problem/5211921> Form values sometimes get transposed (iGoogle) 6 7 Test: fast/history/redirect-load-no-form-restoration.html 8 9 * history/HistoryItem.cpp: 10 (WebCore::HistoryItem::setURL): Clear the document state when the url changes for a HistoryItem. 11 (WebCore::HistoryItem::isCurrentDocument): Added. Compares the HistoryItem url to the document's url. This might not be the best way to do this, but it works for now. 12 * history/HistoryItem.h: 13 * loader/FrameLoader.cpp: (WebCore::FrameLoader::saveDocumentState): Only set the document (and form) state if the document is current for the history item. 14 1 15 2007-05-24 Mitz Pettel <mitz@webkit.org> 2 16 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r21721 r21738 11432 11432 isa = PBXProject; 11433 11433 buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */; 11434 compatibilityVersion = "Xcode 2.4";11435 11434 hasScannedForEncodings = 1; 11436 11435 knownRegions = ( … … 11447 11446 projectDirPath = ""; 11448 11447 projectRoot = ""; 11449 shouldCheckCompatibility = 1;11450 11448 targets = ( 11451 11449 93F198A508245E59001E9ABC /* WebCore */, -
trunk/WebCore/history/HistoryItem.cpp
r21464 r21738 27 27 #include "HistoryItem.h" 28 28 29 #include "Document.h" 29 30 #include "CachedPage.h" 30 31 #include "FrameLoader.h" … … 203 204 setURLString(url.url()); 204 205 setCachedPage(0); 206 clearDocumentState(); 205 207 } 206 208 … … 382 384 } 383 385 386 bool HistoryItem::isCurrentDocument(Document* doc) const 387 { 388 // FIXME: We should find a better way to check if this is the current document. 389 return urlString() == doc->URL(); 390 } 391 384 392 void HistoryItem::mergeAutoCompleteHints(HistoryItem* otherItem) 385 393 { -
trunk/WebCore/history/HistoryItem.h
r21464 r21738 45 45 namespace WebCore { 46 46 47 class Document; 47 48 class CachedPage; 48 49 class Image; … … 127 128 void setLastVisitedTime(double); 128 129 130 bool isCurrentDocument(Document*) const; 131 129 132 #if PLATFORM(MAC) 130 133 id viewState() const; -
trunk/WebCore/loader/FrameLoader.cpp
r21724 r21738 3766 3766 3767 3767 if (document->hasSecureForm()) 3768 3768 return; 3769 3769 3770 3770 // For a standard page load, we will have a previous item set, which will be used to … … 3783 3783 return; 3784 3784 3785 if (document ) {3786 LOG(Loading, "WebCoreLoading %s: saving form state to %p", ((String&)m_frame->tree()->name()).ascii().data(), item);3785 if (document && item->isCurrentDocument(document)) { 3786 LOG(Loading, "WebCoreLoading %s: saving form state to %p", m_frame->tree()->name().domString().utf8().data(), item); 3787 3787 item->setDocumentState(document->formElementsState()); 3788 3788 }
Note:
See TracChangeset
for help on using the changeset viewer.