The "deprecated" status in the documentation is telling you that you shouldn't rely on those attributes being present in events which you receive, because the browser developers are planning to stop including them in events which they create.
However, in this case, you are simulating the part of the code that the browser would normally perform, in creating the event. Neither you nor the browser has any way to know what the code receiving that event is going to look for.
If you leave out the deprecated attributes, you are emulating a future browser, and the YouTube site you're testing on might not currently be ready to work with that future browser. You are better off setting all the attributes a current browser would set for that event.
Note that the developers of YouTube, while ultimately employed by the same company as the developers of Chrome, likely have very little connection. They will be updating their code to follow current best practices on a regular basis like any well-run development team, but that takes time, and has to be prioritised amongst everything else they're working on.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…