I just landed bug 673252 on mozilla-inbound. This lets you disable those
annoying +++DOMWINDOW and +++DOCSHELL printfs by defining MOZ_QUIET in
your environment.
To be concrete, you just need to run:
$ MOZ_QUIET=1 dist/bin/firefox
or alternatively put
export MOZ_QUIET=1
in your ~/.bashrc.