Commit Graph

2635 Commits

Author SHA1 Message Date
Bobby Holley
44f0d562b5 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
921c772767 Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8 2013-09-04 14:06:55 -07:00
Bobby Holley
d4eab5f3af 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
6188191d87 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
7367a3a5b8 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
81c848fe67 Merge mozilla-central and inbound 2013-09-04 16:53:03 +01:00
Gabor Krizsanits
33adfcaa72 Bug 892203 - TextEncoder and TextDecoder for sandbox. r=bholley 2013-09-04 12:18:28 +02:00
Gabor Krizsanits
2b3d7299f4 Bug 892203 - DOMConstructors for SandboxOptions. r=bholley 2013-09-04 12:16:04 +02:00
Gabor Krizsanits
d04620cbf7 Bug 892203 - Minor cleanups in sandbox.cpp. r=bholley 2013-09-04 12:15:50 +02:00
Felipe Gomes
cf77c1b0f9 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
63350a4987 Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium 2013-09-03 20:28:05 -07:00
Phil Ringnalda
d0f16d5486 Back out ce03cc2994aa:ae9f95fc1136 (bug 896797) for SpiderMonkey shell build bustage
CLOSED TREE
2013-09-03 23:21:30 -07:00
Gregory Szorc
9df929a380 Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium 2013-09-03 20:28:05 -07:00
Phil Ringnalda
891e62de26 Back out cc6f66e761d8 (bug 896797) for Windows build bustage
CLOSED TREE
2013-09-03 21:55:21 -07:00
Gregory Szorc
3e38679ec7 Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium 2013-09-03 20:28:05 -07:00
Nicholas Nethercote
cbd87e0b81 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
01c70c8c97 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
1d054dbbaf 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
7bcce3ab11 Bug 910751 - Hide UserDataHandler from content. r=smaug 2013-08-30 20:39:37 +09:00
Olli Pettay
fec6e6d8e3 Bug 910797, make Event.isTrusted to work in workers, r=khuey 2013-08-30 12:47:19 +03:00
Bobby Holley
11de773cd0 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
7fbc04343e 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
f4ed58505f 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
9f5aedccaa Bug 732665 - Tests. r=luke 2013-08-28 11:04:16 -07:00
Bobby Holley
f77b84aa7f Bug 732665 - Use separate stack depths for XPConnect JS. r=luke 2013-08-28 11:04:16 -07:00
Bobby Holley
55c123084f 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
40b9e31be6 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
b475c29ce3 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
d118b95a0d Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Nicholas Nethercote
eb0a0a84bd 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
3c5b0c6b29 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
ed2d647b4b Merge m-c to inbound on a CLOSED TREE. 2013-08-27 22:40:49 -04:00
Ryan VanderMeulen
6f0d3838c9 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
f8bde121bd Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug,bholley,bz 2013-08-27 15:39:02 -07:00
Bobby Holley
3ef78b339d 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
0542144683 Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
0a90738ba7 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
66f5004091 Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8 2013-08-27 15:21:38 -07:00
Bobby Holley
d8ec53aa09 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
a9a3af4e97 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
ba0f5bdd30 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
35a65ed466 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]
16c6da04b2 Bug 882983 - Part 1: Add ota status event (idl, webidl). r=hsinyi, sr=smaug 2013-08-27 08:25:53 -04:00
Mike Hordecki
c834c1d2bf Bug 908918 - Fix an XPConnect typo. r=bholley 2013-08-26 11:28:26 -04:00
Geoff Brown
fd9a8160b1 Bug 865006 - (4) Add more xpcshell tests for android; r=jmaher 2013-08-25 10:58:31 -06:00
Boris Zbarsky
1be13ddcad 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
30987641e2 Bug 908530 part 3. Stop including xpcpublic.h in DOMJSProxyHandler.h. r=khuey 2013-08-23 22:42:40 -04:00
Boris Zbarsky
7393f81fff 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
5962434202 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
fdec3cbd4e Bug 886237 - follow-up part2: Comment formatting in sandbox.cpp. r=bholley 2013-08-23 09:56:03 +02:00