Bobby Holley
49e92d12a3
Bug 914325 - Leave ourselves some room to make the call into chrome. r=luke
2013-09-11 15:24:09 -07:00
Nicholas Nethercote
9d1d4e73b0
Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 2b2a1b2667d6562fcf803ec48b4a8c10fdd519a3
2013-08-27 16:24:51 -07:00
Nikhil Marathe
f10d854d1c
Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey
2013-09-09 14:58:29 -07:00
Ehsan Akhgari
13a9b30ce0
Bug 913830 - Remove more unneeded #includes from the xpconnect IDL files; r=bholley
2013-09-09 22:37:37 +02:00
Ed Morley
5eb2bdb5c4
Backed out changeset 5c9f3fb14995 (bug 910517) for Android talos failures
...
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-09 16:07:48 +01:00
Nicholas Nethercote
85d3324d5e
Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 76bf96ce8d6e16c8573584d9e8e70c80371f66eb
2013-08-27 16:24:51 -07:00
Nicholas Nethercote
3e6eda137c
Bug 910771 (part 1) - Create js/Tracer.h and gc/Tracer.cpp. r=terrence.
2013-09-02 22:01:18 -07:00
Kyle Huey
27e346e22d
Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz
2013-09-08 20:29:21 -07:00
Kyle Huey
d423a6350e
Bug 911258: Part 4 - Refactor exception implementations. r=bz
2013-09-08 20:28:50 -07:00
Kyle Huey
e6f82a681d
Bug 911258: Part 3 - Convert exceptions to WebIDL. r=bz
2013-09-08 20:28:49 -07:00
Kyle Huey
61aeeecde4
Bug 911258: Part 1 - Remove nsIExceptionService/Manager usage. r=bholley
2013-09-08 20:28:49 -07:00
Kyle Huey
cf498d852b
Bug 910924: Give workers an nsIGlobalObject. r=bent,bholley
2013-09-08 20:28:48 -07:00
Kyle Huey
abebd382da
Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8
2013-09-08 20:28:48 -07:00
Michael Harrison
e44a198aba
Bug 909768 - Replace idl::GeoPositionOptions with dom::PositionOptions. r=jdm
2013-09-06 16:44:26 -04:00
Andrew McCreight
3b16db1fc8
Bug 911233, part 1 - Minor cycle collector cleanups. r=smaug
2013-09-06 13:40:34 -07:00
Ehsan Akhgari
36280b9569
Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley
2013-09-06 13:50:24 -04:00
Bobby Holley
6950cfb037
Bug 905364 - Force the SafeJSContext to fire up in xpcshell. r=bz
2013-09-06 11:35:12 -07:00
Bobby Holley
3d1a1af697
Bug 905364 - Don't call into AllowXULXBLForPrincipal during SafeJSContext initialization. r=bz
...
In the old world, we'd be saved by initializing the SafeJSContext early enough
that we'd short-circuit in the nsContentUtils::IsInitialized() check. That's not
the case anymore, so let's hande this explicitly.
2013-09-06 11:35:11 -07:00
Jason Orendorff
5aead903ea
Bug 893186, part 5 - Delete JS_GetPropertyAttributes and many similar APIs; remove half a dozen methods from JS::Class. r=Waldo.
...
--HG--
extra : rebase_source : 1f4a01938b06b66ef855f9b654f098b4819b1390
2013-09-06 12:05:30 -05:00
Jason Orendorff
511753b3b6
Bug 893186, part 1 - Fix some code in xpconnect to use JS_HasProperty instead of JS_GetPropertyAttributes. r=bholley.
...
--HG--
extra : rebase_source : 2a9350bfd887fb6000d4f558f79c1a0dc8483efb
2013-09-06 12:02:51 -05:00
Bobby Holley
4b28d25fe5
Bug 912322 - Stop making XBL methods available to the web. r=bz
2013-09-06 09:12:56 -07:00
Bobby Holley
686a940c6e
Bug 912322 - Fix tests. r=bz
...
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-06 09:12:56 -07:00
Bobby Holley
4569f739ee
Bug 912322 - Update semantics of IsChromeOrXBL to return true for remote XUL. r=bz
...
This brings us into alignment with nsContentUtils::IsCallerXBL(). We also take
the opportunity to clean up some comments and invariants that changed with the
removal of the XBL bit.
2013-09-06 09:12:56 -07:00
Bobby Holley
74a8289887
Bug 912322 - Sync pref from reftest-cmdline.js to bootstrap.js. r=jgriffin
2013-09-06 09:12:55 -07:00
Jim Blandy
28ebe45d1b
Bug 899757: Make nsServerSocket::InitWithAddress provide more detailed error results. r=mayhemer, r=ted
...
I looked through the NSPR socket creation functions that InitWithAddress
uses to see which errors they could return, and placed appropriate comments
in ErrorAccordingToNSPR.
The test coverage is not great; in particular, I wasn't able to find a way
to elicit "address in use" errors from Windows (although I could from
Linux); the web says that Windows is much more relaxed about binding
listening sockets than Unix derivatives. I'm interested in suggestions.
2013-09-06 08:06:22 -07:00
Jim Blandy
742666beae
Bug 899757: Distinguish PR_ADDRESS_NOT_SUPPORTED_ERROR from other network failures. r=mayhemer
...
I broke out this this change on its own, because it seemed to require some care:
PR_ADDRESS_NOT_SUPPORTED_ERROR used to be lumped in with several other NSPR
error codes and reported as NS_ERROR_CONNECTION_REFUSED; and a dumb grep shows
that the NS_ERROR_ is widely checked for. Introducing the distinction might
require the new NS_ERROR_SOCKET_ADDRESS_NOT_SUPPORTED value to be checked for
everywhere that currently checks for NS_ERROR_CONNECTION_REFUSED.
But that seems unlikely to be necessary: first of all, it shouldn't really
be possible, via the XPCOM interface, to force this error path to occur at
present: the components' implementations are in complete control over which
socket address types get used. I also did a Try push with a call to
NS_ABORT if a PR_ADDRESS_NOT_SUPPORTED_ERROR ever flows through
ErrorAccordingToNSPR; there were no crashes.
But if that's so, then why introduce the new error code at all? A later
patch adds support for Unix-domain sockets, a type of socket address which
is *not* supported on non-Unix systems. In that case, a distinct error code
will help people diagnose problems quickly.
2013-09-06 08:06:22 -07:00
Ms2ger
4abf38566a
Merge m-c to inbound.
2013-09-06 12:31:58 +02:00
Ms2ger
84672db888
Bug 909953 - Introduce a HTMLAllCollection class; r=smaug
2013-09-06 08:41:42 +02:00
Nicholas Nethercote
3a2ab0db3f
Bug 912411 (part 2) - Move JSID_{VOID,EMPTY}HANDLE from jsapi.{h,cpp} to Id.{h,cpp}. r=luke.
...
--HG--
extra : rebase_source : 5fb68bf5079e3261fdca6cb99717d3a502c878f3
2013-09-05 16:08:57 -07:00
Nicholas Nethercote
6ed33677cf
Bug 912411 (part 1) - Removed some jsapi.h includes in Gecko. r=bz.
...
--HG--
extra : rebase_source : c0b73945bcd6978a616fd846e33e69fae9162d78
2013-09-05 16:08:06 -07:00
Robert O'Callahan
33cdb42706
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Phil Ringnalda
ad36ee41a9
Back out 4537337759b7 (bug 910517) because nobody expects the talos inquisition
...
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-04 22:42:06 -07:00
Phil Ringnalda
82a82c7965
Back out e46601eb7279:533dc9ea3301 (bug 912322) for Android reftest bustage
2013-09-04 21:49:16 -07:00
Nicholas Nethercote
43ad5b4dcf
Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 9142be547b2eeef37a8073a710ce23070f98cf65
2013-08-27 16:24:51 -07:00
Bobby Holley
5d00a02f31
Bug 912322 - Stop making XBL methods available to the web. r=bz
2013-09-04 19:05:52 -07:00
Bobby Holley
4f18e183bb
Bug 912322 - Fix tests. r=bz
...
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-04 19:05:51 -07:00
Bobby Holley
99eb14ce12
Bug 912322 - Update semantics of IsChromeOrXBL to return true for remote XUL. r=bz
...
This brings us into alignment with nsContentUtils::IsCallerXBL(). We also take
the opportunity to clean up some comments and invariants that changed with the
removal of the XBL bit.
2013-09-04 19:05:51 -07:00
Mike Hommey
f1cf3b4238
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Bobby Holley
b8f437054d
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
401b0ffa0b
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-09-04 14:06:56 -07:00
Bobby Holley
6d001e824e
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-09-04 14:06:56 -07:00
Bobby Holley
be3b15d07d
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-09-04 14:06:55 -07:00
Bobby Holley
9ed5f11e8d
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-09-04 14:06:54 -07:00
Bobby Holley
8abcb2d562
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-09-04 14:06:54 -07:00
Bobby Holley
5cfc3855a5
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-09-04 14:06:54 -07:00
Ed Morley
17f2f82cdb
Merge mozilla-central and inbound
2013-09-04 16:53:03 +01:00
Gabor Krizsanits
b28e26644b
Bug 892203 - TextEncoder and TextDecoder for sandbox. r=bholley
2013-09-04 12:18:28 +02:00
Gabor Krizsanits
a58d3406fb
Bug 892203 - DOMConstructors for SandboxOptions. r=bholley
2013-09-04 12:16:04 +02:00
Gabor Krizsanits
398aaa2927
Bug 892203 - Minor cleanups in sandbox.cpp. r=bholley
2013-09-04 12:15:50 +02:00
Felipe Gomes
5de1caaed5
Bug 899348 - Dispatch an event when an out-of-process browser crashes and display an error page when that occurs. r=bz
2013-09-03 19:11:22 -03:00
Gregory Szorc
7693c5688d
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Phil Ringnalda
271703650a
Back out ce03cc2994aa:ae9f95fc1136 (bug 896797) for SpiderMonkey shell build bustage
...
CLOSED TREE
2013-09-03 23:21:30 -07:00
Gregory Szorc
f10d205e39
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Phil Ringnalda
88db37da09
Back out cc6f66e761d8 (bug 896797) for Windows build bustage
...
CLOSED TREE
2013-09-03 21:55:21 -07:00
Gregory Szorc
bceea37cd9
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Nicholas Nethercote
1a9de23d54
Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 2250064bdd316ffeb8126da749bdf94ab9da4418
2013-09-01 21:51:02 -07:00
Nicholas Nethercote
191ed08f6a
Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
...
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
Bobby Holley
1347c7fba1
Bug 910863 - Skip firing the operation callback if a debugger is attached. r=mrbkap,glandium
2013-08-30 09:46:02 -07:00
Masatoshi Kimura
b56a94440f
Bug 910751 - Hide UserDataHandler from content. r=smaug
2013-08-30 20:39:37 +09:00
Olli Pettay
414342daf2
Bug 910797, make Event.isTrusted to work in workers, r=khuey
2013-08-30 12:47:19 +03:00
Bobby Holley
e5550b2f93
Bug 908019 - Split up watchdog tests to run in parallel. r=mrbkap
...
This speeds up local xpcshell-test runs by ~6 seconds.
2013-08-29 09:32:25 -07:00
Nicholas Nethercote
9e88f47219
Bug 910109 (part 2) - Make jswrapper.h not depend on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 138e93b074691e9da0feab9cd24e149f4d5edf6a
2013-08-28 17:24:34 -07:00
Nicholas Nethercote
57b389b877
Bug 910109 (part 1) - Make jsproxy.h not depend on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : bc2fa911e3a7feaafb778b756994e126257585a7
2013-08-28 17:20:24 -07:00
Bobby Holley
a899450297
Bug 732665 - Tests. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
756469507b
Bug 732665 - Use separate stack depths for XPConnect JS. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
83137c28bf
Bug 732665 - Clean up and clarify the stack sizing logic. r=luke
...
The only change in behavior here is that we give the osx check higher precedence
than the DEBUG check, meaning that we end up with 7MB stacks on osx debug rather
than 4MB stacks. But this seems strictly better given the logic involved here.
2013-08-28 11:04:16 -07:00
Bobby Holley
4819690f50
Bug 732665 - Disable a few test on mac. r=tbsaunde,me
...
These tests trigger very slow infinite recursion in the status quo. With the
existing stack quotas, they always (or usually) hit the native stack limit
before the test times out, causing them to be green on tinderbox. But when
we bump the debug mac stack limit, they end up timing out. We have bugs on
file for the various issues, but let's not let them block this landing.
2013-08-28 11:04:15 -07:00
Boris Zbarsky
be1711a990
Bug 909645 part 4. Don't include ipdl headers in DesktopNotification.h. r=ms2ger,glandium
2013-08-28 00:14:57 -04:00
Brian O'Keefe
4f68eb9b02
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Nicholas Nethercote
d262cece7e
Bug 831193 (part 3) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in XPCJSRuntime.cpp. r=terrence.
...
--HG--
extra : rebase_source : 09df0ea5b3bb546e5c75d59d170f54124d834b4d
2013-01-15 21:28:35 -08:00
Nicholas Nethercote
3f5d413d90
Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
...
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ryan VanderMeulen
3972d92239
Merge m-c to inbound on a CLOSED TREE.
2013-08-27 22:40:49 -04:00
Ryan VanderMeulen
2f3de4dea0
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Andrew McCreight
69fc8f5296
Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug,bholley,bz
2013-08-27 15:39:02 -07:00
Bobby Holley
6274710e79
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
cff26b12ce
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
05b0b5e0f2
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-08-27 15:21:39 -07:00
Bobby Holley
5813ab4158
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-08-27 15:21:38 -07:00
Bobby Holley
c93dc7b4a1
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-08-27 15:21:38 -07:00
Bobby Holley
add3235319
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-08-27 15:21:37 -07:00
Bobby Holley
b7966edcf1
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-08-27 15:21:37 -07:00
Justin Lebar
a12ca3e4e8
Bug 909514 - Include <new> before mozilla::Maybe (and move Maybe into mfbt/Maybe.h). r=waldo
...
--HG--
rename : mfbt/Util.h => mfbt/Maybe.h
2013-08-27 15:10:28 -07:00
Szu-Yu Chen [:aknow]
063d6ffcc7
Bug 882983 - Part 1: Add ota status event (idl, webidl). r=hsinyi, sr=smaug
2013-08-27 08:25:53 -04:00
Mike Hordecki
368c68a39e
Bug 908918 - Fix an XPConnect typo. r=bholley
2013-08-26 11:28:26 -04:00
Geoff Brown
220e4a5f85
Bug 865006 - (4) Add more xpcshell tests for android; r=jmaher
2013-08-25 10:58:31 -06:00
Boris Zbarsky
f80a9893ef
Bug 908576 part 6. Expose just a NativePropertyHooks pointer, not the object itself, so we can forward-declare it in bindings headers. r=smaug
2013-08-23 22:42:41 -04:00
Boris Zbarsky
b89190851a
Bug 908530 part 3. Stop including xpcpublic.h in DOMJSProxyHandler.h. r=khuey
2013-08-23 22:42:40 -04:00
Boris Zbarsky
7da23c2946
Bug 908530 part 2. Fix all the places that are bootlegging things (esp nsIURI) via xpcpublic.h. r=khuey
2013-08-23 22:42:40 -04:00
Boris Zbarsky
253a8c8d80
Bug 908351. Stop over-including DOMJSClass.h, so we don't rebuild as much when PrototypeList.h changes. We do this by factoring out the slot macros into a separate header and including that. r=khuey
2013-08-23 22:42:39 -04:00
Gabor Krizsanits
73d41a24b4
Bug 886237 - follow-up part2: Comment formatting in sandbox.cpp. r=bholley
2013-08-23 09:56:03 +02:00
Gabor Krizsanits
be6a2be548
Bug 886237 - follow-up part1: Moving Sandbox/XPCComponents helpers into namespace xpc. r=bholley
2013-08-23 09:55:47 +02:00
Kyle Huey
450b0c5f42
Bug 903772: Part 9 - Use a different class in the weakmap test now that the implementation of TextDecoder has changed. r=peterv
2013-08-22 22:17:10 -07:00
Kyle Huey
8edf4de9ad
Bug 903772: Part 4 - Harmonize main thread and worker dictionary implementations. r=peterv
2013-08-22 22:17:09 -07:00
Kyle Huey
de0ee30e74
Bug 903772: Part 3 - Refactor GlobalObject. r=peterv
2013-08-22 22:17:08 -07:00
Nicholas Nethercote
d208a00ee8
Bug 905017 (part 3, attempt 2) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
...
--HG--
extra : rebase_source : 8226a31c4f2a286ba843da616b1061ca034a5d41
2013-08-19 23:45:26 -07:00
Nicholas Nethercote
9ce6c39a8f
Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
...
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : 2699588c63ef58ab84bc8c63adc0487648af3834
2013-08-19 23:43:47 -07:00
Bobby Holley
4e5093e6fa
Bug 903891 - Default the iid to nsISupports in NativeInterface2JSObject, and assert |Interface| when getting an XPCWrappedNative. r=mrbkap
2013-08-22 15:51:35 -07:00
Bobby Holley
222832d3b4
Bug 891891 - Print diagnostics when an XPCWrappedJS is QI-ed off-main-thread. r=mrbkap
...
Let's try to figure out which XPCWrappedJS is causing this. I've filed a reminder
for myself to back this out by sept 3.
2013-08-22 12:40:29 -07:00
Gabor Krizsanits
56184ed022
Bug 886237 - Splitting up XPCComponents. r=bholley
2013-08-22 08:26:37 +02:00
Ms2ger
8bfa279bb1
Merge m-c to inbound
2013-08-22 10:38:48 +02:00
Ms2ger
87ae95251c
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
f79ae70d10
Backout changesets 7e6fb33fdf22:c85332df4320 (bug 905017) for windows bustage.
2013-08-22 10:16:30 +02:00
Ms2ger
4922ccbc0a
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
dba42e4001
Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg
2013-08-22 08:56:00 +02:00
Ms2ger
4d968c40e1
Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps
2013-08-22 08:55:59 +02:00
Ms2ger
3a227519f8
Bug 903796 - Remove remaining traces of GeoPositionError; r=jst
2013-08-22 08:30:28 +02:00
Bobby Holley
ab06fa04af
Bug 907508 - Provide a mechanism for adding extra slots for XPConnect globals. r=bz
...
mhordecki needs this in bug 898559.
2013-08-20 21:21:01 -07:00
Bobby Holley
12e2bef827
Bug 907508 - Define the slot count for xpconnect and worker globals in terms of the slots defined in DOMJSClass.h. r=bz
2013-08-20 21:21:00 -07:00
Bobby Holley
137154e93e
Bug 907508 - Drop the number of slots on XPConnect globals from 2 to 1. r=bz
...
In the old world, XPConnect globals had one reserved slot, which was used to
store a private pointer to the XPCWrappedNativeScope.
Then, in the new DOM bindings landing (bug 740069), we added two slots, one
for DOM_GLOBAL_OBJECT_SLOT, and one for DOM_PROTOTYPE_SLOT.
Then, in bug 761707, we removed DOM_GLOBAL_OBJECT_SLOT, but the slot count
remained at 3.
Then, in bug 797821, we stopped storing the XPCWrappedNativeScope in the slot
on the global, and dropped the XPConnect global count from 3 to 2.
Given the above, we can safely drop it to 1, here. It's easy to check that
this is correct, because reserved slots for globals have a different offset,
which is JSCLASS_GLOBAL_SLOT_COUNT. And according to mxr, the only thing
defined in terms of that is DOM_PROTOTYPE_SLOT (which takes the same value).
This means that all subsequent slots on the global are unused.
2013-08-20 21:21:00 -07:00
Nicholas Nethercote
c8e2369441
Bug 905017 (part 3) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
...
--HG--
extra : rebase_source : 8322f1c96b95685912375484172d47f53107947f
2013-08-19 23:45:26 -07:00
Ms2ger
6004ebc69f
Backout changeset b43d38c5c456 for build bustage.
2013-08-22 09:00:37 +02:00
Andrew McCreight
ff5720d8c6
Bug 614238 - Dynamically check that classes QI to their own participant. r=smaug
2013-08-19 13:49:58 -07:00
Gabor Krizsanits
f64006605c
Bug 886237 - Splitting up XPCComponents. r=bholley
2013-08-22 08:26:37 +02:00
Nicholas Nethercote
42ccf38dcd
Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
...
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Wes Kocher
5c4403a824
Backed out changeset cfecdf10dcba (bug 614238) for b2g debug bustage on a CLOSED TREE
2013-08-20 15:47:28 -07:00
Andrew McCreight
9bccf9d325
Bug 614238 - Dynamically check that classes QI to their own participant. r=smaug
2013-08-19 13:49:58 -07:00
Andrew McCreight
eb231a60ec
Bug 886176 - Clean up XPCWN's participant. r=smaug
2013-08-19 10:04:03 -07:00
Andrew McCreight
ccacde7823
Backed out changeset 365053e73efa for build bustage on this CLOSED TREE.
2013-08-27 09:54:01 -07:00
Andrew McCreight
f74cd40dfd
Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug
2013-08-20 14:19:33 -07:00
Ted Mielczarek
bcb2ff226d
bug 842728 - init Breakpad from C++ in xpcshell, remove ability to init from script. r=bholley,gps
2013-08-15 14:48:12 -04:00
Masatoshi Kimura
431087ee79
Bug 856424 - Unpref Components for content. r=bholley
2013-08-20 02:44:31 +09:00
Gabor Krizsanits
5861d82dd2
Bug 877673 - Part2: Export helpers for sandbox. r=bholley
2013-08-19 11:46:36 +02:00
Phil Ringnalda
5ce9f052f8
Back out c39d60483813 (bug 905364) for xpcshell and b2g desktop bustage
2013-08-16 22:38:48 -07:00
Bobby Holley
1079a53da6
Bug 905364 - Stop using the SafeJSContext in nsScriptSecurityManager::Init. r=mrbkap
...
With this patch, I've confirmed that we instantiate the SafeJSContext much later
in startup, during nsAppStartupNotifier::Observe (which ends up invoking an
XPCWrappedJS). As such, this should solve a number of our startup ordering woes.
2013-08-16 20:28:17 -07:00
Luke Wagner
d781c80896
Bug 902506 - OdinMonkey: fix/enhance asm.js memory reporting (r=njn)
...
--HG--
extra : rebase_source : eafb0f56e7ed851e2e62a2ba908e63ea273c1c77
2013-08-08 21:38:42 -05:00
Tom Schuster
991ead8d61
Bug 884410 - Remove JS_ValueToECMAInt32 and replace it with JS::ToInt32. r=terrence
2013-08-15 17:41:51 -04:00
Andrew McCreight
2a9c479be7
Bug 902607 - Removed unused functions in nsXPConnect. r=bholley
2013-08-09 10:31:07 -07:00
Nikhil Marathe
eec9663dcd
Bug 906080 - Assert main thread in isChromeOrXBL(). r=khuey
...
--HG--
extra : rebase_source : e3cebe6ad88ce7f418501365efdca2cf72dfff83
2013-08-16 09:14:40 -07:00
Ehsan Akhgari
fcb950e309
Backed out changeset 3d9664b78ca7 (bug 884410) because of build bustage on a CLOSED TREE
2013-08-15 18:20:00 -04:00
Tom Schuster
0cd7a5fca0
Bug 884410 - Remove JS_ValueToECMAInt32 and replace it with JS::ToInt32. r=terrence
2013-08-15 17:41:51 -04:00
Nicholas Nethercote
3d3e2d711a
No bug. Fix minor quoting problem in the description of notable string memory reports. r=jlebar.
...
--HG--
extra : rebase_source : 531d37ec1f9ceb4e0a1ec702243bc934eb0329eb
2013-08-14 15:44:46 -07:00
Gregory Szorc
c089ae373d
Bug 850380 - Derecursify and optimize XPIDL processing and move into precompile tier; r=glandium
2013-08-14 08:40:25 -07:00
Ryan VanderMeulen
8b8be2a46a
Merge m-c to inbound.
2013-08-14 17:11:30 -04:00
Bobby Holley
2ce8f2d13b
Bug 903212 - Remove nsIXPCScriptNotify machinery. r=mrbkap
2013-08-14 14:00:03 -07:00
Bobby Holley
ecce09df53
Bug 903212 - Remove ScriptEvaluated, and simplify callers. r=mrbkap
2013-08-14 14:00:03 -07:00
Bobby Holley
7282f447c0
Bug 903212 - Add a GC when popping a script entry point. r=mrbkap
...
I think that this is more or less isomorphic with the MaybeGC we do in
ScriptEvaluated in the cases that matter. And doing it in a spec-defined
place is helpful in getting rid of spec-nonsensical machinery.
2013-08-14 14:00:02 -07:00
Carsten "Tomcat" Book
89b83199da
merge mozilla-central to b2g-inbound
2013-08-14 15:02:24 +02:00
Ms2ger
a04009b5b7
Merge latest PGO-green inbounc changeset to m-c.
2013-08-14 14:45:47 +02:00
Ms2ger
6d567ab3cc
Bug 904110 - Move alignment features out of Util.h into a new header; r=Waldo
2013-08-14 09:00:52 +02:00
Ms2ger
844b7ec109
Bug 903849 - Use MOZ_ASSERT consistently in XPConnect; r=bholley
2013-08-14 09:00:34 +02:00
Ms2ger
df8525f77d
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
2013-08-14 08:56:21 +02:00
Szu-Yu Chen [:aknow]
f9a712c3b6
Bug 887690 - Part 1: Add emergency callback mode support (idl, webidl). r=hsinyi, sr=smaug
2013-08-14 08:48:28 -04:00
Ehsan Akhgari
bbbc0d8b5c
Bug 904264 - Don't #include js/MemoryMetrics.h in xpcpublic.h; r=bholley
2013-08-13 13:51:50 -04:00
Kyle Huey
e9e214aa0e
Bug 901630: Remove support for the cc thread. r=mccr8
2013-08-13 10:45:32 -07:00
Ryan VanderMeulen
1f7ca11ce8
Backed out 4 changesets (bug 887690) for suspicion of causing frequent mochitest-2 failures.
...
Backed out changeset 106ae6eee902 (bug 887690)
Backed out changeset e2c72cb029f4 (bug 887690)
Backed out changeset 9eea090ed6f7 (bug 887690)
Backed out changeset 1defeb691f5c (bug 887690)
2013-08-12 19:13:38 -04:00
Ryan VanderMeulen
a12a9ef1b6
Merge m-c to b2g-inbound.
2013-08-12 17:44:21 -04:00
Bobby Holley
e923703302
Bug 901364 - Make operation callbacks runtime-wide. r=mrbkap
2013-08-12 12:54:50 -07:00
Bobby Holley
2898c52fcd
Bug 901364 - Implement a replacement operation callback in XPConnect. r=mrbkap
2013-08-12 12:54:49 -07:00
Jon Coppeard
11678aa48c
Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug
2013-08-12 12:09:14 +01:00
Ryan VanderMeulen
73ebf67a95
Merge m-c to b2g-inbound.
2013-08-12 15:36:24 -04:00
Thomas Zimmermann
69dd42354a
Bug 888595 - Convert BluetoothDevice to WebIDL. r=bz, r=echou
...
We keep the old XPIDL files in place to stay compatible with existing
code. They can probably be removed when all bindings have been converted
to WebIDL.
2013-08-12 10:34:28 +02:00
Carsten "Tomcat" Book
cf01e81083
Backed out changeset 6855c55668a7 (bug 888595) for mochitest oranges
2013-08-12 18:07:32 +02:00
Szu-Yu Chen [:aknow]
18dd1799af
Bug 887690 - Part 1: Add emergency callback mode support (idl, webidl). r=hsinyi, sr=smaug
2013-08-12 08:24:53 -04:00
Carsten "Tomcat" Book
e64b974993
merge mozilla-central to b2g-inbound
2013-08-12 11:52:02 +02:00
Thomas Zimmermann
38795b8dfe
Bug 888595: Converted BluetoothDevice to WebIDL, r=bzbarsky,echou
...
We keep the old XPIDL files in place to stay compatible with existing
code. They can probably be removed when all bindings have been converted
to WebIDL.
--HG--
extra : rebase_source : b6612fbd237d89bd02a2fde34e121691be3c0f08
2013-08-12 10:34:28 +02:00
Ryan VanderMeulen
8afe7e8fed
Merge inbound to m-c.
2013-08-09 19:08:45 -04:00
Ryan VanderMeulen
4bdd6d2653
Merge m-c to b2g-inbound.
2013-08-08 16:24:53 -04:00
Ryan VanderMeulen
64b2bc7dd9
Backed out changesets 1fa1f28c6edf and e74f694f31c4 (bug 850380) for PGO bustage on a CLOSED TREE.
2013-08-14 15:12:20 -04:00
Brian O'Keefe
3fd496e231
Bug 896177 - Remove more config.mk includes; r=gps
2013-07-17 16:07:14 -04:00
Gregory Szorc
9f99cee9a1
Bug 850380 - Derecursify and optimize XPIDL processing and move into precompile tier; r=glandium
2013-08-14 08:40:25 -07:00
Ryan VanderMeulen
2cb6b07d20
Merge m-c to inbound.
2013-08-09 19:29:45 -04:00
Nicholas Nethercote
f948251e7a
Bug 898263 (part 15) - Remove jsutil.h from EXPORTS. r=jorendorff.
...
--HG--
extra : rebase_source : 5a835a5229838dfa03d3536cd2a3569344ccadb1
2013-07-26 00:57:03 -07:00
Nicholas Nethercote
d3ebe3414c
Bug 898263 (part 7) - Remove jsprvtd.h from EXPORTS. r=jorendorff.
...
--HG--
extra : rebase_source : eca8164f8652587796a8283932d8ba8ec76c0b5b
2013-07-25 22:52:59 -07:00
Nicholas Nethercote
066d47a07a
Bug 898263 (part 1) - Slim down jsprvtd.h. r=jorendorff.
...
--HG--
extra : rebase_source : 7a926428c59e388fc08148bf60f6dbc7bfe71271
2013-07-25 21:23:14 -07:00
Boris Zbarsky
3c09e9975f
Bug 897913 part 2. Allow touching interface objects via an Xray even if the page they're in can't touch them. r=bholley,smaug
2013-08-07 17:40:00 -04:00
Nicholas Nethercote
25d70fdd97
Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
...
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00
Nicholas Nethercote
ba723f1034
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Mihnea Dobrescu-Balaur
f71e8922e7
Bug 899857 - Make xpcshell default to a plugins directory only if -p is not specified. r=ted
2013-08-02 15:07:54 -07:00
Justin Lebar
0466eb441e
Bug 899256 - Part 2: Change XPCJSRuntime.cpp's REPORT_BYTES so it doesn't require "nsIMemoryReporter::". r=me
2013-08-05 16:33:01 -07:00
Justin Lebar
b38e33455d
Bug 899256 - Rework JS memory reporters so gc-heap is no longer a top-level node. r=njn
2013-08-05 16:33:01 -07:00
Justin Lebar
29c7abe55d
Bug 893222 - Part 3: Modify the JS memory reporter to consider a string as "notable" if we have many small copies of it. r=njn
2013-08-05 16:33:00 -07:00
Justin Lebar
094709ed3d
Bug 893222 - Part 2: Fix escaping for huge strings displayed in about:memory. r=njn
...
We were escaping "/" to "\/", but about:memory expects us to escape "/" to "\".
Escaping "/" to "\/" is probably quite sensible, since then we can represent strings which have both "\" and "/". But that's a bigger change.
2013-08-05 16:33:00 -07:00
Jon Coppeard
71a6b47923
Bug 900986 - Convert JS_*Element API to use MutableHandleValue for out params r=terrence r=bholley r=smaug
2013-08-05 14:02:47 +01:00
Jon Coppeard
694e4a5be0
Bug 900979 - Change JS_DeleteProperty APIs to use a boolean out param rather than a value r=waldo r=bz
2013-08-05 14:01:53 +01:00
Carsten "Tomcat" Book
cda28b85ed
Merge b2g-inbound to m-c
2013-08-05 11:22:48 +02:00
Yoshi Huang
3a8a76e455
Bug 883741 - Part 1: WebCrypto: Move Crypto to WebIDL. r=bz
2013-08-01 14:57:25 +08:00
Ryan VanderMeulen
e44fa2bc7c
Merge inbound to m-c.
2013-08-02 16:36:40 -04:00
Ryan VanderMeulen
24743de8ad
Backed out 7 changesets (bug 893222, bug 899256) for build bustage on a CLOSED TREE.
...
Backed out changeset 4aa234138f44 (bug 893222)
Backed out changeset 4b0bf28abdf2 (bug 899256)
Backed out changeset ea8b6ba99c05 (bug 893222)
Backed out changeset ac8220cb61d5 (bug 893222)
Backed out changeset d01358ff4b15 (bug 893222)
Backed out changeset 3baebe7cc655 (bug 893222)
Backed out changeset 4bdf8611ec57 (bug 893222)
2013-08-02 14:49:38 -04:00
Justin Lebar
7b3ad2a834
Bug 893222 - Part 5: Fix bustage. r=me
2013-08-02 10:53:34 -07:00
Ed Morley
d0a6230a88
Merge mozilla-central and b2g-inbound
2013-08-02 13:51:22 +01:00
Ms2ger
95c8398829
Merge m-c to inbound.
2013-08-02 11:40:30 +02:00
Ms2ger
e032489251
Backout changeset 531f544bc9ce for breaking B2G tests.
2013-08-02 11:38:49 +02:00
Ms2ger
5c2b63d2c7
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Ms2ger
699b39966c
Bug 832883 - Move IDBKeyRange to WebIDL; r=khuey
2013-08-02 09:09:15 +02:00
Ms2ger
023dc49091
Bug 897945 - Use an XPCOM string for nsContentUtils::ReportToConsole's category argument; r=bholley
2013-08-02 09:09:11 +02:00
Bobby Holley
f7c06c0933
Bug 897322 - Allow callers to manually fire OnNewGlobalObject when bootstrapping is complete. r=luke
2013-08-01 18:38:47 -07:00
Mike Hommey
d01b5df996
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Gina Yeh
2d4b9278a9
Bug 853221 - Patch 2: Distribute events from BluetoothAdapter, r=smaug, sr=mrbkap
2013-08-02 18:33:15 +08:00
Bill McCloskey
ca26060518
Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley)
2013-07-31 17:04:49 -07:00
Justin Lebar
a05d9e28e5
Bug 899256 - Rework JS memory reporters so gc-heap is no longer a top-level node. r=njn
2013-08-02 10:02:40 -07:00
Justin Lebar
5c20755f20
Bug 893222 - Part 3: Modify the JS memory reporter to consider a string as "notable" if we have many small copies of it.
2013-08-02 10:02:40 -07:00
Justin Lebar
c8b0725931
Bug 893222 - Part 2: Fix escaping for huge strings displayed in about:memory. r=njn
...
We were escaping "/" to "\/", but about:memory expects us to escape "/" to "\".
Escaping "/" to "\/" is probably quite sensible, since then we can represent strings which have both "\" and "/". But that's a bigger change.
2013-08-02 10:02:40 -07:00
Ms2ger
fb4e44ccbf
Bug 900987 - Handle a null category argument to nsScriptError::Init without crashing; pending-r=bholley
2013-08-04 11:18:41 +02:00
Kyle Huey
e30e014637
Bug 845545: Part 4 - Create a worker implementation of CycleCollectedJSRuntime. r=mccr8,bent
2013-08-03 16:55:40 -07:00
Kyle Huey
895f4a30bf
Bug 845545: Part 3 - Give the CycleCollectedJSRuntime more control over
...
SnowWhite. r=smaug
2013-08-03 16:55:39 -07:00
Kyle Huey
0d4beab639
Bug 845545: Part 2 - Refactor context creation callbacks. r=bholley,mccr8
2013-08-03 16:55:39 -07:00
Kyle Huey
582c3a9b87
Bug 845545: Part 1 - Fix heap dumping to work off the main thread. r=mccr8
2013-08-03 16:55:39 -07:00
Andrea Marchesini
413ce8df28
Bug 887524 - Move IDBRequest to WebIDL, r=janv
2013-08-01 00:28:15 +02:00
Andrea Marchesini
affecad19a
Bug 891944 - Move IDBCursor to WebIDL, r=janv
2013-08-01 00:28:13 +02:00
Masatoshi Kimura
b85aa29a35
Backed out changeset 2aa62db58f24 (bug 673919) due to Web compat
2013-08-01 06:44:51 +09:00
Tom Schuster
0b021a6fa2
Bug 884410 - Handlify JS_GetPrototype. r=terrence
2013-07-31 12:20:33 -04:00
Andrea Marchesini
507b5977c9
Bug 888596 - Move IDBDatabase to WebIDL, r=janv
2013-07-31 17:48:46 +02:00
Andrea Marchesini
a55b90d029
Bug 892065 - Move IDBIndex to WebIDL, r=janv
2013-07-31 17:48:40 +02:00
Andrea Marchesini
f88a92b855
Bug 888597 - Move IDBObjectStore to WebIDL, r=janv
2013-07-31 17:48:36 +02:00
Bobby Holley
97899ea185
Bug 898939 - Disable crashtest on android. r=me CLOSED TREE
2013-07-30 11:11:44 -07:00
Bobby Holley
dc8ec482b2
Bug 897676 - Null out |si| if we end up using that of the proto in WrapNewGlobal. r=mrbkap
2013-07-30 08:53:56 -07:00
Bobby Holley
6a8c3f7e7f
Bug 898939 - Crashtest. r=me
2013-07-30 08:43:46 -07:00
Bobby Holley
8848597459
Bug 898939 - Loosen assertion. r=bz
...
This is just an overzealous assertion, rather than a security issue.
2013-07-30 08:43:46 -07:00
Ehsan Akhgari
9854ac6166
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Wes Kocher
31bec8860b
Backed out changeset a0bc16b5a428 (bug 897676) for causing mochitest failures on a CLOSED TREE
2013-07-29 18:27:04 -07:00
Bobby Holley
c00f6379ec
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
9dbd7cffb9
Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke
2013-07-29 16:45:26 -07:00
Bobby Holley
488031ac4d
Bug 899245 - Rename js::GetDefaultGlobalForContext to js::DefaultObjectForContextOrNull. r=luke
...
This is more correct, since the object very often is not a global.
2013-07-29 16:45:25 -07:00
Bobby Holley
41a84c6ed0
Bug 897676 - Null out |si| if we end up using that of the proto in WrapNewGlobal. r=mrbkap
2013-07-29 16:03:04 -07:00
Andrea Marchesini
59c5192f42
Bug 888598 - Move IDBTransaction to WebIDL, r=janv
2013-07-29 19:12:21 +02:00
Jon Coppeard
8278efd42a
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Jeff Walden
e1feef57fd
Bug 896124 - Implement a JS_Init() JSAPI function, to be called before any other JSAPI operations (except JS_SetICUMemoryFunctions) are performed, to centralize whole-engine initialization tasks. r=bsmedberg for the XPCOM bits, r=luke for the JS bits
...
--HG--
extra : rebase_source : fd308ab3bd76c67a0b128eaefae3edf177893fe1
2013-07-19 20:14:34 -07:00
Carsten "Tomcat" Book
8c89deb65b
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Jon Coppeard
1463e7df5b
Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz
2013-07-26 10:00:38 +01:00
Ryan VanderMeulen
4b5a38346d
Backed out 3 changesets (bug 896124, bug 784739, bug 894026) for Windows checktest orange on a CLOSED TREE.
...
Backed out changeset 631b3d5d54f4 (bug 896124)
Backed out changeset 5e1dd28ede5d (bug 894026)
Backed out changeset c10c0a6270ec (bug 784739)
2013-07-26 00:08:51 -04:00
Peter Van der Beken
30b93d7d6b
Bug 894448 part 2 - Remove nativeOwnership = 'nsisupports'. r=bzbarsky
2013-07-04 17:24:59 +02:00
Boris Zbarsky
cc0e521ed8
Bug 894448 part 1. Move IsChromeOrXBL to xpcpublic.h. r=bholley
2013-07-25 19:41:46 -07:00
Jeff Walden
55d358b4ef
Bug 896124 - Implement a JS_Init() JSAPI function, to be called before any other JSAPI operations are performed, to centralize whole-engine initialization tasks. r=bsmedberg for the XPCOM bits, r=luke for the JS bits
2013-07-19 20:14:34 -07:00
Terrence Cole
7bde45b12a
Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz
...
--HG--
extra : rebase_source : a06130820b34f6e1f5bc317e89c087cf0db9eeb8
2013-06-26 16:26:45 -07:00
Jon Coppeard
477e4df5c5
Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz
2013-07-25 13:57:00 +01:00
Bobby Holley
9b761adefc
Bug 897789 - Add a fuzz factor to watchdog tests. r=Waldo
...
CLOSED TREE
2013-07-24 23:00:22 -04:00
Bobby Holley
0b7e198eed
Bug 870043 - Watchdog tests. r=mrbkap
2013-07-24 15:33:32 -07:00
Bobby Holley
d3bba960aa
Bug 870043 - Add a way to simulate the JSRuntime activity callback from xpcshell. r=mrbkap
...
The JS engine fires this callback when the request count drops to zero, and we
use it determine when we should hibernate the watchdog thread. But since the
request count never drops to zero for nested event loops, the watchdog never
runs in those cases. And since our xpcshell harness runs tests in a nested event
loop, this means we can't test watchdog hibernation from xpcshell. And we don't
want to test it in mochitests, because the non-determinism of timer CCs and GCs
are likely to be problematic.
Really, we should consider finding a way to integrate nested event loops into
the activity callback mechanism, and should probably get a bug on file. But such
a task is out of scope for this bug, so we just add a way to fake it.
2013-07-24 15:33:32 -07:00
Bobby Holley
3908f72e5a
Bug 870043 - Add support for scripted operation callbacks in XPCShell. r=mrbkap
2013-07-24 15:33:31 -07:00
Bobby Holley
a9060fc081
Bug 870043 - Add a script-accessible statistics for various watchdog events. r=mrbkap
...
We need this even for testing wakeups, because we can't be certain that any
given operation callback was necessarily triggered from the watchdog thread
(since it's triggered from within the JS engine in various cases as well).
2013-07-24 15:33:31 -07:00
Bobby Holley
ec70ea79e3
Bug 870043 - Factor the watchdog machinery into a helper class. r=mrbkap
...
This is a long-overdue change in general. It's now particularly necessary
because we want to start and stop the watchdog, potentially multiple times
during a session. Encapsulating this into a class that we can
destroy/instantiate several times means that we don't end up with inconsistent
state.
As a nice bonus, this centralizes the whole setup and makes it easier to
comprehend. I actually had this nicely split up into several patches, but
I accidentally squashed them while rebasing. :-(
2013-07-24 15:33:31 -07:00
Jon Coppeard
93c50cb189
Bug 899973 - GC: Convert the rest of the JS property API to use MutableHandleValue for out params - browser changes r=bz
2013-08-02 13:15:39 +01:00
Jon Coppeard
83e7e190e6
Bug 899976 - GC: Fix unsafe references related to ToInt* functions - browser changes r=bholley
2013-08-02 13:15:38 +01:00
Ms2ger
834f814430
Merge m-c to inbound.
2013-07-24 11:53:22 +02:00
Ms2ger
4f51466484
Bug 896280 - Pass MutableHandleValue to JS::Call(); r=terrence
2013-07-24 09:40:01 +02:00
Ms2ger
36f3f6ae03
Bug 885170 - Remove nsINode::GetClassInfo(); r=peterv
2013-07-24 09:31:06 +02:00
Nicholas Nethercote
9cc40d80f9
Bug 890238 - Add a memory reporter for ICU. r=jwalden.
...
--HG--
extra : rebase_source : 05721759ca5abc45d3bcf133eb6559c23de36a54
2013-07-07 20:29:14 -07:00
Bill McCloskey
daca74ad0a
Bug 895340 - Fix error reporting of JS exceptions from C++ (r=bholley)
2013-07-23 08:32:36 -07:00
Joshua Cranmer
7b9a04da79
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
918e4b37e5
Bug 884061 - Part 3n: Use NS_DECL_THREADSAFE_ISUPPORTS in js/, r=bholley
...
--HG--
extra : rebase_source : 4f888058e3f842affd496e35bdd3c2037d1abf43
2013-07-18 21:23:32 -05:00
Jon Coppeard
e4fdeb28ca
Bug 896398 - GC: Fix some reported rooting hazards in XPConnect r=bholley
2013-07-23 10:58:28 +01:00
Jon Coppeard
e8d192d169
Bug 888338 - 5 - post barrier remaining heap-based GC things in XPConnect r=bholley
2013-07-23 10:58:27 +01:00
Jon Coppeard
d8798632f1
Bug 888338 - 2 - give post barrier callback function an extra data argument r=terrence
2013-07-23 10:58:26 +01:00
Jon Coppeard
1bb7f2a908
Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz
2013-07-23 10:58:26 +01:00
Masatoshi Kimura
1ef12167fc
Bug 895231 - Make sure the Components shim is consistent with the real Components. r=bholley
2013-07-20 07:53:51 +09:00
Luke Wagner
2a96b8369c
Bug 893434 - OdinMonkey: make accessing non-data properties a link-time validation error (r=bbouvier)
...
--HG--
extra : rebase_source : beb308b3455d0fae18a6d6d5fee744f8b59dc2f2
2013-07-17 17:22:07 -05:00
Gervase Markham
acfedfd6cb
Bug 715549 - remove last vestiges of tri-licence. DONTBUILD.
2013-07-19 16:08:33 +01:00
Ehsan Akhgari
81b0d336c3
Bug 895141 - Remove useless prlong.h inclusions from the tree; r=jcranmer
2013-07-18 12:06:38 -04:00
Bobby Holley
61dd1d7439
Bug 887334 - Enter a compartment in b2g-only unloading code. r=me CLOSED TREE
2013-07-17 14:28:54 -07:00
Bobby Holley
017bc7491e
Bug 887334 - Add a JSAutoCompartment to AutoCxPusher. r=luke,gabor
...
This should hopefully take care of any cases where consumers expect to be in
the default compartment.
2013-07-17 11:53:52 -07:00
Bobby Holley
3c5aaefdba
Bug 887334 - Don't rethrow in quickstubs if there's already an exception pending. r=luke
2013-07-17 11:53:52 -07:00
Bobby Holley
18c1d08a65
Bug 887334 - Rejigger the string manipulation in OnJSContextNew to avoid depending on being in a compartment. r=luke
...
The current code makes calls that assume (implicitly, via assertions) that |cx|
is in a compartment, which isn't a valid assumption going forward.
2013-07-17 11:53:51 -07:00
Bobby Holley
ea7a9f6f09
Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
...
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.
First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.
So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.
Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.
Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-16 20:38:44 -07:00
Bobby Holley
7abe607721
Bug 889911 - Replace mozJSLoaderErrorReporter with SystemErrorReporter and remove the former. r=mrbkap
2013-07-16 20:38:44 -07:00
Bobby Holley
643e96377a
Bug 889911 - Introduce xpc::SystemErrorReporter, roughly based on mozJSComponentLoader's error reporter. r=mrbkap
2013-07-16 20:38:44 -07:00
Ryan VanderMeulen
ec49bf763f
Backed out 10 changesets (bug 889911, bug 889714) due to merge conflicts on a CLOSED TREE.
...
Backed out changeset 1a1a536121da (bug 889714)
Backed out changeset 2cd88ef9eea5 (bug 889714)
Backed out changeset 489723887eca (bug 889714)
Backed out changeset 2b38ce22cf97 (bug 889714)
Backed out changeset 87b0a59a5d51 (bug 889714)
Backed out changeset 13229bab2ba4 (bug 889714)
Backed out changeset 234bd6d1fbed (bug 889714)
Backed out changeset 4f5f62284917 (bug 889714)
Backed out changeset 18537c4436c7 (bug 889911)
Backed out changeset ca7060ab1588 (bug 889911)
2013-07-16 21:16:31 -04:00
Bobby Holley
b5be668356
Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
...
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.
First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.
So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.
Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.
Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-16 18:04:49 -07:00
Bobby Holley
36f5bb58ac
Bug 889911 - Introduce xpc::SystemErrorReporter, roughly based on mozJSComponentLoader's error reporter. r=mrbkap
2013-07-16 18:04:48 -07:00
Masatoshi Kimura
2712c73776
Bug 899388 - Part 3: Remove XUL-related interfaces and ChromeWindow from content. r=bz
2013-08-09 23:35:54 +09:00
Terrence Cole
61b15c2fbb
Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley
2013-04-30 10:29:40 -07:00
Nicholas Nethercote
b756f6b258
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Trevor Saunders
e59057dee7
bug 659722 - remove _IMPL_NS_LAYOUT r=bz
2013-03-16 00:31:38 -04:00
Brian O'Keefe
a2b1403eb0
Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps
2013-07-04 08:28:43 -04:00
Gabor Krizsanits
bd04fc57e9
Bug 874158 - Crash in GetNativeForGlobal. r=bholley
2013-07-16 15:04:28 +02:00
Boris Zbarsky
7631a999ff
Bug 838146 part 10. Turn on WebIDL bindings for Navigator. r=smaug
2013-07-12 10:37:23 -04:00
Ryan VanderMeulen
495d1f2b79
Backed out 4 changesets (bug 889911) for Windows bustage.
...
Backed out changeset 5e55ddfc9dc3 (bug 889911)
Backed out changeset 5e296989dd3d (bug 889911)
Backed out changeset 6e48a408d1de (bug 889911)
Backed out changeset e4ec71ab768f (bug 889911)
2013-07-15 15:28:29 -04:00
Bobby Holley
7b22d7ae94
Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
...
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.
First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.
So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.
Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.
Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-15 11:44:51 -07:00
Bobby Holley
b40e43f1c5
Bug 889911 - Replace mozJSLoaderErrorReporter with SystemErrorReporter and remove the former. r=mrbkap
2013-07-15 11:44:50 -07:00
Bobby Holley
61194c80d2
Bug 889911 - Introduce xpc::SystemErrorReporter, roughly based on mozJSComponentLoader's error reporter. r=mrbkap
2013-07-15 11:44:49 -07:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Hsin-Yi Tsai
ff4cff7935
Bug 888592 - move Telephony and TelephonyCall to webidl. sr=sicking, r=bent
2013-07-15 16:27:19 +08:00
Gregory Szorc
bcf3de711c
Bug 891632 - Port NO_DIST_INSTALL to moz.build; r=joey
...
Many of the moved variables are likely not needed. moz.build should one
day validate the sandbox's output and error if "useless" variables are
present.
--HG--
extra : rebase_source : 3abdea056c18d00ede8c15b37db60532eca58630
2013-07-10 12:08:21 -07:00
Ryan VanderMeulen
c9d5a706a1
Backed out changeset b7d6458d2a3c (bug 887483) for apparently causing Android robocop-2 failures.
2013-07-10 13:51:28 -04:00
Trevor Saunders
c3f96258c3
bug 887483 - rm a bunch of useless assignments to FORCE_STATIC_LIB r=mshal
2013-06-25 14:29:26 -04:00
Ryan VanderMeulen
aaee3cf638
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
Olli Pettay
2bf2214fbe
bug 789919, (snow-white) make addref/release of CCable objects faster by removing indirect refcnt increase/decrease, r=mccr8, test changes r=ehsan
...
--HG--
extra : rebase_source : 2a3b22425c14d6daedc91d62a652c34431acd2fb
2013-07-09 13:30:58 -04:00
Peter Van der Beken
9c3bffc341
Bug 734503 - Add new DOM binding for TouchList; r=jst.
2013-07-10 11:53:53 +02:00
Bobby Holley
9b3cb6faeb
Bug 867486 - Remove |Components| from content sandboxes. r=gabor
2013-07-08 10:05:31 -07:00
Joey Armstrong
a6b9800cfb
bug 870407: cleanup bug. r=mshal
2013-07-08 11:53:00 -04:00
Randy Lin
694cfec77c
Bug 803414 - Part 0: Add RecordErrorEvent. r=smaug
2013-06-20 14:06:39 +08:00
Ehsan Akhgari
fc8792b565
Bug 890382 - Implement a Web IDL event constructor for IDBVersionChangeEvent; r=smaug
2013-07-05 13:57:28 -04:00
Masatoshi Kimura
77d07fff51
Bug 889148 - Remove legacy QS/classinfo bits from events even more. r=smaug, peterv
2013-07-05 07:53:59 +09:00
Bobby Holley
36fd766b65
Bug 860085 - Remove XPCCallContext refcounting optimization. r=gabor
...
We only use XPCCallContext for reflector calls now, at which point an AddRef
is totally insignificant. Using an auto pointer here lets us clean up some
code, and makes the XPCCallContext destructor start to look pretty sane. :-)
2013-07-03 11:05:20 -06:00
Bobby Holley
ee3bfc4787
Bug 860085 - Remove nsIXPConnect::ReleaseJSContext. r=gabor
2013-07-03 11:05:19 -06:00
Bobby Holley
6cca462555
Bug 860085 - Stop using XPConnect::ReleaseJSContext in nsJSEnvironment::DestroyJSContext. r=gabor,mccr8
...
We now have the invariant that any in-use cx must be pushed onto the JSContext
stack with one of our stack-scoped automatic nsCxPusher classes. These classes
hold a strong ref to the nsIScriptContext associated with the JSContext they
push (if any). This means that, if this cx is in use, we will always have at
least one strong reference to the nsJSContext coming from the stack, meaning
that neither the destructor nor the Unlink() implementation will be called.
So we don't need to do any deferred destruction of the cx anymore.
2013-07-03 11:05:19 -06:00
Bobby Holley
a24cfb37c9
Bug 860085 - Make XPCJSContextStack manipulators private to enforce that we go through the RAII classes. r=gabor
...
With this change, we can be very, very sure that we never push an nsJSContext
without instantiating an AutoCxPusher on the stack.
2013-07-03 11:05:19 -06:00
Bobby Holley
0f27ae63e7
Bug 860085 - Remove unused AutoPopJSContext. r=gabor
2013-07-03 11:05:19 -06:00
Bobby Holley
0886018b66
Bug 860085 - Rename xpc::{Push,Pop}JSContext and make them assert against DOM JSContexts. r=gabor
2013-07-03 11:05:18 -06:00
Bobby Holley
5ba2509426
Bug 860085 - Use an AutoPushJSContext in XPCCallContext instead of doing it manually. r=gabor
2013-07-03 11:05:18 -06:00
Kyle Huey
49b422d01c
Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff
2013-07-09 07:28:15 -07:00
David Anderson
e90c94517c
Rewrite CPOWs to use one actor per process (bug 853209, r=billm,bholley,smaug).
2013-07-03 00:24:32 -07:00
Bobby Holley
4743c7fcdf
Bug 888104 - Fix xpcshell linkage error on windows. r=me CLOSED TREE
2013-07-02 16:34:33 -06:00
Joey Armstrong
b931149ad7
bug 870407: move CMMSRCS to mozbuild (file batch #3 ). r=mshal
2013-07-02 17:09:08 -04:00
Bobby Holley
71fd12c910
Bug 888104 - Reimplement Auto*JSContext in terms of AutoCxPusher. r=gabor
2013-07-02 14:39:03 -06:00
Bobby Holley
8a738ba0a1
Bug 888104 - Introduce AutoCxPusher and reimplement nsCxPusher in terms of it. r=gabor
2013-07-02 14:39:03 -06:00
Bobby Holley
8536bd9ae6
Bug 888104 - Move nsCxPusher's mScx grabbing code into the common helper method. r=gabor
...
This function is called by Push and PushNull, so with the added null check this
is equivalent. This facilitates the refactoring in the next patch.
2013-07-02 14:39:02 -06:00
Mike Shal
37bbfefcec
Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4 ); r=joey
2013-07-01 11:34:30 -04:00
Jeff Walden
296b917e73
Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel
...
--HG--
extra : rebase_source : fe7345322f87dd214aa5122ea8704750e8b2375a
2013-06-28 14:01:09 -07:00
Terrence Cole
d145542530
Bug 878160 - GC: post barrier weak references in the browser - part 2 browser r=terrence r=billm
...
--HG--
extra : rebase_source : a1856a7dce28da5086f6fbeaeda15596193aa7ad
2013-06-05 16:40:02 -07:00
Ms2ger
2dcf517a55
Bug 888579 - Remove some code that handled WN Nodes; r=bholley
2013-07-01 09:14:36 +02:00
Ms2ger
ae221922f0
Bug 887909 - Convert IDBFileHandle to WebIDL; r=janv
2013-07-01 09:02:37 +02:00
Bobby Holley
d12dacd7b6
Bug 880917 - Add an API to mutate the version on the compartment and use it from the shells. r=luke
2013-06-29 09:11:19 -06:00
Bobby Holley
bbfa496f9b
Bug 880917 - Remove XPConnect version munging test. r=luke
...
This test calls the version() shell command, and expects it to work like an
override, rather than the dumb compartment-mutator that I'm turning it into.
Let's just kill the test.
2013-06-29 09:11:18 -06:00
Bobby Holley
f77eb1e574
Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke
2013-06-29 09:11:18 -06:00
Bobby Holley
1a78a5f7db
Bug 880917 - Add support for "latest" as a version to evalInSandbox, and use it for sjs files. r=luke
...
Sandboxes always default to JSVERSION_DEFAULT in the browser. But XPCShell sets
up a ContextCallback that does JS_SetVersion(cx, JSVERSION_LATEST) on every
context that gets created, including the ephemerial Sandbox JSContexts. Since
httpd.js runs in xpcshell and evaluates SJS in a sandbox, we've (somewhat
accidentally) supported JSVERSION_LATEST in SJS, which certain SJS files have
taken advantage of. Let's continue to support it explicitly.
2013-06-29 09:11:18 -06:00
Bobby Holley
f5f7bf3be5
Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
...
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Justin Lebar
904130e9c2
Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo
...
I'd meant to do this, but I only got as far as the comment in mfbt. Oops!
--HG--
extra : rebase_source : 3cfe3ef1bf401eb7d9a10fcabcfb39008e9553a4
2013-06-28 19:20:12 -07:00
Justin Lebar
6c46d0633d
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Gabor Krizsanits
41f7ce5741
Bug 885737 - EvalInSandbox should return error if there was an exception. r=bholley
2013-06-27 09:52:57 +02:00
Cykesiopka
06857ab4f5
Bug 831741 - Followup: Remove remaining __cplusplus bits from /js (with exceptions). r=jorendorff
2013-06-26 21:35:11 -04:00
Guilherme Gonçalves
3f2535a225
Bug 884407 - Use an enum in SpeechRecognitionError. r=smaug
2013-06-25 20:08:58 -04:00
Andrew McCreight
aacc454171
Bug 883657, part 2 - Don't force a GC in mozJSComponentLoader::UnloadModules. r=bholley
2013-06-25 08:42:40 -07:00
Catalin Iacob
4f03e5bb1a
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Catalin Iacob
1544c37641
Bug 798914 (part 4) - Use newly introduced mozilla::MallocSizeOf in js. r=njn.
...
--HG--
extra : rebase_source : d1c063b94c7ec58729150cbea602bb4c9f2a0e24
2013-06-23 13:21:01 +02:00
Bobby Holley
c738ac15d2
Bug 885800 - Unwrap CCWs in Cu.isDeadWrapper. r=gabor
2013-06-24 10:02:08 -07:00
Ehsan Akhgari
08ed61c0f0
Bug 885583 - Enable Web Audio unconditionally across mochitests; r=roc
2013-06-23 19:23:02 -04:00
Ms2ger
5a63e5bff8
Bug 882848 - Use MOCHITEST_BROWSER_FILES more; r=gps
2013-06-23 09:16:19 +02:00
Ms2ger
0b036f4010
Bug 884951 - Use XPCWrappedNative::Get more; r=bholley
2013-06-23 09:15:55 +02:00
Ms2ger
ff63d2149b
Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug
2013-06-23 09:15:42 +02:00
Ms2ger
508a44d128
Bug 884947 - Remove superfluous null check in XPCConvert::NativeInterface2JSObject; r=bholley
2013-06-23 09:14:02 +02:00
Jan Varga
4d7db5e807
Bug 884936 - Add Blob/File support to xpcshell. r=bent
2013-06-21 17:15:46 +02:00
Jan de Mooij
ae7738d127
Bug 881902 - Remove ContextStack and StackSpace. r=luke,njn
2013-06-21 08:28:06 +02:00
Jon Coppeard
2632590a6e
Bug 885310 - 2 Rename JSHandleFoo in js directory r=bholley
2013-06-21 14:12:46 +01:00
Bobby Holley
2fa8b1cfb0
Bug 883450 - Miscellaneous requests. r=gabor
2013-06-20 11:05:34 -07:00
Bobby Holley
c752b3ec83
Bug 883450 - Remove custom request munging in XPCCallContext and use a JSAutoRequest. r=gabor
2013-06-20 11:05:34 -07:00
Bobby Holley
5517cafd4a
Bug 883450 - Unscope the JSAutoRequest in XPCJSContextStack. r=gabor
2013-06-20 11:05:33 -07:00
Bobby Holley
25852d3177
Bug 883450 - MOZ_CRASH if we fail to spin up the SafeJSContext, and remove error handling. r=gabor
...
There's not a lot we can do without it in the browser these days.
2013-06-20 11:05:33 -07:00
Bobby Holley
e1ffe44fa6
Bug 884245 - Simplify nsContentUtils::GetDocumentFromCaller. r=bz
...
The first three lines of this function are an obvious bug. But the behavior in
general is also worrisome, because it's using antiquated XPConnect machinery
that will be less and less correct as we move to the new DOM bindings. Let's
just infer our global from the active compartment.
2013-06-20 11:05:32 -07:00
Olli Pettay
ebaa9fe160
Bug 884296 - Remove the rest of the classinfos for DOM events, r=peterv
...
--HG--
extra : rebase_source : 9b397e2e19e8e15d2753dc5bf7c18e2b3147f92b
2013-06-20 17:13:52 +03:00
Ed Morley
2302a6db27
Merge mozilla-central and inbound
2013-06-20 09:20:10 +01:00
Ed Morley
32d0858db7
Merge latest green birch changeset and mozilla-central
2013-06-20 09:01:19 +01:00
Gregor Wagner
e98efca641
Bug 885025 - B2G: Add missing request in mozJSComponentLoader::UnloadModules. r=khuey
2013-06-19 21:09:48 -04:00
Brian O'Keefe
5f8b5163e8
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
L. David Baron
2bf36899c8
Fix XPC_DUMP_AT_SHUTDOWN bustage from Bug 882162 Part 1 (changeset efb0b493cc21).
2013-06-19 16:55:06 -07:00
Kyle Huey
9e5b8d4b53
Bug 882893: Move observer notifications out of the cycle collector and into the runtime. r=smaug
2013-06-19 14:06:50 -07:00
Terrence Cole
2bc230b388
Bug 884410 - Handlify the JS_EnumerateStandardClasses interface; r=jonco
...
--HG--
extra : rebase_source : b111de82bde762c2d34897bd7e65c55cd239e0df
2013-06-13 17:10:00 -07:00
Terrence Cole
a1b85dbc2a
Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco
...
--HG--
extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
2013-06-13 17:10:00 -07:00
Terrence Cole
0ae404a1ee
Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
...
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Boris Zbarsky
1310172eb7
Bug 884401. Remove the hasXPConnectImpls annotations for HTMLElement, Element, and Node in WebIDL bindings, since all those are gone. r=peterv
2013-06-19 14:48:43 -04:00
Andrea Marchesini
db524818c8
Bug 841442 - Move HTMLFormElement to WebIDL, r=bz
2013-06-19 10:24:37 -04:00
Andrea Marchesini
b20748feb8
Bug 841442 - Rename nsHTMLFormElement to HTMLFormElement
...
--HG--
rename : content/html/content/src/nsHTMLFormElement.cpp => content/html/content/src/HTMLFormElement.cpp
rename : content/html/content/src/nsHTMLFormElement.h => content/html/content/src/HTMLFormElement.h
2013-06-19 10:24:37 -04:00
Jon Coppeard
63011a7ca0
Bug 884371 - Remove JSMutableHandleXXX from the js directory r=bholley
2013-06-19 11:32:27 +01:00
Ryan VanderMeulen
558b14210d
Merge cypress and inbound.
2013-06-18 18:15:53 -04:00
Kyle Huey
ad14119f4e
Bug 882162: Part 11 - Push the final uses of mJSHolders down into mozilla::CycleCollectedJSRuntime and make it private. r=mccr8
2013-06-18 12:02:16 -07:00
Kyle Huey
5bc19e1a51
Bug 882162: Part 10 - Add a hook for tracing black JS and update the big comment to more accurately describe how this works. r=mccr8
2013-06-18 12:02:16 -07:00
Kyle Huey
55af825948
Bug 882162: Part 9 - Kill nsCycleCollectionJSRuntime. r=mccr8
2013-06-18 12:02:16 -07:00
Kyle Huey
3e6a01f7ac
Bug 882162: Part 8 - Move the rest of nsCycleCollectionJSRuntime's implementation into mozilla::CycleCollectedJSRuntime. r=mccr8
2013-06-18 12:02:16 -07:00
Kyle Huey
7462053a52
Bug 882162: Part 7 - Move tracing of gray roots into mozilla::CycleCollectedJSRuntime. r=mccr8
2013-06-18 12:02:15 -07:00
Kyle Huey
67d1e8d027
Bug 882162: Part 6 - Move the runtime and zone CC participants into mozilla::CycleCollectedJSRuntime. r=mccr8
2013-06-18 12:02:15 -07:00