问题
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:
Here you can see it at the top of the screen.
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