[Webkit-unassigned] [Bug 14824] New: +setMIMETypesShownAsHTML has no effect when loading local files (works in Safari 2, doesn't work in Safari 3)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 31 05:07:23 PDT 2007


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

           Summary: +setMIMETypesShownAsHTML has no effect when loading
                    local files (works in Safari 2, doesn't work in Safari
                    3)
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ozone at algorithm.com.au


I am attempting to load a filename on the local filesystem with an extension of
.php, e.g. foo.php.  While this filename has a .php extension, it has already
been processed with PHP and only contains normal HTML and no PHP commands.  A
WebView is able to load the PHP file and display it as HTML if the following
Objective-C code is used in an application:

[WebView setMIMETypesShownAsHTML:[[WebView MIMETypesShownAsHTML]]
arrayByAddingObject:@"text/php"]]

This works in Safari 2: WebKit interprets the .php file as HTML and renders it
correctly.  This does not work when Safari 3 is installed.  In Safari 3, the
.php file is viewed as plain text.

I would expect this behaviour to work as it did in Safari 2, since I have told
the WebView class to specifically view the text/php MIME type as HTML.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list