Bug 1062631 - Fix buggy |browser_SignInToWebsite.js| test. r=Gijs
Bug 1062631 - Use SpecialPowers.wrapCallback for QI in more tests. r=bz

Otherwise the QI throws as soon as it tries to pass the IID into content code.
Bug 1062631 - Fix up content QI security check and tests. r=bz

This stuff is broken in a bunch of ways. The test isn't doing the right thing
because it's using SpecialPowers. When we pass the content object to
xpconnectArgument(), it gets wrapped in a SpecialPowers wrapper, so the check
succeeds, only to fail down the line when the QI method is actually invoked
with an IID (which we can't pass to content scopes anyway).

This whole security check is probably useless given the above, but let's be
safe, make it a bit more robust, and fix up the test while we're at it.
Bug 1062631 - Bail out in browser_cookies_exceptions when |observances| is empty. r=Gijs

This test says this case shouldn't happen, but it does. If this test included
an ok(false) at this point, it would be failing on tinderbox. This patch preserves
the existing behavior of bailing out, and just does it explicitly rather than with
an unreported exception. If this behavior is something that needs to be investigated,
please file a followup.
Bug 1062631 - Handle null originatingURI in browser-addons.js. r=Gijs
Bug 1062631 - Watch out for dead object proxies in gXPInstallObserver. r=Gijs

In browser_navigateaway2.js we end up with an XPCWrappedJS double-wrapped
DeadObjectProxy here, which triggers an exception when it's inserted into
the WeakMap.
Bug 1062631 - Handle null ownerDoc in browser.js and content.js for the benefit of browser_newtab_drag_drop_ext.js. r=ttaubert
Bug 1062631 - Stop leaking observers in search tests. r=Gijs
Bug 1062631 - Handle nuked window references in tilt tests. r=paul
Bug 1062631 - Remove exception swallowing code in NS_ScriptErrorReporter. r=bz

See bug 1062631 comment 0.