Commit Graph

2382 Commits

Author SHA1 Message Date
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