Changeset 49564 in webkit
- Timestamp:
- Oct 14, 2009 9:03:31 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49562 r49564 1 2009-10-02 Yong Li <yong.li@torchmobile.com> 2 3 Reviewed by NOBODY Adele Peterson. 1 2009-10-14 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebKit Win API should provide a delegate interface for global history. 6 https://bugs.webkit.org/show_bug.cgi?id=29905 7 8 * platform/win/Skipped: Enable globalhistory tests. 9 10 2009-10-14 Yong Li <yong.li@torchmobile.com> 11 12 Reviewed by Adele Peterson. 4 13 5 14 Added a test case that loads an invalid image to make sure -
trunk/LayoutTests/platform/win/Skipped
r49532 r49564 681 681 fast/dom/Window/slow_unload_handler.html 682 682 683 # This port doesn't have a global history delegate yet684 http/tests/globalhistory685 686 683 # <https://bugs.webkit.org/show_bug.cgi?id=29966> 687 684 fast/inline/relative-positioned-overflow.html -
trunk/WebKit/win/ChangeLog
r49550 r49564 1 2009-10-14 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebKit Win API should provide a delegate interface for global history. 6 https://bugs.webkit.org/show_bug.cgi?id=29905 7 8 -Add IWebHistoryDelegate for clients to implement. 9 -Add (I)WebNavigationData for the history delegate's use. 10 -When it exists, call the history delegate instead of using WebHistory. 11 12 * Interfaces/IWebHistoryDelegate.idl: Added. 13 * Interfaces/IWebHistoryPrivate.idl: 14 * Interfaces/IWebNavigationData.idl: Added. 15 * Interfaces/IWebViewPrivate.idl: 16 * Interfaces/WebKit.idl: 17 18 * WebKit.vcproj/Interfaces.vcproj: 19 * WebKit.vcproj/WebKit.vcproj: 20 21 * WebCoreSupport/WebChromeClient.cpp: 22 (WebChromeClient::populateVisitedLinks): 23 * WebCoreSupport/WebFrameLoaderClient.cpp: 24 (WebFrameLoaderClient::updateGlobalHistory): 25 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): 26 (WebFrameLoaderClient::setTitle): 27 28 * WebView.cpp: 29 (WebView::close): 30 (WebView::mainFrameURL): 31 (WebView::setHistoryDelegate): 32 (WebView::historyDelegate): 33 (WebView::addVisitedLinks): 34 * WebView.h: 35 36 * WebHistory.cpp: 37 (WebHistory::setVisitedLinkTrackingEnabled): 38 (WebHistory::removeAllVisitedLinks): 39 * WebHistory.h: 40 41 * WebNavigationData.cpp: Added. 42 (WebNavigationData::QueryInterface): 43 (WebNavigationData::AddRef): 44 (WebNavigationData::Release): 45 (WebNavigationData::WebNavigationData): 46 (WebNavigationData::~WebNavigationData): 47 (WebNavigationData::createInstance): 48 (WebNavigationData::url): 49 (WebNavigationData::title): 50 (WebNavigationData::originalRequest): 51 (WebNavigationData::response): 52 (WebNavigationData::hasSubstituteData): 53 (WebNavigationData::clientRedirectSource): 54 * WebNavigationData.h: Added. 55 1 56 2009-10-13 Dave Hyatt <hyatt@apple.com> 2 57 -
trunk/WebKit/win/Interfaces/IWebHistoryPrivate.idl
r42463 r49564 37 37 HRESULT allItems([in, out] int* count, [out, retval] IWebHistoryItem** items); 38 38 HRESULT data([out, retval] IStream**); 39 HRESULT setVisitedLinkTrackingEnabled([in] BOOL visitedLinkTrackingEnable); 40 HRESULT removeAllVisitedLinks(); 39 41 } -
trunk/WebKit/win/Interfaces/IWebViewPrivate.idl
r49541 r49564 29 29 import "IWebFormDelegate.idl"; 30 30 import "IWebFrameLoadDelegatePrivate.idl"; 31 import "IWebHistoryDelegate.idl"; 31 32 import "IWebInspector.idl"; 32 33 import "IWebInspectorPrivate.idl"; … … 39 40 interface IWebFormDelegate; 40 41 interface IWebFrameLoadDelegatePrivate; 42 interface IWebHistoryDelegate; 41 43 interface IWebInspector; 42 44 interface IWebInspectorPrivate; … … 211 213 // Removes all white list entries created with whiteListAccessFromOrigin. 212 214 HRESULT resetOriginAccessWhiteLists(); 215 216 HRESULT setHistoryDelegate([in] IWebHistoryDelegate* historyDelegate); 217 HRESULT historyDelegate([out,retval] IWebHistoryDelegate** historyDelegate); 218 HRESULT addVisitedLinks([in] BSTR* visitedURLs, [in] unsigned visitedURLCount); 213 219 } -
trunk/WebKit/win/Interfaces/WebKit.idl
r49091 r49564 91 91 #include "IWebHTTPURLResponse.idl" 92 92 #include "IWebHistory.idl" 93 #include "IWebHistoryDelegate.idl" 93 94 #include "IWebHistoryItem.idl" 94 95 #include "IWebHistoryItemPrivate.idl" … … 101 102 #include "IWebKitStatistics.idl" 102 103 #include "IWebMutableURLRequestPrivate.idl" 104 #include "IWebNavigationData.idl" 103 105 #include "IWebNotification.idl" 104 106 #include "IWebNotificationCenter.idl" -
trunk/WebKit/win/WebCoreSupport/WebChromeClient.cpp
r48511 r49564 572 572 void WebChromeClient::populateVisitedLinks() 573 573 { 574 COMPtr<IWebHistoryDelegate> historyDelegate; 575 m_webView->historyDelegate(&historyDelegate); 576 if (historyDelegate) { 577 historyDelegate->populateVisitedLinksForWebView(m_webView); 578 return; 579 } 580 574 581 WebHistory* history = WebHistory::sharedHistory(); 575 582 if (!history) -
trunk/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp
r49320 r49564 44 44 #include "WebHistoryItem.h" 45 45 #include "WebMutableURLRequest.h" 46 #include "WebNavigationData.h" 46 47 #include "WebNotificationCenter.h" 47 48 #include "WebSecurityOrigin.h" … … 494 495 void WebFrameLoaderClient::updateGlobalHistory() 495 496 { 497 DocumentLoader* loader = core(m_webFrame)->loader()->documentLoader(); 498 WebView* webView = m_webFrame->webView(); 499 COMPtr<IWebHistoryDelegate> historyDelegate; 500 webView->historyDelegate(&historyDelegate); 501 502 if (historyDelegate) { 503 BString url(loader->urlForHistory()); 504 BString title(loader->title()); 505 BString redirectSource(loader->clientRedirectSourceForHistory()); 506 COMPtr<IWebURLResponse> urlResponse(AdoptCOM, WebURLResponse::createInstance(loader->response())); 507 COMPtr<IWebURLRequest> urlRequest(AdoptCOM, WebMutableURLRequest::createInstance(loader->originalRequestCopy())); 508 509 COMPtr<IWebNavigationData> navigationData(AdoptCOM, WebNavigationData::createInstance( 510 url, title, urlRequest.get(), urlResponse.get(), loader->substituteData().isValid(), redirectSource)); 511 512 historyDelegate->didNavigateWithNavigationData(webView, navigationData.get(), m_webFrame); 513 return; 514 } 515 496 516 WebHistory* history = WebHistory::sharedHistory(); 497 517 if (!history) 498 518 return; 499 519 500 DocumentLoader* loader = core(m_webFrame)->loader()->documentLoader();501 520 history->visitedURL(loader->urlForHistory(), loader->title(), loader->originalRequestCopy().httpMethod(), loader->urlForHistoryReflectsFailure(), !loader->clientRedirectSourceForHistory()); 502 521 } … … 504 523 void WebFrameLoaderClient::updateGlobalHistoryRedirectLinks() 505 524 { 525 WebView* webView = m_webFrame->webView(); 526 COMPtr<IWebHistoryDelegate> historyDelegate; 527 webView->historyDelegate(&historyDelegate); 528 506 529 WebHistory* history = WebHistory::sharedHistory(); 507 if (!history)508 return;509 530 510 531 DocumentLoader* loader = core(m_webFrame)->loader()->documentLoader(); … … 512 533 513 534 if (!loader->clientRedirectSourceForHistory().isNull()) { 514 if (COMPtr<IWebHistoryItem> iWebHistoryItem = history->itemForURLString(loader->clientRedirectSourceForHistory())) { 515 COMPtr<WebHistoryItem> webHistoryItem(Query, iWebHistoryItem); 516 webHistoryItem->historyItem()->addRedirectURL(loader->clientRedirectDestinationForHistory()); 535 if (historyDelegate) { 536 BString sourceURL(loader->clientRedirectSourceForHistory()); 537 BString destURL(loader->clientRedirectDestinationForHistory()); 538 historyDelegate->didPerformClientRedirectFromURL(webView, sourceURL, destURL, m_webFrame); 539 } else { 540 if (history) { 541 if (COMPtr<IWebHistoryItem> iWebHistoryItem = history->itemForURLString(loader->clientRedirectSourceForHistory())) { 542 COMPtr<WebHistoryItem> webHistoryItem(Query, iWebHistoryItem); 543 webHistoryItem->historyItem()->addRedirectURL(loader->clientRedirectDestinationForHistory()); 544 } 545 } 517 546 } 518 547 } 519 548 520 549 if (!loader->serverRedirectSourceForHistory().isNull()) { 521 if (COMPtr<IWebHistoryItem> iWebHistoryItem = history->itemForURLString(loader->serverRedirectSourceForHistory())) { 522 COMPtr<WebHistoryItem> webHistoryItem(Query, iWebHistoryItem); 523 webHistoryItem->historyItem()->addRedirectURL(loader->serverRedirectDestinationForHistory()); 550 if (historyDelegate) { 551 BString sourceURL(loader->serverRedirectSourceForHistory()); 552 BString destURL(loader->serverRedirectDestinationForHistory()); 553 historyDelegate->didPerformServerRedirectFromURL(webView, sourceURL, destURL, m_webFrame); 554 } else { 555 if (history) { 556 if (COMPtr<IWebHistoryItem> iWebHistoryItem = history->itemForURLString(loader->serverRedirectSourceForHistory())) { 557 COMPtr<WebHistoryItem> webHistoryItem(Query, iWebHistoryItem); 558 webHistoryItem->historyItem()->addRedirectURL(loader->serverRedirectDestinationForHistory()); 559 } 560 } 524 561 } 525 562 } … … 573 610 void WebFrameLoaderClient::setTitle(const String& title, const KURL& url) 574 611 { 612 WebView* webView = m_webFrame->webView(); 613 COMPtr<IWebHistoryDelegate> historyDelegate; 614 webView->historyDelegate(&historyDelegate); 615 if (historyDelegate) { 616 BString titleBSTR(title); 617 BString urlBSTR(url.string()); 618 historyDelegate->updateHistoryTitle(webView, titleBSTR, urlBSTR); 619 return; 620 } 621 575 622 BOOL privateBrowsingEnabled = FALSE; 576 623 COMPtr<IWebPreferences> preferences; -
trunk/WebKit/win/WebHistory.cpp
r48770 r49564 578 578 } 579 579 580 HRESULT WebHistory::setVisitedLinkTrackingEnabled(BOOL visitedLinkTrackingEnabled) 581 { 582 PageGroup::setShouldTrackVisitedLinks(visitedLinkTrackingEnabled); 583 return S_OK; 584 } 585 586 HRESULT WebHistory::removeAllVisitedLinks() 587 { 588 PageGroup::removeAllVisitedLinks(); 589 return S_OK; 590 } 591 580 592 HRESULT STDMETHODCALLTYPE WebHistory::setHistoryItemLimit( 581 593 /* [in] */ int limit) -
trunk/WebKit/win/WebHistory.h
r45681 r49564 117 117 virtual HRESULT STDMETHODCALLTYPE data(IStream**); 118 118 119 virtual HRESULT STDMETHODCALLTYPE setVisitedLinkTrackingEnabled(BOOL visitedLinkTrackingEnable); 120 virtual HRESULT STDMETHODCALLTYPE removeAllVisitedLinks(); 121 119 122 // WebHistory 120 123 static WebHistory* sharedHistory(); -
trunk/WebKit/win/WebKit.vcproj/Interfaces.vcproj
r49091 r49564 785 785 </File> 786 786 <File 787 RelativePath="..\Interfaces\IWebHistoryDelegate.idl" 788 > 789 <FileConfiguration 790 Name="Debug|Win32" 791 ExcludedFromBuild="true" 792 > 793 <Tool 794 Name="VCMIDLTool" 795 /> 796 </FileConfiguration> 797 </File> 798 <File 787 799 RelativePath="..\Interfaces\IWebHistoryItem.idl" 788 800 > … … 1037 1049 <FileConfiguration 1038 1050 Name="Release|Win32" 1051 ExcludedFromBuild="true" 1052 > 1053 <Tool 1054 Name="VCMIDLTool" 1055 /> 1056 </FileConfiguration> 1057 </File> 1058 <File 1059 RelativePath="..\Interfaces\IWebNavigationData.idl" 1060 > 1061 <FileConfiguration 1062 Name="Debug|Win32" 1039 1063 ExcludedFromBuild="true" 1040 1064 > -
trunk/WebKit/win/WebKit.vcproj/WebKit.vcproj
r48884 r49564 680 680 </File> 681 681 <File 682 RelativePath="..\WebNavigationData.h" 683 > 684 </File> 685 <File 682 686 RelativePath="..\WebNodeHighlight.h" 683 687 > … … 993 997 <File 994 998 RelativePath="..\WebMutableURLRequest.cpp" 999 > 1000 </File> 1001 <File 1002 RelativePath="..\WebNavigationData.cpp" 995 1003 > 996 1004 </File> -
trunk/WebKit/win/WebView.cpp
r49550 r49564 640 640 setFrameLoadDelegate(0); 641 641 setFrameLoadDelegatePrivate(0); 642 setHistoryDelegate(0); 642 643 setPolicyDelegate(0); 643 644 setResourceLoadDelegate(0); … … 3361 3362 3362 3363 HRESULT STDMETHODCALLTYPE WebView::mainFrameURL( 3363 /* [retval][out] */ BSTR* /*urlString*/) 3364 { 3365 ASSERT_NOT_REACHED(); 3366 return E_NOTIMPL; 3364 /* [retval][out] */ BSTR* urlString) 3365 { 3366 if (!urlString) 3367 return E_POINTER; 3368 3369 if (!m_mainFrame) 3370 return E_FAIL; 3371 3372 COMPtr<IWebDataSource> dataSource; 3373 3374 if (FAILED(m_mainFrame->provisionalDataSource(&dataSource))) { 3375 if (FAILED(m_mainFrame->dataSource(&dataSource))) 3376 return E_FAIL; 3377 } 3378 3379 if (!dataSource) { 3380 *urlString = 0; 3381 return S_OK; 3382 } 3383 3384 COMPtr<IWebMutableURLRequest> request; 3385 if (FAILED(dataSource->request(&request)) || !request) 3386 return E_FAIL; 3387 3388 if (FAILED(request->URL(urlString))) 3389 return E_FAIL; 3390 3391 return S_OK; 3367 3392 } 3368 3393 … … 5587 5612 return S_OK; 5588 5613 } 5614 5615 HRESULT WebView::setHistoryDelegate(IWebHistoryDelegate* historyDelegate) 5616 { 5617 m_historyDelegate = historyDelegate; 5618 return S_OK; 5619 } 5620 5621 HRESULT WebView::historyDelegate(IWebHistoryDelegate** historyDelegate) 5622 { 5623 if (!historyDelegate) 5624 return E_POINTER; 5625 5626 return m_historyDelegate.copyRefTo(historyDelegate); 5627 } 5628 5629 HRESULT WebView::addVisitedLinks(BSTR* visitedURLs, unsigned visitedURLCount) 5630 { 5631 PageGroup& group = core(this)->group(); 5632 5633 for (unsigned i = 0; i < visitedURLCount; ++i) { 5634 BSTR url = visitedURLs[i]; 5635 unsigned length = SysStringLen(url); 5636 group.addVisitedLink(url, length); 5637 } 5638 5639 return S_OK; 5640 } 5589 5641 5590 5642 void WebView::downloadURL(const KURL& url) -
trunk/WebKit/win/WebView.h
r49541 r49564 12 12 * 13 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 14 * EXPRESS OR IMPLIED WARRANTIES, INC LUDING, BUT NOT LIMITED TO, THE14 * EXPRESS OR IMPLIED WARRANTIES, INCfLUDING, BUT NOT LIMITED TO, THE 15 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR … … 761 761 virtual HRESULT STDMETHODCALLTYPE whiteListAccessFromOrigin(BSTR sourceOrigin, BSTR destinationProtocol, BSTR destinationHost, BOOL allowDestinationSubdomains); 762 762 virtual HRESULT STDMETHODCALLTYPE resetOriginAccessWhiteLists(); 763 764 765 virtual HRESULT STDMETHODCALLTYPE setHistoryDelegate(IWebHistoryDelegate* historyDelegate); 766 virtual HRESULT STDMETHODCALLTYPE historyDelegate(IWebHistoryDelegate** historyDelegate); 767 virtual HRESULT STDMETHODCALLTYPE addVisitedLinks(BSTR* visitedURLs, unsigned visitedURLCount); 763 768 764 769 // WebView … … 907 912 COMPtr<IWebResourceLoadDelegate> m_resourceLoadDelegate; 908 913 COMPtr<IWebDownloadDelegate> m_downloadDelegate; 914 COMPtr<IWebHistoryDelegate> m_historyDelegate; 909 915 COMPtr<WebPreferences> m_preferences; 910 916 COMPtr<WebInspector> m_webInspector; -
trunk/WebKitTools/ChangeLog
r49563 r49564 1 2009-10-14 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebKit Win API should provide a delegate interface for global history. 6 https://bugs.webkit.org/show_bug.cgi?id=29905 7 8 * DumpRenderTree/LayoutTestController.cpp: 9 (LayoutTestController::LayoutTestController): 10 * DumpRenderTree/LayoutTestController.h: 11 (LayoutTestController::dumpHistoryDelegateCallbacks): 12 (LayoutTestController::setDumpHistoryDelegateCallbacks): 13 14 * DumpRenderTree/win/DumpRenderTree.cpp: 15 (shouldLogHistoryDelegates): 16 (runTest): 17 (createWebViewAndOffscreenWindow): 18 (main): 19 * DumpRenderTree/win/DumpRenderTree.vcproj: 20 21 Add the IWebHistoryDelegate to DRT Windows: 22 * DumpRenderTree/win/HistoryDelegate.cpp: Added. 23 (wstringFromBSTR): 24 (HistoryDelegate::HistoryDelegate): 25 (HistoryDelegate::~HistoryDelegate): 26 (HistoryDelegate::QueryInterface): 27 (HistoryDelegate::AddRef): 28 (HistoryDelegate::Release): 29 (HistoryDelegate::didNavigateWithNavigationData): 30 (HistoryDelegate::didPerformClientRedirectFromURL): 31 (HistoryDelegate::didPerformServerRedirectFromURL): 32 (HistoryDelegate::updateHistoryTitle): 33 (HistoryDelegate::populateVisitedLinksForWebView): 34 * DumpRenderTree/win/HistoryDelegate.h: Added. 35 36 * DumpRenderTree/win/LayoutTestControllerWin.cpp: 37 (LayoutTestController::removeAllVisitedLinks): 38 1 39 2009-10-14 Shu Chang <Chang.Shu@nokia.com> 2 40 -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r49369 r49564 49 49 , m_dumpEditingCallbacks(false) 50 50 , m_dumpFrameLoadCallbacks(false) 51 , m_dumpHistoryDelegateCallbacks(false) 51 52 , m_dumpResourceLoadCallbacks(false) 52 53 , m_dumpResourceResponseMIMETypes(false) -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r49369 r49564 122 122 void setDumpFrameLoadCallbacks(bool dumpFrameLoadCallbacks) { m_dumpFrameLoadCallbacks = dumpFrameLoadCallbacks; } 123 123 124 bool dumpHistoryDelegateCallbacks() const { return m_dumpHistoryDelegateCallbacks; } 125 void setDumpHistoryDelegateCallbacks(bool dumpHistoryDelegateCallbacks) { m_dumpHistoryDelegateCallbacks = dumpHistoryDelegateCallbacks; } 126 124 127 bool dumpResourceLoadCallbacks() const { return m_dumpResourceLoadCallbacks; } 125 128 void setDumpResourceLoadCallbacks(bool dumpResourceLoadCallbacks) { m_dumpResourceLoadCallbacks = dumpResourceLoadCallbacks; } … … 224 227 bool m_dumpEditingCallbacks; 225 228 bool m_dumpFrameLoadCallbacks; 229 bool m_dumpHistoryDelegateCallbacks; 226 230 bool m_dumpResourceLoadCallbacks; 227 231 bool m_dumpResourceResponseMIMETypes; -
trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp
r49488 r49564 32 32 #include "EditingDelegate.h" 33 33 #include "FrameLoadDelegate.h" 34 #include "HistoryDelegate.h" 34 35 #include "LayoutTestController.h" 35 36 #include "PixelDumpSupport.h" … … 98 99 COMPtr<EditingDelegate> sharedEditingDelegate; 99 100 COMPtr<ResourceLoadDelegate> sharedResourceLoadDelegate; 101 COMPtr<HistoryDelegate> sharedHistoryDelegate; 100 102 101 103 IWebFrame* frame; … … 682 684 } 683 685 686 static bool shouldLogHistoryDelegates(const char* pathOrURL) 687 { 688 return strstr(pathOrURL, "/globalhistory/") || strstr(pathOrURL, "\\globalhistory\\"); 689 } 690 684 691 static void resetDefaultsToConsistentValues(IWebPreferences* preferences) 685 692 { … … 837 844 gLayoutTestController->setDumpFrameLoadCallbacks(true); 838 845 846 COMPtr<IWebView> webView; 847 if (SUCCEEDED(frame->webView(&webView))) { 848 COMPtr<IWebViewPrivate> viewPrivate; 849 if (SUCCEEDED(webView->QueryInterface(&viewPrivate))) { 850 if (shouldLogHistoryDelegates(pathOrURL.c_str())) { 851 gLayoutTestController->setDumpHistoryDelegateCallbacks(true); 852 viewPrivate->setHistoryDelegate(sharedHistoryDelegate.get()); 853 } else 854 viewPrivate->setHistoryDelegate(0); 855 } 856 } 839 857 COMPtr<IWebHistory> history; 840 858 if (SUCCEEDED(WebKitCreateInstance(CLSID_WebHistory, 0, __uuidof(history), reinterpret_cast<void**>(&history)))) … … 844 862 845 863 prevTestBFItem = 0; 846 COMPtr<IWebView> webView; 847 if (SUCCEEDED(frame->webView(&webView))) { 864 if (webView) { 848 865 COMPtr<IWebBackForwardList> bfList; 849 866 if (SUCCEEDED(webView->backForwardList(&bfList))) … … 1088 1105 return 0; 1089 1106 1107 if (FAILED(viewPrivate->setHistoryDelegate(sharedHistoryDelegate.get()))) 1108 return 0; 1109 1090 1110 openWindows().append(hostWindow); 1091 1111 windowToWebViewMap().set(hostWindow, webView); … … 1154 1174 sharedEditingDelegate.adoptRef(new EditingDelegate); 1155 1175 sharedResourceLoadDelegate.adoptRef(new ResourceLoadDelegate); 1176 sharedHistoryDelegate.adoptRef(new HistoryDelegate); 1156 1177 1157 1178 // FIXME - need to make DRT pass with Windows native controls <http://bugs.webkit.org/show_bug.cgi?id=25592> -
trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.vcproj
r48692 r49564 457 457 </File> 458 458 <File 459 RelativePath=".\HistoryDelegate.cpp" 460 > 461 </File> 462 <File 463 RelativePath=".\HistoryDelegate.h" 464 > 465 </File> 466 <File 459 467 RelativePath=".\PolicyDelegate.cpp" 460 468 > -
trunk/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r49496 r49564 928 928 void LayoutTestController::removeAllVisitedLinks() 929 929 { 930 // FIXME: Implement this. 931 } 930 COMPtr<IWebHistory> history; 931 if (FAILED(WebKitCreateInstance(CLSID_WebHistory, 0, __uuidof(history), reinterpret_cast<void**>(&history)))) 932 return; 933 934 COMPtr<IWebHistory> sharedHistory; 935 if (FAILED(history->optionalSharedHistory(&sharedHistory)) || !sharedHistory) 936 return; 937 938 COMPtr<IWebHistoryPrivate> sharedHistoryPrivate; 939 if (FAILED(sharedHistory->QueryInterface(&sharedHistoryPrivate))) 940 return; 941 942 sharedHistoryPrivate->removeAllVisitedLinks(); 943 }
Note: See TracChangeset
for help on using the changeset viewer.