Commit Graph

854 Commits

Author SHA1 Message Date
Ehsan Akhgari
16fb5a22f8 Backout changeset 4313740f1adc (bug 725907 part 3) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:25:56 -04:00
Ehsan Akhgari
b7c1969ac5 Backout changeset 20b0bce4c165 (bug 703537) under the suspicion of breaking Linux32 mochitest-chrome without framepointers 2012-07-04 19:24:04 -04:00
Eddy Bruel
62517a803b Bug 703537 - Rename AbstractWrapper to IndirectWrapper; r=bholley 2012-07-04 01:20:35 +02:00
Jason Orendorff
61def7a5da Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
--HG--
extra : rebase_source : 0820d3654318f217b8836a086234736d3aba3819
2012-07-03 16:34:56 -05:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Bill McCloskey
96e4284f11 Bug 758034 - Clean up browser GC API (r=smaug) 2012-06-30 14:16:32 -07:00
Masatoshi Kimura
6909634954 Bug 769119 - Treat null or undefined as an empty dictionary; r=sicking 2012-06-30 16:03:27 +02:00
Mark Banner
3f0160f5ad Bug 766269 - Thunderbird Permanent orange: TEST_UNEXPECTED_FAIL | test_0030_general.js. Correctly handle MOZ_APP_BASENAME and MOZ_APP_VENDOR being unset when determining the update location for unit tests on Windows. r=ehsan, test-only 2012-06-29 07:24:33 +01:00
Bobby Holley
eb5355a5e7 Bug 754202 - Remove NoWaiverWrapper. r=mrbkap
No more principal pushing!
2012-06-28 23:47:55 +02:00
Bobby Holley
22171babc1 Bug 754202 - Remove context pushing/popping API. r=mrbkap Each one of these uses grabs the principal off of an object for pushing, but also enters the compartment of that object. So we shouldn't need this anymore.
Can I get a 'hell yeah'?
2012-06-28 23:47:55 +02:00
Blake Kaplan
71e3941c1e Bug 769265 - Fix these calls. r=bent 2012-06-28 16:14:11 +02:00
Eddy Bruel
ea3e60175e Bug 70357 - Add Wrapper base class; r=bholley 2012-06-28 04:10:37 +02:00
Bill McCloskey
379166ad47 Bug 715761 - Followup fix for xpconnect tracing (r=bholley) 2012-06-27 13:45:52 -07:00
Andrew McCreight
8efd6b7656 Bug 754495, part 4 - Define CompartmentParticipant. r=smaug,billm 2012-06-27 08:09:50 -07:00
Andrew McCreight
face11cd5b Bug 754495, part 3 - Add shim for NoteJSChild to allow it to be reused. r=smaug 2012-06-27 08:09:45 -07:00
Andrew McCreight
99d1edd8e8 Bug 754495, part 2 - Add flag to control JS traversal behavior. r=smaug 2012-06-27 08:09:35 -07:00
Peter Van der Beken
c523f2d06a Fix for bug 768669 (Move remaining DOM list proxy bindings from behind the pref). r=bz.
--HG--
extra : rebase_source : 738cd6df3aa353b682f931beaabde74de8c1a2bd
2012-06-22 12:34:26 +02:00
Bobby Holley
36b5831551 Bug 758344 - Make ContextHolder implement nsIScriptContextPrincipal. r=mrbkap 2012-06-26 22:54:18 +02:00
Nicholas Nethercote
ddf6acd6f8 Bug 711130 (part 6) - Improve the measurement of decommitted GC memory. r=terrence.
--HG--
extra : rebase_source : ad344b58798cb6837a59f3d48f57880b036c300e
2012-06-25 17:09:00 -07:00
Nicholas Nethercote
26f000b52d Bug 711130 (part 5) - Overhaul the "other measurements" measurements for JS memory consumption. r=terrence.
--HG--
extra : rebase_source : 492af75618c40eb2a92be2756f67db93834729cf
2012-06-25 17:08:59 -07:00
Nicholas Nethercote
647a888256 Bug 711130 (part 4) - Treeify the non-compartment gc-heap-XYZ measurements. r=terrence.
--HG--
extra : rebase_source : ba3ff507e05829ad574e7283c7f3ab48b2416ac1
2012-06-25 17:06:50 -07:00
Nicholas Nethercote
98d63ba4c6 Bug 711130 (part 3) - Use consistent names for reports of unused JS memory. r=terrence.
--HG--
extra : rebase_source : a8e5a7d77355539f84a7fbb4d312fa66d2fe5ba6
2012-06-25 17:06:50 -07:00
Nicholas Nethercote
1c63ece812 Bug 711130 (part 2) - Merge "arena/unused" and "arena/padding" into "arena-admin". r=terrence.
--HG--
extra : rebase_source : 1c9d318e86eb27c2e40f2ef95554afefb8a6c653
2012-06-25 17:06:50 -07:00
Boris Zbarsky
ae835cd014 Bug 766796. Make IDL conversions to 64-bit ints treat NaN and Infinity as 0 instead of whatever the compiler decides to do in that undefined-behavior case. r=peterv 2012-06-25 23:37:47 -04:00
Bobby Holley
c9e79a454a Bug 767948 - Make assertion nonfatal. r=me 2012-06-25 15:24:21 +02:00
Luke Wagner
e3517739e9 Bug 756864 - Decrease MAX_FRAMES in XPCJSStackFrame::CreateStack (r=bhackett) 2012-06-23 20:47:10 -07:00
Luke Wagner
fee7952e0d Bug 755186 - s/JS_NewCompartmentAndGlobalObject/JS_NewGlobalObject/ (r=jorendorff)
--HG--
extra : rebase_source : f1ead9226915f72473a01db0a1019cdbe50c8e92
2012-06-20 08:57:29 -07:00
Luke Wagner
1b7d197c85 Bug 755186 - rm JS_NewGlobalObject (r=jorendorff)
--HG--
extra : rebase_source : d9ba442572836406e165cdff11a646e6fd498c03
2012-06-20 08:57:29 -07:00
Steve Fink
3b6b189846 Bug 764184 - Fix GC_REASON telemetry bucket count (r=froydnj)
--HG--
extra : rebase_source : 790f6727878f44e7cf424d9e32a85347416df625
2012-06-15 15:21:56 -07:00
Steve Fink
13b3ad567f Backed out changeset c33a30aedb3b (bug 764184) 2012-06-22 12:22:00 -07:00
Bill McCloskey
4fa5794dad Bug 715761 - Fix build error 2012-06-22 12:12:49 -07:00
Bill McCloskey
e352a152a3 Bug 715761 - Rename XPCWrappedNativeScope::TraceJS (r=bholley) 2012-06-22 11:37:22 -07:00
Bill McCloskey
ba55e063e1 Bug 715761 - De-insanify xpconnect wrapper tracing (r=bholley) 2012-06-22 11:34:51 -07:00
Steve Fink
5cd675cf2b Bug 764184 - Fix GC_REASON telemetry bucket count (r=froydnj)
--HG--
extra : rebase_source : b4b9015caab404d8a4b674349fc27ade09dd3ec5
2012-06-15 15:21:56 -07:00
Bobby Holley
1578d01098 Bug 767306 - Temporarily make assertion from bug 766641 non-fatal. r=me 2012-06-22 12:01:18 +02:00
Jeff Walden
9eb451a896 Bug 765990 - Never use Rooted<T> as a temporary, so that the Rooted->Handle conversion path occurs in only one manner, not two (ambiguous) manners. r=luke
--HG--
extra : rebase_source : d42f8bcf462de54ff6cc7d9054b2561bdd67686a
2012-06-14 19:13:27 -07:00
Bobby Holley
8ee3848379 Bug 755255 - Rename XPCThreadContext.cpp to XPCJSContextStack.cpp, since that's all that's left. r=mrbkap
--HG--
rename : js/xpconnect/src/XPCThreadContext.cpp => js/xpconnect/src/XPCJSContextStack.cpp
2012-06-21 16:14:49 +02:00
Bobby Holley
0f461c4697 Bug 755255 - Remove XPCPerThreadData. r=mrbkap
\o/
2012-06-21 16:14:49 +02:00
Bobby Holley
82d72b12d9 Bug 755255 - Remove thread iteration in XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
99aab01474 Bug 755255 - Remove mThreadData from XPCCallContext. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
4ddbbdcde0 Bug 755255 - Remove threadsafety checking machinery. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
61770623c2 Bug 755255 - Hoist Resolving* machinery into XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
b3446a7583 Bug 755255 - Remove Usage of XPCPerThreadData::IsMainThread. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
4f29db66bd Bug 755255 - Hoist auto root list into XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
5410f91c5b Bug 755255 - Hoist pending exception junk into XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
68ab2b73b5 Bug 755255 - Make consumers of mCallContext go through XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
26cd32f3d4 Bug 755255 - Hoist mCallContext into XPCJSRuntime. r=mrbkap 2012-06-21 16:14:49 +02:00
Bobby Holley
428163fcd1 Bug 755255 - Make consumers of GetJSContextStack go through XPCJSRuntime. r=mrbkap 2012-06-21 16:14:48 +02:00
Bobby Holley
61da966ca9 Bug 755255 - Add a convenience function to grab the JS runtime. r=mrbkap
I started getting sick of typing nsXPConnect::GetXPConnect()->GetRuntime().
2012-06-21 16:14:48 +02:00
Bobby Holley
742b686e2e Bug 755255 - Hoist mJSContextStack into XPCJSRuntime. r=mrbkap 2012-06-21 16:14:48 +02:00
Bobby Holley
172742cebc Bug 766018 - Null out the XPCWrappedNativeScope slot when scopes are deleted on shutdown. r=peterv 2012-06-21 16:14:48 +02:00
Ed Morley
712c4f68c8 Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage 2012-06-21 10:00:36 +01:00
Jeff Walden
5202bce28f Bug 765990 - Never use Rooted<T> as a temporary, so that the Rooted->Handle conversion path occurs in only one manner, not two (ambiguous) manners. r=luke 2012-06-14 19:13:27 -07:00
Bobby Holley
d63c96bde5 Bug 732870 - Have nsDOMStringMapSH::PreCreate use the element as its parent, rather than the window. r=peterv 2012-06-21 10:02:36 +02:00
Bobby Holley
d93e3043a0 Bug 753162 - Don't assume that we end up in the same compartment as we started in CrossCompartmentWrapper. r=mrbkap 2012-06-21 09:53:49 +02:00
Ehsan Akhgari
50acc35391 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more xpconnect parts); r=bholley 2012-06-19 23:33:46 -04:00
Mike Hommey
90d687d851 Merge last PGO green changeset from mozilla-inbound to mozilla-central 2012-06-20 10:53:31 +02:00
Fabrice Desré
ac9134771d Bug 766378 - adds a createArrayIn() call to create JS arrays in a given scope [r=mrbkap] 2012-06-19 16:54:46 -07:00
Masatoshi Kimura
98ef9db613 Bug 764916 - Replace nsDOMClassInfo::ThrowJSException with xpc::Throw. r=mrbkap 2012-06-19 19:01:10 -04:00
Andrew McCreight
6b4567cba2 Bug 763776 - refactor nsXPConnect::Traverse. r=billm 2012-06-19 11:33:00 -07:00
Mike Hommey
c533a83b6c Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Peter Van der Beken
6a7e8ec5a9 Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz. 2012-06-04 21:41:51 +02:00
Terrence Cole
d7c945f469 Bug 765436 - Remove WrappedNative2WrapperMap; r=mrbkap
It is completely unused.

