Bug 1056882: no cross-origin imports, r=kgrandon

#23311 was reverted due to linter errors.
This is the fix