How to Hide Firefox Camera Icon Overlay in Windows

早过忘川 提交于 2021-02-07 12:39:49

问题


I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera.

The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using mozGetUserMedia:

enter image description here

Here you can see it at the top of the screen. enter image description here

I have tried searching through the options on the

about:config

page, but I can't find any setting that disables this. It only shows up on Windows, and not OS X.

How can I disable this icon?


回答1:


Unfortunately, the only way to do this is to write a custom add-on it seems. I just encountered a similar issue where I had to remove the overlay for an embedded application.

You can download the add-on here.

Note: This add-on should only be used if you have valid use case for it (like in these two cases), as the developers introduced these privacy and security enhancing features for a reason.




回答2:


In the about:config settings, set privacy.webrtc.legacyGlobalIndicator to false.




回答3:


You can also add this to UserChrome.css

#webrtcIndicator {
  display: none;
}

Source: reddit




回答4:


(Settings) Hamburger Menu -> Help -> TroubleShooting -> Profile Folder -> Open Folder -> create folder chrome -> inside chrome create userChrome.css -> contents of userChrome.css:

#webrtcIndicator {
  display: none;
}

Then //about:config Then flip toolkit.legacyUserProfileCustomizations.stylesheets to true

Restart Firefox

No wonder they are losing marketshare with such user-hostile behavior



来源:https://stackoverflow.com/questions/30852775/how-to-hide-firefox-camera-icon-overlay-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!