--HG--
extra : rebase_source : c267f58324d2b9ff8b7558253c23e2aa01c681ec
2012-06-18 18:47:55 -07:00
Jeff Walden
09e6c025d8 Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted 2012-06-07 14:41:11 -07:00
Nils Maier
0c2db95ab0 Bug 759783: Add identifying origin information to Javascript sandboxes. r=jlebar 2012-06-18 13:09:17 -04:00
Bobby Holley
d169ad7176 Bug 763433 - Clarify compartment situation in Xray wrapper. r=mrbkap
Adding to the mess of the NodePrincipal (et al) check isn't great, but I'm refactoring that in bug 761704.
2012-06-18 15:47:09 +02:00
Bobby Holley
f729fb1536 Bug 763433 - Clarify compartment semantics for ExposedPropertiesOnly. r=mrbkap 2012-06-18 15:47:09 +02:00
Bobby Holley
d0bbff2627 Bug 763381 - Fix up compartment situation for expando objects. r=mrbkap 2012-06-18 15:28:11 +02:00
Bobby Holley
96e9ccb417 Bug 763381 - Pass cx around in more places. r=mrbkap 2012-06-18 15:28:11 +02:00
Ms2ger
73058fcee7 Bug 762436 - Get rid of the nsresult return value for nsIXPCScriptable::GetScriptableFlags(); r=mrbkap 2012-06-17 10:11:16 +02:00
Gregor Wagner
f0aabb81cf Bug 764682 - Implement wifi events in c++. r=smaug 2012-06-16 11:14:12 -07:00
Boris Zbarsky
a20f0507aa Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob 2012-06-15 16:25:51 -04:00
Andrew McCreight
499dfe9257 Bug 749385 - use deferred release in nsHTMLDocumentSH::ReleaseDocument. r=peterv 2012-05-18 15:00:19 -07:00
Mike Hommey
311cae060f Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange 2012-06-15 15:50:24 +02:00
Ed Morley
6c0104928c Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-06-15 13:32:55 +01:00
Bobby Holley
a25e476e78 Bug 764389 - Update compartment principals on inner window reuse and on document.write. r=bz 2012-06-15 08:31:27 +02:00
Mike Hommey
88257ed076 Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Ehsan Akhgari
3786ae7bdc Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (xpconnect parts); r=bholley 2012-06-12 23:21:08 -04:00
Nicholas Nethercote
4c6045114c Bug 760352 (part 2) - Treeify non-JS-compartment KIND_OTHER memory reports where appropriate. r=jlebar.
--HG--
extra : rebase_source : 886b3d40a8dc5f7092ed35ffe280814576ca021b
2012-06-11 20:32:26 -07:00
Nicholas Nethercote
fdc3d35af5 Bug 760352 (part 1) - Allow KIND_OTHER memory reports to be in trees. r=jlebar.
--HG--
extra : rebase_source : d28d117fbc2c91069222649741f5ef6b567b3e2a
2012-06-11 20:29:12 -07:00
Fabrice Desré
4b1c5d7555 Bug 761729 - Either implement mozIDOMApplicationEvent in C++, or make WebApps use CustomEvent [r=smaug] 2012-06-14 16:03:55 -07:00
David Zbarsky
09a2e42ded Bug 764703 - Build warning in nsXPCComponents.cpp r=bholley 2012-06-14 14:08:11 -07:00
Gregor Wagner
28b0f7f0ec Bug 764928 - Support short in dictionaries. r=khuey 2012-06-14 11:28:02 -07:00
Gregor Wagner
4d146d33cd Bug 764667 - Implement ContactChangeEvent in C++. r=smaug 2012-06-14 10:13:12 -07:00
Andrew McCreight
55d2f2cfa5 Bug 753614 - enable DumpHeapComplete in non-debug builds. r=billm,smaug 2012-06-14 08:52:54 -07:00
Peter Van der Beken
071c3b12a3 Fix for bug 734503 (Add new DOM binding for TouchList). r=jst.
--HG--
extra : rebase_source : 332bf497cd68c9ea5c8a443c64c2884d4e18d2ea
2012-05-03 19:01:49 +02:00
Peter Van der Beken
bb67cfb710 Fix for bug 760131 (Quickstub argument unwrapping fails for security-wrapped list proxy and paris binding objects). r=bz.
--HG--
extra : rebase_source : 945d58f3b73f25f05528e6c6d69745215cb4793a
2012-06-01 18:24:52 +02:00
Honza Bambas
41779e1714 Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Bobby Holley
50c7e8bc6b Bug 763341 - Handle wrappers in new dom binding QI. r=bz
The |ok| parent check goes away because it's ill-conceived. All it's really checking is that proxies are parented to the global, and it's impossible to port to SpecialPowers, because SpecialPowers will think that the proxy is parented to the SpecialPowers global. I don't think this check is very important, so I removed it.
2012-06-12 15:44:21 +02:00
Bobby Holley
a2a3845832 Bug 762432 - Handle proxies on __lookupGetter__ and __lookupSetter__. r=jorendorff 2012-06-12 15:44:14 +02:00
Doug Turner
c14f720826 Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug 2012-06-10 22:50:44 -07:00
L. David Baron
c9bf4416ea Backout bug 754202 (all patches, rather than just patches 3-7). 2012-06-10 17:22:31 -07:00
Ryan VanderMeulen
9aae70bdc5 Backout 90107a2a0c64 (bug 754202) for real due to orange. 2012-06-10 19:46:20 -04:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Bobby Holley
68eb3e6ff0 Merge backout. 2012-06-11 00:28:30 +02:00
Bobby Holley
cf84d58a9f Back out bug 754202. r=me 2012-06-11 00:28:05 +02:00
Olli Pettay
ac6b89bfdb Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Gabor Krizsanits
b0dae02358 Bug 734891 - part 5: Adding optional XHR constructor to sandbox 2012-06-09 15:19:27 -07:00
Gabor Krizsanits
55c9f351c4 Bug 734891 - part 4: Using ExpandedPrincipal 2012-06-09 15:19:27 -07:00