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

搜索 | 用户支持

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

详细了解

Use offline 360 virtual tour

  • 5 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 Tony Reidsma

more options

Until the most recent update to firefox I used firefox to view 360 virtual tours offline on MAC and WINDOWS.

I updated firefox and now all I get is a black space where the 360 is supposed to be.

This is what the tour is supposed to look like: https://www.bigdutchmanusa.com/tours/broiler-breeder/

The attached is what comes up with the new version of firefox.

I have many clients who use these tours offline with firefox and I need to know how to fix this ASAP please.

Until the most recent update to firefox I used firefox to view 360 virtual tours offline on MAC and WINDOWS. I updated firefox and now all I get is a black space where the 360 is supposed to be. This is what the tour is supposed to look like: https://www.bigdutchmanusa.com/tours/broiler-breeder/ The attached is what comes up with the new version of firefox. I have many clients who use these tours offline with firefox and I need to know how to fix this ASAP please.
已附加屏幕截图

所有回复 (5)

more options

Here's the HTML files in case you want to test it LINK

more options

Hi Tony, I have a theory.

Firefox 68 contains a security patch which restricts the kinds of files that pages can load (and loading methods) when you open them from a file:// URL. This change was made to prevent exfiltration of valuable data within reach of a local page, as demonstrated in an available exploit.

Since you are setting up the object with a script, that may be subjected to higher restrictions than predefined objects.

Confirming the Theory

You can check for messages in Firefox's Web Console, part of the developer tools you can open in the lower part of the tab. Either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then reload the page in the upper part of the tab and watch for new messages. In particular, anything similar to the following is an important clue:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///<your URL> (Reason: CORS request not http).

Related article: https://developer.mozilla.org/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp

Workaround

You can roll back the patch as follows:

(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 or accepting the risk.

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

(3) Double-click the privacy.file_unique_origin preference to switch the value from true to false

To mitigate the vulnerability: If you save pages from untrusted sites in a separate folder, e.g., Downloads\Untrusted, then it would be difficult for an attacker to find any valuable content using local file links.

more options

Thank you very much for your reply.

My main issue is this....

My clients need to be able to play these tours offline, and they aren't going to know how, or want to do any special config's to make them work, so it's my job now to figure out how to make firefox work again... :-(

Attached are the alerts I'm getting.

more options

Unfortunately, those messages don't provide specific enough information. These are the messages I get:

(1) Fonts not loading

Many like this:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/<redacted>/Broiler%20and%20Breeder%20HTML/fonts/Oswald-RegularItalic.ttf

(2) WebGL texture not loading

Error: WebGL warning: texImage2D: Cross-origin elements require CORS.

These CORS (cross-origin) errors are due to the security patch in Firefox 68.


If I make the about:config preference change I mentioned before and reload the page (Ctrl+r), then I get warehouses.

I realize this is inconvenient for your clients to have to change a setting, but obviously you can blame it on Firefox fixing a security issue.


I thought I would compare in Chrome, and I get a popup that says "This virtual tour cannot be played from a local drive. Please upload it to the internet and try again."

I don't know whether that is due to my configuration, or something built-in to the library you're using.

more options

Thanks again.

FireFox has been the only browser that would let me play the tours offline, but I guess I now need to find a different solution.

I appreciate your help.