2007-12-12 MorganL <morganl.webkit@yahoo.com> -- http://bugs.webkit.org/show_bug...
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 22:37:24 +0000 (22:37 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 22:37:24 +0000 (22:37 +0000)
        Reviewed by Maciej.

        Fixes:
        http://bugs.webkit.org/show_bug.cgi?id=16408

        When navigating back/forward to a http:// link, we should prefer to
        load from cache if possible.

        * loader/FrameLoader.cpp:

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

WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp

index b1d196f..a59c53b 100644 (file)
@@ -1,3 +1,15 @@
+2007-12-12  MorganL  <morganl.webkit@yahoo.com>
+
+        Reviewed by Maciej.
+
+        Fixes:
+        http://bugs.webkit.org/show_bug.cgi?id=16408
+
+        When navigating back/forward to a http:// link, we should prefer to
+        load from cache if possible.
+
+        * loader/FrameLoader.cpp:
+
 2007-12-12  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Sam.
index 632049d..e264211 100644 (file)
@@ -4058,7 +4058,7 @@ void FrameLoader::loadItem(HistoryItem* item, FrameLoadType loadType)
                     case FrameLoadTypeBack:
                     case FrameLoadTypeForward:
                     case FrameLoadTypeIndexedBackForward:
-                        if (itemURL.protocol() == "https")
+                        if (itemURL.protocol() != "https")
                             request.setCachePolicy(ReturnCacheDataElseLoad);
                         break;
                     case FrameLoadTypeStandard: