Inheritance from parent

That's actually the whole reason why the js block became disabled by default. There was someone who used the js block to fake the snap website, and collect user's passwords.