Changeset 24057 in webkit
- Timestamp:
- Jul 6, 2007 3:31:35 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r24055 r24057 1 2007-07-06 Maxime Britto <mbritto@pleyo.com> 2 3 Reviewed by Maciej. 4 5 Fix http://bugs.webkit.org/show_bug.cgi?id=13038 6 Bug 13038: ASSERTION FAILED: item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame 7 8 Modify an ASSERT in goToItem related to going back/forward in history. We don't need to check the frameset if the target is _blank. 9 The attached test case is a manual one since it relies on having pages opened in tabs in Safari. 10 11 * manual-tests/goBack-blank-tab-page.html: Added. 12 * manual-tests/resources/before-go-back.html: Added. 13 * manual-tests/resources/will-go-back.html: Added. 14 * page/Page.cpp: 15 (WebCore::Page::goToItem): 16 1 17 2007-07-06 Mitz Pettel <mitz@webkit.org> 2 18 -
trunk/WebCore/page/Page.cpp
r23863 r24057 131 131 void Page::goToItem(HistoryItem* item, FrameLoadType type) 132 132 { 133 // Handle the go back/forward to a frameset, don't need to handle if the traget is a _blank 133 134 // We never go back/forward on a per-frame basis, so the target must be the main frame 134 ASSERT(item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame);135 ASSERT(item->target().isEmpty() || item->target().contains("_blank", true) || m_mainFrame->tree()->find(item->target()) == m_mainFrame); 135 136 136 137 // Abort any current load if we're going to a history item
Note: See TracChangeset
for help on using the changeset viewer.