Fixes js attaching using once and context.

Related to #3569728

Merge request reports

Loading