There's a better way to create null principals than do_CreateInstance("@mozilla.org/nullprincipal;1"). Let's do that and save ourselves some XPCOM overhead.