We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Starting from v53 on, Firefox can no longer browse html files inside a zip/jar file using this kind of URL: jar:file:///C:/xxx/yyy.zip!/index.html

  • 4 个回答
  • 13 人有此问题
  • 11 次查看
  • 最后回复者为 user1378671

more options

For years we are using zip-archives to store sets of linked html files with many 1000 of files. As these files are all read-only and we need to store many different versions of such sets we use the zip format. Till very recently we could browse the html in such zip archives using a local URL inside a zip file such as

  jar:file:///C:/xxx/yyy.zip!/index.html

After the automatic update to version 53 of Firebox this functionality has stopped working. With automatic updates just a few weeks before all was OK. So this change must have been introduced with version 53. So far Firefox was the only browser we know with this capability and and for us this is a core feature. Please get this functionality back. Thank you

For years we are using zip-archives to store sets of linked html files with many 1000 of files. As these files are all read-only and we need to store many different versions of such sets we use the zip format. Till very recently we could browse the html in such zip archives using a local URL inside a zip file such as jar:file:///C:/xxx/yyy.zip!/index.html After the automatic update to version 53 of Firebox this functionality has stopped working. With automatic updates just a few weeks before all was OK. So this change must have been introduced with version 53. So far Firefox was the only browser we know with this capability and and for us this is a core feature. Please get this functionality back. Thank you

所有回复 (4)

more options

Hi.

There are two network.jar prefs present on the about:config page that default to false. You can try to toggle them to true to see if that has effect.

This can also be caused by sandboxing content in the current release preventing to open local files this way.

Try to set security.sandbox.content.level = 0 on the about:config page.

Try to disable multi-process windows in Firefox to see if that has effect. You can disable multi-process windows in Firefox by setting these prefs to false on the about:config page.

  • browser.tabs.remote.autostart = false
  • browser.tabs.remote.autostart.2 = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Is it specific to the jar: protocol or do you have problems with the file:/// protocol as well?

In that case: do you run the NoScript extension? There is a known issue in Firefox 53 with turning on "Allow local links" for Trusted sites -- if you do that, then file:/// doesn't load. You can turn that off here:

NoScript "S" button > Options > Advanced > Trusted mini-tab

See attached screenshot

Or:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste nosc and pause while the list is filtered

(3) If the noscript.allowLocalLinks preference is bolded and "user set" to true, double-click it to restore the default value of false

In my test, the results are instant: when this is on/true, files do not load, as soon as I set it back to off/false, back to normal.

Could you test that?

Reference: https://forums.informaction.com/viewtopic.php?f=7&t=22761

more options

Thanks a lot to "cor-el" and "jscher2000". So far I never touched about:config.

To the proposals from "cor-el": I applied these changes but the problem still exist, even after starting Firefox anew.

To "jscher2000": Browsing local HTML files works on my PC without any problems. The problems is only when they are in a zip file. And when entering "nosc" or "noscript.allowLocalLinks" in about:config, no preferences with such a names are displayed. Don't now why.

more options

If you are accessing those files via Windows Explorer, try using File > Open File from the Menu Bar inside Firefox.

Hit the Alt key to reveal the Menu Bar, then hit F, then O, and navigate from there to get to the jar file.