Changeset 24057 in webkit


Ignore:
Timestamp:
Jul 6, 2007 3:31:35 AM (17 years ago)
Author:
bdash
Message:

2007-07-06 Maxime Britto <mbritto@pleyo.com>

Reviewed by Maciej.

Fix http://bugs.webkit.org/show_bug.cgi?id=13038

Bug 13038: ASSERTION FAILED: item->target().isEmpty()
m_mainFrame->tree()->find(item->target()) == m_mainFrame

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.
The attached test case is a manual one since it relies on having pages opened in tabs in Safari.

  • manual-tests/goBack-blank-tab-page.html: Added.
  • manual-tests/resources/before-go-back.html: Added.
  • manual-tests/resources/will-go-back.html: Added.
  • page/Page.cpp: (WebCore::Page::goToItem):
Location:
trunk/WebCore
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24055 r24057  
     12007-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
    1172007-07-06  Mitz Pettel  <mitz@webkit.org>
    218
  • trunk/WebCore/page/Page.cpp

    r23863 r24057  
    131131void Page::goToItem(HistoryItem* item, FrameLoadType type)
    132132{
     133    // Handle the go back/forward to a frameset, don't need to handle if the traget is a _blank
    133134    // 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);
    135136
    136137    // Abort any current load if we're going to a history item
Note: See TracChangeset for help on using the changeset viewer.