Learn from Tim's mistakes
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 18:51:39 +0000 (18:51 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 18:51:39 +0000 (18:51 +0000)
        * DumpRenderTree/win/DumpRenderTree.cpp:
        (runTest): Reset the authorAndUserStylesEnabled preference for each
        test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28443 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp

index 87d5c563bd4304ddf7ad3191fc60e2a00de66cff..dce0b3a7fc5b8c28a7115c107afbeaccf2694286 100644 (file)
@@ -1,3 +1,11 @@
+2007-12-05  Adam Roben  <aroben@apple.com>
+
+        Learn from Tim's mistakes
+
+        * DumpRenderTree/win/DumpRenderTree.cpp:
+        (runTest): Reset the authorAndUserStylesEnabled preference for each
+        test.
+
 2007-12-05  Alp Toker  <alp@atoker.com>
 
         Reviewed by Mark Rowe.
index f4196d58271c046120cc6159502a7839c15671d2..9c2efa5336d5d6817762bbab6c8ae593a03e249c 100644 (file)
@@ -48,6 +48,7 @@
 #include <WebKit/IWebFramePrivate.h>
 #include <WebKit/IWebHistoryItem.h>
 #include <WebKit/IWebHistoryItemPrivate.h>
+#include <WebKit/IWebPreferencesPrivate.h>
 #include <WebKit/IWebURLResponse.h>
 #include <WebKit/IWebViewPrivate.h>
 #include <WebKit/WebKit.h>
@@ -641,8 +642,12 @@ static void runTest(const char* pathOrURL)
             webIBActions->makeTextStandardSize(0);
 
         COMPtr<IWebPreferences> preferences;
-        if (SUCCEEDED(webView->preferences(&preferences)))
+        if (SUCCEEDED(webView->preferences(&preferences))) {
             preferences->setPrivateBrowsingEnabled(FALSE);
+            COMPtr<IWebPreferencesPrivate> prefsPrivate(Query, preferences);
+            if (prefsPrivate)
+                prefsPrivate->setAuthorAndUserStylesEnabled(TRUE);
+        }
     }
 
     WorkQueue::shared()->clear();