Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

FireFox 96.0.3 - HTML download link forced to open as text file

  • 2 回覆
  • 1 有這個問題
  • 9 次檢視
  • 最近回覆由 cor-el

more options

Issue Description: My support ticket holder is running FireFox 96.0.3 and has to process records from the state, these records are available through links similar to this (not publicly accessible):

https://powerschool.tulsaschools.org/admin/reportqueue/prreport.html?jobQueueCurrentId=<id>&repName=<filename>&repType=html

When the dialog box offers to open / save the file the open option lists the file as a text file (ignoring the type tag above) and offers to open the file in the system's default text editor.

Choosing the save option downloads the file and saves it as a .html file... loading the downloaded file has the expected result of displaying the Web page as intended.

Other browsers (Chrome, Edge) load both files as HTML as expected. Steps taken: Cache and Cookies have been cleared, FireFox has been refreshed, and I closed and re-opened FireFox.

How can I recover the ability to display this HTML file as a webpage through the open option and not as source (text)? Resources: File saved in the temp folder & opening as source: FireFoxReport-Open.png Expected result (and result in other browsers: FireFoxReportOpen-Expected.png - Being edited for privacy

'''Issue Description: ''' My support ticket holder is running FireFox 96.0.3 and has to process records from the state, these records are available through links similar to this (not publicly accessible): https://powerschool.tulsaschools.org/admin/reportqueue/prreport.html?jobQueueCurrentId=<id>&repName=<filename>&repType='''html''' When the dialog box offers to open / save the file the open option lists the file as a text file (ignoring the type tag above) and offers to open the file in the system's default text editor. Choosing the save option downloads the file and saves it as a .html file... loading the downloaded file has the expected result of displaying the Web page as intended. Other browsers (Chrome, Edge) load both files as HTML as expected. '''Steps taken:''' Cache and Cookies have been cleared, FireFox has been refreshed, and I closed and re-opened FireFox. How can I recover the ability to display this HTML file as a webpage through the open option and not as source (text)? '''Resources:''' File saved in the temp folder & opening as source: FireFoxReport-Open.png Expected result (and result in other browsers: FireFoxReportOpen-Expected.png - Being edited for privacy
附加的畫面擷圖

由 beaslmi 於 修改

所有回覆 (2)

more options
  • Snip* (found the edit link)

由 beaslmi 於 修改

more options

This might be about of how the server sends this file to Firefox. You can check the HTTP response headers in the Network Monitor.


You can try to set browser.download.sanitize_non_media_extensions = false on the about:config page to see if that makes Firefox show the correct file extension when you save the file.

You can open the about:config page via the location/address bar. You can click the button to "Accept the Risk and Continue".