Commit 3962570f authored by weinig@apple.com's avatar weinig@apple.com

WebKitTools:

        Reviewed by Adam Roben.

        Implement LayoutTestController.setPrivateBrowsingEnabled(bool) for windows.

        * DumpRenderTree/win/DumpRenderTree.cpp:
        (runTest):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::setPrivateBrowsingEnabled):

LayoutTests:

        Reviewed by Adam Roben.

        * platform/win/Skipped: Remove http/tests/security/cross-frame-acdcess-private-browsing.html 
        from the windows skipped list now that LayoutTestController.setPrivateBrowsingEnabled has 
        been implmented.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0856b869
2007-11-12 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
* platform/win/Skipped: Remove http/tests/security/cross-frame-acdcess-private-browsing.html
from the windows skipped list now that LayoutTestController.setPrivateBrowsingEnabled has
been implmented.
2007-11-12 Darin Adler <darin@apple.com>
Reviewed by Sam.
......
......@@ -610,6 +610,3 @@ svg/custom/gradient-stop-style-change.svg
# <video> support
media
# add support for layoutTestController.setPrivateBrowsingEnabled(bool)
http/tests/security/cross-frame-access-private-browsing.html
2007-11-12 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
Implement LayoutTestController.setPrivateBrowsingEnabled(bool) for windows.
* DumpRenderTree/win/DumpRenderTree.cpp:
(runTest):
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::setPrivateBrowsingEnabled):
2007-11-12 Adam Roben <aroben@apple.com>
* Scripts/update-webkit-localizable-strings: Changed to only scan the
......
......@@ -618,6 +618,10 @@ static void runTest(const char* pathOrURL)
COMPtr<IWebIBActions> webIBActions;
if (SUCCEEDED(webView->QueryInterface(IID_IWebIBActions, (void**)&webIBActions)))
webIBActions->makeTextStandardSize(0);
COMPtr<IWebPreferences> preferences;
if (SUCCEEDED(webView->preferences(&preferences)))
preferences->setPrivateBrowsingEnabled(FALSE);
}
WorkQueue::shared()->clear();
......
......@@ -236,9 +236,17 @@ void LayoutTestController::setMainFrameIsFirstResponder(bool flag)
// FIXME: Implement!
}
void LayoutTestController::setPrivateBrowsingEnabled(bool /*privateBrowsingEnabled*/)
void LayoutTestController::setPrivateBrowsingEnabled(bool privateBrowsingEnabled)
{
// FIXME: Implement!
COMPtr<IWebView> webView;
if (FAILED(frame->webView(&webView)))
return;
COMPtr<IWebPreferences> preferences;
if (FAILED(webView->preferences(&preferences)))
return;
preferences->setPrivateBrowsingEnabled(privateBrowsingEnabled);
}
void LayoutTestController::setTabKeyCyclesThroughElements(bool shouldCycle)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment