WebKit:
[WebKit-https.git] / WebKit / WebView.subproj / WebFrame.m
index 0e3ec7aa95d7bf1ffbaba40bcb32d3c46f206237..240ae901a9a99c2acd92bffb96901ad55ca9f852 100644 (file)
@@ -791,9 +791,11 @@ NSString *WebPageCacheDocumentViewKey = @"WebPageCacheDocumentViewKey";
                     // Add item to history and BF list
                     NSURL *URL = [ds _URLForHistory];
                     if (URL && ![URL _web_isEmpty]){
-                        entry = [[WebHistory optionalSharedHistory] addItemForURL:URL];
-                        if (ptitle)
-                            [entry setTitle: ptitle];
+                        if (![[WebPreferences standardPreferences] historyIsFrozen]) {
+                            entry = [[WebHistory optionalSharedHistory] addItemForURL:URL];
+                            if (ptitle)
+                                [entry setTitle: ptitle];                            
+                        }
                         [self _addBackForwardItemClippedAtTarget:YES];
                     }