[wp-trac] [WordPress Trac] #61809: Firefox Does Not Recognize MIME Types

WordPress Trac noreply at wordpress.org
Fri Aug 2 08:34:45 UTC 2024


#61809: Firefox Does Not Recognize MIME Types
--------------------------+-----------------------------
 Reporter:  rubickscube   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  6.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 With documents hosted in the media library, Firefox does not automatically
 recognize when a file should be downloaded and when it should be rendered
 in the browser and defaults to rendering it in the browser, resulting in
 gibberish when selecting certain files types, such as doc and docx.

 The same issue does not exist in chromium-based browsers, which appear to
 make this distinction automatically. The bug appears to persist across
 desktop and mobile in the respective browsers.

 I've investigated the potential cause and it appears to be that without
 the MIME Type included in the header, Firefox automatically renders all
 documents in the browser and fails to determine the appropriate action for
 different file types. When going directly to the URL of a file in the
 media library, the MIME Type is absent from the header.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61809>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list