Firefox:如何在非安全页面上记住媒体查询设置?


2

下面的图片几乎说明了所有内容,但我正在添加此文本,因此更容易搜索。“记住这个决定”不起作用。

回复是“您与此网站的连接不安全......”

您与此站点的连接不安全。

有没有办法可以禁用它?我正在尝试在个人服务器上进行一些开发,并且一次又一次地验证我想要使用我的麦克风是一个巨大的麻烦。关于:配置的东西?

Answers:


2

如果不更改Firefox的代码,则无法禁用此保护。
控制此保护的代码:

// Disable the permanent 'Allow' action if the connection isn't secure, or for
// screen/audio sharing (because we can't guess which window the user wants to
// share without prompting).
let reasonForNoPermanentAllow = "";
if (sharingScreen) {
  reasonForNoPermanentAllow = "getUserMedia.reasonForNoPermanentAllow.screen3";
} else if (sharingAudio) {
  reasonForNoPermanentAllow = "getUserMedia.reasonForNoPermanentAllow.audio";
} else if (!aRequest.secure) {
  reasonForNoPermanentAllow = "getUserMedia.reasonForNoPermanentAllow.insecure";
}

链接到源代码


该死。谢谢你的信息。令人惊讶的是,你完全知道代码行,我很高兴你分享它们。
Seph Reed
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.