As announced earlier, we (mozilla) are working actively on the WebRTC spec. Part of this spec introduces getUserMedia that gives you access to the webcam. Little demo:

This is not in Firefox Nightly yet. Work in progress. Of course, what you don't see here is the security mechanism that will prevent any website to use your webcam.