gecko-dev/extensions
Boris Zbarsky 172598b4e2 Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not.  This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.

The changes to initing with an object made in this bug are OK for the following
reasons:

1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
   anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
..
auth Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in various files.r=benjamin 2016-01-28 10:35:00 -08:00
cookie Bug 1254299 - Remove SEC_NORMAL from extensions/. r=sicking 2016-03-07 14:01:26 -08:00
gio Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in various files.r=benjamin 2016-01-28 10:35:00 -08:00
permissions Bug 1196784 - imageset will use permissions.default.image. r=jdm 2016-03-01 23:39:00 +01:00
pref Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley 2016-03-18 10:48:38 -04:00
spellcheck Bug 1250453 - Add a body element to test_add_remove_dictionaries.xul to display the test results. r=myk 2016-03-14 16:29:26 +00:00
universalchardet Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE 2015-10-07 14:03:21 +02:00
build.mk Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
confvars.sh Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
moz.build Bug 1209391 - Remove build/unix/uniq.py. r=mshal 2015-09-30 11:51:46 +09:00
moz.configure Bug 1254410 - Include app-specific configure files according to --enable-application/--enable-project. r=chmanchester 2016-03-09 09:23:27 +09:00