Changeset 165604 in webkit


Ignore:
Timestamp:
Mar 14, 2014 12:27:25 AM (10 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/16319722> [Cocoa] WKHistoryDelegate is being called for subframes
https://bugs.webkit.org/show_bug.cgi?id=130228

Reviewed by Mark Rowe.

  • UIProcess/Cocoa/HistoryClient.mm:

(WebKit::HistoryClient::didNavigateWithNavigationData): Bail out if the frame is not the
main frame.
(WebKit::HistoryClient::didPerformClientRedirect): Ditto.
(WebKit::HistoryClient::didPerformServerRedirect): Ditto.
(WebKit::HistoryClient::didUpdateHistoryTitle): Ditto.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r165598 r165604  
     12014-03-14  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/16319722> [Cocoa] WKHistoryDelegate is being called for subframes
     4        https://bugs.webkit.org/show_bug.cgi?id=130228
     5
     6        Reviewed by Mark Rowe.
     7
     8        * UIProcess/Cocoa/HistoryClient.mm:
     9        (WebKit::HistoryClient::didNavigateWithNavigationData): Bail out if the frame is not the
     10        main frame.
     11        (WebKit::HistoryClient::didPerformClientRedirect): Ditto.
     12        (WebKit::HistoryClient::didPerformServerRedirect): Ditto.
     13        (WebKit::HistoryClient::didUpdateHistoryTitle): Ditto.
     14
    1152014-03-13  Jinwoo Jeong  <jw00.jeong@samsung.com>
    216
  • trunk/Source/WebKit2/UIProcess/Cocoa/HistoryClient.mm

    r164258 r165604  
    4545void HistoryClient::didNavigateWithNavigationData(WebContext*, WebPageProxy* webPageProxy, const WebNavigationDataStore& navigationDataStore, WebFrameProxy* webFrameProxy)
    4646{
     47    if (!webFrameProxy->isMainFrame())
     48        return;
     49
    4750    auto& navigationState = NavigationState::fromWebPage(*webPageProxy);
    4851
     
    5255void HistoryClient::didPerformClientRedirect(WebContext*, WebPageProxy* webPageProxy, const WTF::String& sourceURL, const WTF::String& destinationURL, WebFrameProxy* webFrameProxy)
    5356{
     57    if (!webFrameProxy->isMainFrame())
     58        return;
     59
    5460    auto& navigationState = NavigationState::fromWebPage(*webPageProxy);
    5561
     
    5965void HistoryClient::didPerformServerRedirect(WebContext*, WebPageProxy* webPageProxy, const WTF::String& sourceURL, const WTF::String& destinationURL, WebFrameProxy* webFrameProxy)
    6066{
     67    if (!webFrameProxy->isMainFrame())
     68        return;
     69
    6170    auto& navigationState = NavigationState::fromWebPage(*webPageProxy);
    6271
     
    6675void HistoryClient::didUpdateHistoryTitle(WebContext*, WebPageProxy* webPageProxy, const WTF::String& title, const WTF::String& url, WebFrameProxy* webFrameProxy)
    6776{
     77    if (!webFrameProxy->isMainFrame())
     78        return;
     79
    6880    auto& navigationState = NavigationState::fromWebPage(*webPageProxy);
    6981
Note: See TracChangeset for help on using the changeset viewer.