Bug
1838484 - Don't create module loader for template contents owner document r=smaug
When I added ScriptLoader::SetGlobalObject I didn't realise that more than one
document could share the same global object. It turns out that this happens for
these template contents owner documents and this causes the assert that checks
that right module loader is associated with the global to fail because it finds the
other document's module loader.
As far as I can tell we don't need a module load for these documents so we can
skip this call that creates it.
For some reason the test times out on Android and I wasn't able to work out why
so I didn't enable it there.
Differential Revision: https://phabricator.services.mozilla.com/
D181267