搜尋 Mozilla 技術支援網站

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

了解更多

Open local html file on android

  • 7 回覆
  • 5 有這個問題
  • 4772 次檢視
  • 最近回覆由 Hello Martin

more options

Hi, how can I open a local html file with firefox 86 on android 9? It's like firefox no longer registers itself as a valid program/association to open html files.

What I've tried so far: 1) If I type file:/// in the URL bar, nothing happens. It works on Opera. 2) If I go to a file manager, select an html file, and click "Open with", firefox doesn't show up; Chrome and Opera do. 3) If I go to the android settings > applications > firefox > associations, firefox shows no associated file types at all.

The HTML language isn't only used on the Internet, it's also used for local documents, please allow us to use firefox to view our local html files.

Hi, how can I open a local html file with firefox 86 on android 9? It's like firefox no longer registers itself as a valid program/association to open html files. What I've tried so far: 1) If I type file:/// in the URL bar, nothing happens. It works on Opera. 2) If I go to a file manager, select an html file, and click "Open with", firefox doesn't show up; Chrome and Opera do. 3) If I go to the android settings > applications > firefox > associations, firefox shows no associated file types at all. The HTML language isn't only used on the Internet, it's also used for local documents, please allow us to use firefox to view our local html files.

被選擇的解決方法

Hi

This option is currently unavailable in Firefox for Android. It may be included in a future update.

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options

選擇的解決方法

Hi

This option is currently unavailable in Firefox for Android. It may be included in a future update.

more options

Thank you, this saved me a lot of time of trying in vain!

I'll have to use Opera for this use case in the meantime then; hopefully it won't be long before it's supported in Firefox once more.

more options

I use File Manger Plus (recommended). You can set it to open HTML/txt in Firefox as default app. This is the only way I've manged to make it work.

more options

Seburo said

Hi This option is currently unavailable in Firefox for Android. It may be included in a future update.

Which future update? Because I still don't see it

more options

This used to work in earlier versions of Firefox for Android. I have a web app (that I wrote, all javascript) that is installed on my phone. I didn't use it for a few months, and then when I went to use it, I got one brief flash of some kind of permission error, and then a blank page... and starting again from the saved bookmark just gives me a blank page without even the courtesy of an error message.

This is a serious regression, to not be able to access file: URLs.

more options

Don't know if the option is supported already, but I've got the same problem in Firefox ver. 89.1.1 Got it to work by enabling "Remote debugging via USB" in Android's Firefox and connecting it to the Firefox in my PC. Then I inspected the only open tab. On the phone there was the URL of my local HTML file in the address bar, but on the PC it said "about:blank". I went ahead and typed the URL in my PC and hit Enter and then it finally loaded the HTML file on the phone. Sadly, it doesn't work after closing and re-opening the tab. Guess I will just try to never close that tab.

more options

Terje Havnegjerde said

I use File Manger Plus (recommended). You can set it to open HTML/txt in Firefox as default app. This is the only way I've manged to make it work.

This worked for me. Thanks. Obviously they mean File Manager Plus...

由 Hello Martin 於 修改