Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Jul 2006 07:04:00 +0000 (07:04 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Jul 2006 07:04:00 +0000 (07:04 +0000)
        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
        Add application/xhtml+xml to the Accept header

        * WebView/WebFrame.m:
        (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
        to main resource requests.
        * English.lproj/StringsNotToBeLocalized.txt: Added new strings.

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

WebKit/ChangeLog
WebKit/English.lproj/StringsNotToBeLocalized.txt
WebKit/WebView/WebFrame.m

index 639630a..73f4d30 100644 (file)
@@ -1,3 +1,15 @@
+2006-07-09  Alexey Proskuryakov  <ap@nypop.com>
+
+        Reviewed by Darin.
+
+        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
+        Add application/xhtml+xml to the Accept header
+
+        * WebView/WebFrame.m:
+        (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
+        to main resource requests.
+        * English.lproj/StringsNotToBeLocalized.txt: Added new strings.
+
 2006-07-08  Darin Adler  <darin@apple.com>
 
         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
index 940ea93..fd9cd29 100644 (file)
 "mainFrameIcon"
 "mainFrameTitle"
 "mainFrameURL"
+"max-age=0"
 "missing_image"
 "multipart/x-mixed-replace"
 "must-revalidate"
 "text/x-vcalendar"
 "text/x-vcard"
 "text/x-vcf"
+"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
 "tiff"
 "txt"
 "u"
@@ -417,6 +419,7 @@ WebCoreSupport/WebFrameBridge.m:"width"
 WebInspector/WebInspector.m
 WebInspector/WebInspectorPanel.m:"control"
 WebInspector/WebInspectorPanel.m:"resize"
+WebView/WebFrame.m:"Accept"
 WebView/WebFrame.m:"Refresh"
 WebView/WebHTMLView.m:"%0.fpx"
 WebView/WebHTMLView.m:"'%@'"
index 6472b31..8cb17a0 100644 (file)
@@ -2775,6 +2775,9 @@ static CFAbsoluteTime _timeOfLastCompletedLoad;
         else
             [request setMainDocumentURL:[[[[self webView] mainFrame] dataSource] _URL]];
     }
+    
+    if (mainResource)
+        [request setValue:@"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" forHTTPHeaderField:@"Accept"];
 }
 
 - (BOOL)_isMainFrame