Changeset 87634 in webkit


Ignore:
Timestamp:
May 29, 2011 12:04:13 AM (13 years ago)
Author:
sfalken@apple.com
Message:

2011-05-28 Steve Falkenburg <sfalken@apple.com>

Reviewed by Dan Bernstein.

Don't add sub-frames to global history when navigating via back/forward
https://bugs.webkit.org/show_bug.cgi?id=61701
<rdar://problem/9521222>

Instead of just checking whether the load is the first in the frame, we also need to
check to make sure we're loading in the main frame.

Not testable due to lack of global history infrastructure in DRT.

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::transitionToCommitted):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87633 r87634  
     12011-05-28  Steve Falkenburg  <sfalken@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Don't add sub-frames to global history when navigating via back/forward
     6        https://bugs.webkit.org/show_bug.cgi?id=61701
     7        <rdar://problem/9521222>
     8
     9        Instead of just checking whether the load is the first in the frame, we also need to
     10        check to make sure we're loading in the main frame.
     11
     12        Not testable due to lack of global history infrastructure in DRT.
     13
     14        * loader/FrameLoader.cpp:
     15        (WebCore::FrameLoader::transitionToCommitted):
     16
    1172011-05-28  Alexey Proskuryakov  <ap@apple.com>
    218
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r87329 r87634  
    20792079                // without any of the items being loaded then we need to update the history in a similar manner as
    20802080                // for a standard load with the exception of updating the back/forward list (<rdar://problem/8091103>).
    2081                 if (!m_stateMachine.committedFirstRealDocumentLoad())
     2081                if (!m_stateMachine.committedFirstRealDocumentLoad() && isLoadingMainFrame())
    20822082                    history()->updateForStandardLoad(HistoryController::UpdateAllExceptBackForwardList);
    20832083
Note: See TracChangeset for help on using the changeset viewer.