Title: [155183] trunk/Source/WebCore
Revision
155183
Author
allan.jen...@digia.com
Date
2013-09-06 03:11:26 -0700 (Fri, 06 Sep 2013)

Log Message

[Qt][WK2] Cached credentials not cleared between tests
https://bugs.webkit.org/show_bug.cgi?id=120775

Reviewed by Jocelyn Turcotte.

Clear the access credentials when resetting the state of a page for testing.

* testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (155182 => 155183)


--- trunk/Source/WebCore/ChangeLog	2013-09-06 09:56:13 UTC (rev 155182)
+++ trunk/Source/WebCore/ChangeLog	2013-09-06 10:11:26 UTC (rev 155183)
@@ -1,3 +1,15 @@
+2013-09-06  Allan Sandfeld Jensen  <allan.jen...@digia.com>
+
+        [Qt][WK2] Cached credentials not cleared between tests
+        https://bugs.webkit.org/show_bug.cgi?id=120775
+
+        Reviewed by Jocelyn Turcotte.
+
+        Clear the access credentials when resetting the state of a page for testing.
+
+        * testing/Internals.cpp:
+        (WebCore::Internals::resetToConsistentState):
+
 2013-09-06  Sergio Villar Senin  <svil...@igalia.com>
 
         [CSS Grid Layout] Resolve named grid lines

Modified: trunk/Source/WebCore/testing/Internals.cpp (155182 => 155183)


--- trunk/Source/WebCore/testing/Internals.cpp	2013-09-06 09:56:13 UTC (rev 155182)
+++ trunk/Source/WebCore/testing/Internals.cpp	2013-09-06 10:11:26 UTC (rev 155183)
@@ -148,6 +148,11 @@
 #include "Vibration.h"
 #endif
 
+#if PLATFORM(QT)
+#include "NetworkingContext.h"
+#include <QNetworkAccessManager>
+#endif
+
 namespace WebCore {
 
 using namespace HTMLNames;
@@ -269,6 +274,13 @@
         page->mainFrame().editor().toggleContinuousSpellChecking();
     if (page->mainFrame().editor().isOverwriteModeEnabled())
         page->mainFrame().editor().toggleOverwriteModeEnabled();
+
+#if PLATFORM(QT)
+    if (NetworkingContext* context = page->mainFrame().loader().networkingContext()) {
+        if (QNetworkAccessManager* qnam = context->networkAccessManager())
+            qnam->clearAccessCache();
+    }
+#endif
 }
 
 Internals::Internals(Document* document)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to