Changeset 165604 in webkit
- Timestamp:
- Mar 14, 2014 12:27:25 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r165598 r165604 1 2014-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 1 15 2014-03-13 Jinwoo Jeong <jw00.jeong@samsung.com> 2 16 -
trunk/Source/WebKit2/UIProcess/Cocoa/HistoryClient.mm
r164258 r165604 45 45 void HistoryClient::didNavigateWithNavigationData(WebContext*, WebPageProxy* webPageProxy, const WebNavigationDataStore& navigationDataStore, WebFrameProxy* webFrameProxy) 46 46 { 47 if (!webFrameProxy->isMainFrame()) 48 return; 49 47 50 auto& navigationState = NavigationState::fromWebPage(*webPageProxy); 48 51 … … 52 55 void HistoryClient::didPerformClientRedirect(WebContext*, WebPageProxy* webPageProxy, const WTF::String& sourceURL, const WTF::String& destinationURL, WebFrameProxy* webFrameProxy) 53 56 { 57 if (!webFrameProxy->isMainFrame()) 58 return; 59 54 60 auto& navigationState = NavigationState::fromWebPage(*webPageProxy); 55 61 … … 59 65 void HistoryClient::didPerformServerRedirect(WebContext*, WebPageProxy* webPageProxy, const WTF::String& sourceURL, const WTF::String& destinationURL, WebFrameProxy* webFrameProxy) 60 66 { 67 if (!webFrameProxy->isMainFrame()) 68 return; 69 61 70 auto& navigationState = NavigationState::fromWebPage(*webPageProxy); 62 71 … … 66 75 void HistoryClient::didUpdateHistoryTitle(WebContext*, WebPageProxy* webPageProxy, const WTF::String& title, const WTF::String& url, WebFrameProxy* webFrameProxy) 67 76 { 77 if (!webFrameProxy->isMainFrame()) 78 return; 79 68 80 auto& navigationState = NavigationState::fromWebPage(*webPageProxy); 69 81
Note: See TracChangeset
for help on using the changeset viewer.