搜尋 Mozilla 技術支援網站

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

了解更多

Cannot view source code of http websites

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

more options

When I press CTRL + U on a http website to view the source code, it comes up with an error message saying that there is a potential security risk ahead. Even if I try to change the https that Firefox has recently started to insert in view-source URLs, it still doesn't allow me to view the source code of the website.

Firefox is the only browser that I know of that does this. Google Chrome allows you to view the website's source code, even if the website's URL begins with http. This hasn't always been the case, but it has been the case since I last updated Firefox.

When I press CTRL + U on a http website to view the source code, it comes up with an error message saying that there is a potential security risk ahead. Even if I try to change the https that Firefox has recently started to insert in view-source URLs, it still doesn't allow me to view the source code of the website. Firefox is the only browser that I know of that does this. Google Chrome allows you to view the website's source code, even if the website's URL begins with http. This hasn't always been the case, but it has been the case since I last updated Firefox.

所有回覆 (1)

more options

Do you have enabled "Always use private browsing mode" as this is a possible cause of this bug ?

Possible workaround for now:

See:

  • 1731419 - Cannot view source of http-only page (in private browsing mode)

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)