Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link ...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Nov 2004 20:57:09 +0000 (20:57 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Nov 2004 20:57:09 +0000 (20:57 +0000)
Add "text/pdf" as an acceptable PDF MIME type.

        Reviewed by Chris.

        * WebView.subproj/WebDataSource.m:
        (+[WebDataSource _repTypesAllowImageTypeOmission:]):
        * WebView.subproj/WebFrameView.m:
        (+[WebFrameView _viewTypesAllowImageTypeOmission:]):

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

WebKit/ChangeLog
WebKit/WebView.subproj/WebDataSource.m
WebKit/WebView.subproj/WebFrameView.m

index e8a8a21..48fcf55 100644 (file)
@@ -1,3 +1,16 @@
+2004-11-09  Richard Williamson   <rjw@apple.com>
+
+        Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
+
+       Add "text/pdf" as an acceptable PDF MIME type.
+
+        Reviewed by Chris.
+
+        * WebView.subproj/WebDataSource.m:
+        (+[WebDataSource _repTypesAllowImageTypeOmission:]):
+        * WebView.subproj/WebFrameView.m:
+        (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
+
 2004-11-08  Chris Blumenberg  <cblu@apple.com>
 
        Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
 2004-11-08  Chris Blumenberg  <cblu@apple.com>
 
        Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
index dc406c1..f26471d 100644 (file)
             [WebTextRepresentation class], @"text/",
             [WebTextRepresentation class], @"application/x-javascript",
 #ifndef OMIT_TIGER_FEATURES
             [WebTextRepresentation class], @"text/",
             [WebTextRepresentation class], @"application/x-javascript",
 #ifndef OMIT_TIGER_FEATURES
+            [WebPDFRepresentation class], @"text/pdf",
             [WebPDFRepresentation class], @"application/pdf",
 #endif
             nil];
             [WebPDFRepresentation class], @"application/pdf",
 #endif
             nil];
index fb3db6f..21f232e 100644 (file)
@@ -231,6 +231,7 @@ static NSMutableDictionary *viewTypes;
             [WebTextView class], @"text/",
             [WebTextView class], @"application/x-javascript",
 #ifndef OMIT_TIGER_FEATURES
             [WebTextView class], @"text/",
             [WebTextView class], @"application/x-javascript",
 #ifndef OMIT_TIGER_FEATURES
+            [WebPDFView class], @"text/pdf",
             [WebPDFView class], @"application/pdf",
 #endif
             nil];
             [WebPDFView class], @"application/pdf",
 #endif
             nil];