google/YouTube probably knows who is watching what from where and when unless you use tor or a vpn with a browser that leaves no traces, leaks no information (probably not the default firefox)
but youtube in firefox having access to what you type on another app? i don't think that's possible