Don't include substitute data URLs in global history redirect chains
[WebKit-https.git] / WebKit / mac / WebCoreSupport / WebFrameLoaderClient.mm
index 95ac174..76c69f6 100644 (file)
@@ -792,13 +792,12 @@ void WebFrameLoaderClient::updateGlobalHistory()
                                           withTitle:loader->title()
                                              method:loader->originalRequestCopy().httpMethod()
                                          wasFailure:loader->urlForHistoryReflectsFailure()];
-
-    updateGlobalHistoryRedirectLinks();
 }
 
 void WebFrameLoaderClient::updateGlobalHistoryRedirectLinks()
 {
     DocumentLoader* loader = core(m_webFrame.get())->loader()->documentLoader();
+    ASSERT(loader->unreachableURL().isEmpty());
 
     if (!loader->clientRedirectSourceForHistory().isNull()) {
         if (WebHistoryItem *item = [[WebHistory optionalSharedHistory] _itemForURLString:loader->clientRedirectSourceForHistory()])