添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Plugin - InlineColumnConfiguration
  • Plugin - LinkedCustomFields
  • Plugin - MantisTouchRedirect
  • Plugin - RecurrCall
  • Plugin - RelatedIssuesExport
  • Plugin - Reminder
  • Plugin - Tasks
  • Plugin - Time Tracking
  • View Issue Details

    ID Project Category View Status Last Update
    0026738 mantisbt attachments public 2020-02-25 05:09
    Reporter webaware Assigned To
    Priority normal Severity minor Reproducibility always
    Status new Resolution open
    Product Version 2.23.0
    Summary 0026738: WebP attachments are not forced to display inline
    Description

    file_download.php builds a local array of mime types that will be forced to display inline: $t_mime_force_inline

    This array does not include 'image/webp', and cannot be overridden, so WebP images are forced to download. It would be better to allow them to display inline as per other image formats. Of the popular web browsers, only IE11 and Safari browsers cannot display WebP images, so I reckon it's no risk to allow WebP images to display inline always.

    https://caniuse.com/#search=webp

    If it is considered a risk, then perhaps $t_mime_force_inline can be made a configuration item that can be overridden in local configs for people who don't care about IE11 and Safari.

    Steps To Reproduce
    • attach a WebP image to a bug
    • view the bug, seeing the image expanded inline
    • click on the image and note that you are forced to download it
    Tags No tags attached.