Bug 1033581: Don't worry about the compartment of the owning element for a script's JS code. r=bholley