gecko-dev/dom/bluetooth
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
..
bluedroid Bug 1223729 - HID Connection Implementation, r=jocelyn, sr=mrbkap 2015-12-04 11:58:55 +08:00
bluez Bug 1223729 - HID Connection Implementation, r=jocelyn, sr=mrbkap 2015-12-04 11:58:55 +08:00
common Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley 2016-03-18 10:48:38 -04:00
ipc Bug 1238842 - Add error codes to Gecko by following W3C spec. r=brsun 2016-02-24 17:56:22 +08:00
tests/marionette Bug 1240997 - Enable 3 Bluetooth marionette tests on B2G emulator-kk, r=btian 2016-01-28 14:24:00 +08:00
moz.build Bug 1223729 - HID Connection Implementation, r=jocelyn, sr=mrbkap 2015-12-04 11:58:55 +08:00