Jonas Sicking
68ce0e34aa
Bug 774585: Rename getCodebasePrincipal to getSimpleCodebasePrincipal since the behavior has semantically changed. r=mounir
2012-07-21 00:29:40 -07:00
Jonas Sicking
240b15860e
Bug 774585: Fix xpc-sandbox creation code to create the correct principals. r=mrbkap
2012-07-21 00:29:40 -07:00
David Anderson
b93d6b9c04
Merge from mozilla-central.
2012-07-12 13:23:26 -07:00
David Anderson
56d1e29054
Merge from mozilla-central.
...
--HG--
rename : editor/libeditor/base/DeleteElementTxn.cpp => editor/libeditor/base/DeleteNodeTxn.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicBuffers.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicBuffers.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicCanvasLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicColorLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicContainerLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicContainerLayer.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicImageLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayerManager.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayersImpl.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicLayersImpl.h
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicThebesLayer.cpp
rename : gfx/layers/basic/BasicLayers.cpp => gfx/layers/basic/BasicThebesLayer.h
rename : js/src/jsobj.cpp => js/src/builtin/Eval.cpp
2012-07-10 19:45:14 -07:00
Aryeh Gregor
b83d854023
Bug 778681 part 6 - Fix some misuses of bool as nsresult; r=bz
2012-07-27 16:51:50 +03:00
Andrew McCreight
de5b0a6c69
Bug 761831 - Be less ambitious in GetMemberInfo. r=bholley
2012-07-18 13:28:58 -07:00
Bobby Holley
769558b9bf
Bug 774245 - Remove unnecessary memset. r=mccr8
2012-07-18 14:56:54 +02:00
Bobby Holley
673d7cb15b
Bug 774245 - Tests. r=mrbkap
2012-07-18 13:51:28 +02:00
Bobby Holley
025d4d99bb
Bug 774245 - Reimplement LookupMethod. r=mrbkap
2012-07-18 13:51:28 +02:00
Bobby Holley
5eac963c7a
Bug 774245 - Add WrapperFactory and XrayWrapper machinery to allow same-compartment Xray wrapping. r=mrbkap
2012-07-18 13:51:28 +02:00
Joshua Cranmer
4b8f318e78
Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
...
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Ehsan Akhgari
bbea1a843e
Bug 776660 - Return null from EnsureExpandoObject instead of false; r=bholley
2012-07-23 15:58:41 -04:00
Bobby Holley
261a5477fd
Bug 772288 - Waive Xray for target objects in Cu.import. r=mrbkap
2012-07-23 16:47:18 +02:00
Matthew Noorenberghe
b095b234fb
Bug 772288 - Tests. r=bholley
2012-07-23 16:47:18 +02:00
Bobby Holley
b883b8e23d
Bug 773962 - Tests. r=mrbkap
2012-07-23 15:51:19 +02:00
Bobby Holley
7aff4cee81
Bug 773962 - Introduce Cu.recomputeWrappers. r=mrbkap
...
It's sort of annoying to add this API just for tests, but there's not another
great way to trigger a compartment-wide transplant with Xray waivers
(since setting document.domain doesn't recompute wrappers to/from chrome, and
Xray waivers will stop being accessible to content entirely in bug 742444).
2012-07-23 15:51:18 +02:00
Bobby Holley
bb2b0385f8
Bug 773962 - Fix up waivers after transplanting. r=mrbkap
2012-07-23 15:51:18 +02:00
Bobby Holley
3ed1397a75
Bug 773962 - Refactor Xray waiving logic to allow simple lookups in the waiver map without creating a waiver. r=mrbkap
2012-07-23 15:51:18 +02:00
Mike Hommey
112c562b7e
Bug 775424 - Make cycle collection vtables rodata. r=smaug
2012-07-23 07:42:23 +02:00
Chris Jones
16256d749a
Bug 774139, part 0: Rename 'NO' typename because that's a constant in Objective-C++. r=bz
2012-07-17 16:01:56 -07:00
Gabor Krizsanits
eb91f1fcc5
Bug 769273 - part4: avoiding innerization in NukeCrossCompartmentWrappers. r=bholley
2012-07-17 17:51:21 +02:00
Ms2ger
c7a5b33778
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Ms2ger
d5a7d83516
Bug 780111 - Share code with new DOM bindings for primitive conversions in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:29:18 +02:00
Ms2ger
467078a6f2
Bug 780108 - Get rid of the double switch in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:28:45 +02:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ed Morley
bba173e66e
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
2529739530
Merge m-c to m-i.
2012-08-04 13:02:15 +02:00
Mike Hommey
4e998b1d36
Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE
2012-08-04 10:38:41 +02:00
Ms2ger
babf67cce2
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Ms2ger
395040a131
Bug 780111 - Share code with new DOM bindings for primitive conversions in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:29:18 +02:00
Ms2ger
2b7b31e7c2
Bug 780108 - Get rid of the double switch in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:28:45 +02:00
Mike Hommey
17fb6cad2d
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 08:48:56 +02:00
Eric Faust
0a5b0eec6b
Bug 742188 - Implement ToInt64 and ToUint64 per the WebIDL standard. (r=jorendorff)
2012-08-03 15:15:04 -07:00
Wes Johnston
2088574285
Bug 777706 - Backout new dom bindings for touchlists. r=smaug
2012-08-02 10:41:42 -07:00
Jason Orendorff
7e92dcab82
Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
2012-07-03 16:34:56 -05:00
Mounir Lamouri
a5975943d6
Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking
2012-07-18 21:25:19 -07:00
Mounir Lamouri
96545b3886
Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar
2012-07-18 15:27:02 -07:00
Mounir Lamouri
15ea035b93
Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking
2012-07-19 10:49:17 -07:00
Justin Lebar
54df485268
Bug 773980 - Add Components.utils.isDeadWrapper. r=bholley
...
--HG--
rename : js/xpconnect/tests/Makefile.in => js/xpconnect/tests/browser/Makefile.in
2012-07-19 12:39:43 -04:00
Terrence Cole
20f8adf7b7
Bug 772292 - Convert JSObject2WrappedJSMap to a new-style HashTable; r=mrbkap
...
--HG--
extra : rebase_source : a51ae61fde535ba18e84bec484509099101247ab
2012-07-07 16:11:54 -07:00
Jim Mathies
7f92debdd9
Bug 762519 - Send xpconnect stack dump output and javascript dump output to the win debugger when attached. r=ehsan, mrbkap
2012-07-19 09:58:44 -05:00
Makoto Kato
c63fb1198f
Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg
2012-07-19 18:53:30 +09:00
Ed Morley
80af77da9d
Backout ea6db8f420c0 (bug 770831), b51c79ee0883 (bug 774957), 020f6ed5958b (bug 758258), 11d8e19e1fca (bug 758258), 707fc51bfe2e (bug 775354), 489d944a6fe6 (bug 327244), be7df3c9d50f (bug 327244) for m-oth orange
2012-07-19 08:29:48 +01:00
Mounir Lamouri
e7de2ebedc
Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking
2012-07-18 21:25:19 -07:00
Mounir Lamouri
8a2133a405
Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar
2012-07-18 15:27:02 -07:00
Mounir Lamouri
32d220e324
Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking
2012-07-18 13:35:15 -07:00
Nathan Froyd
a7eb97f896
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Eddy Bruel
560a0f014c
Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley
2012-07-08 19:04:14 +02:00
David Anderson
8cc88ca2e4
Merge from mozilla-central.
2012-06-28 15:17:18 -07:00
Gabor Krizsanits
9a3f0c40b0
Bug 769273 - part3: Cu.nukeSandbox. r=bholley
2012-07-17 17:41:07 +02:00
Peter Van der Beken
e2daa1df74
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
2012-07-16 16:52:59 +02:00
Ehsan Akhgari
8483016620
Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky
2012-07-16 21:42:18 -04:00
Nicholas Nethercote
082c8cb32c
Bug 772615 (part 2) - Enter compartments before calling GetNativeOfWrapper() in the JS memory reporter. r=bholley.
2012-07-15 19:59:47 -07:00
Nicholas Nethercote
dc1e531d71
Bug 772615 (part 1) - Use the safe JSContext in the JS memory reporter. r=bholley.
2012-07-15 21:03:27 -07:00
David Anderson
af248c16a6
Merge from mozilla-central.
2012-06-27 11:00:48 -07:00
Bill McCloskey
55cbbbc633
Bug 765065 - Annotation for crash reports: "Are we GCing?" (r=bsmedberg)
2012-08-15 10:47:51 -07:00
Dave Townsend
703efdec92
Backing out bug 761620 due to Add-on SDK test failures.
2012-08-15 10:31:21 -07:00
Aryeh Gregor
1f5f272808
Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan
2012-08-07 17:54:44 +03:00
Eddy Bruel
ea3e60175e
Bug 70357 - Add Wrapper base class; r=bholley
2012-06-28 04:10:37 +02:00
Terrence Cole
3e3959f78e
Bug 785524 - Remove JS_MakeStringImmutable; it is no longer necessary; r=luke
...
--HG--
extra : rebase_source : bf9e007733e5f4c6ab3fcc618c3fcff3b2fb69fc
2012-08-24 15:00:38 -07:00
Andrew McCreight
3f6c58c43d
Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug
2012-08-27 10:41:04 -07:00
Gabor Krizsanits
a4a418d2ac
Bug 763897 - Incorrect behaviour of mozMatchesSelector.call through xray; r=bholley
2012-08-27 15:15:20 +02:00
Gabor Krizsanits
56e99a4fb8
Bug 738244 - Supporting DOM specific collection properties through xray wrappers; r=mrbkap
2012-08-27 15:06:34 +02:00
Benjamin Peterson
de7d529c1c
Bug 781035 - Use the C++ JS compile API in more places. r=jorendorff sr=jst
2012-08-27 08:04:37 -04:00
Jason Orendorff
f9227f858d
Bug 778851 - Disable E4X in content by default.
2012-08-26 09:04:33 -05:00
Peter Van der Beken
e44f9e5a3d
Bug 753517 part 5. Enable the list IC for new DOM bindings too. r=bz.
2012-08-24 09:32:26 -07:00
Boris Zbarsky
31276eb444
Bug 753517 part 4. Set up auto-generation of CSS2Properties.webidl from nsCSSPropList.h and enable Paris bindings for CSSStyleDeclaration and CSS2Properties. r=khuey,peterv,dbaron
2012-08-23 21:08:09 -07:00
Andrew McCreight
49d8c9be16
Bug 750570, part 1 - lift UnmarkIfPurple to the root CC participant. r=glandium,smaug
...
All CC classes are potentially cycle collectable, so we need
to implement this function on the participant for all CC classes.
2012-08-24 09:50:06 -07:00
Luke Wagner
63a0cd67e4
Fix backout to account for infallible-JSAutoCompartment change on a CLOSED TREE (no bug, r=bustage)
2012-08-23 22:12:21 -07:00
Matt Brubeck
5e47d4412f
Back out 670c8a2695b3 (bug 771354), 134557d57e6e 4ad52e488977 (bug 774607), and...
...
036eb8c2a08a d4d36e3b948f 35334e820632 6bd07fd5147d d49e7c0d762c 407f19deb14c d84551808abb (bug 774633)
on a CLOSED TREE
2012-08-23 21:34:27 -07:00
Bobby Holley
16ae087b54
Bug 780370 - Remap objects from standard prototypes even if they're explicitly exposed. r=mrbkap
2012-08-23 19:07:14 -07:00
Bobby Holley
75665c581c
Bug 780370 - Clarify the compartment situation in ChromeObjectWrapper. r=mrbkap
...
Not sure what I was thinking before. We should always be in the compartment of the wrapper here.
2012-08-23 19:07:13 -07: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
Ryan VanderMeulen
2661c4efbe
Merge m-c to inbound.
2012-07-20 17:37:53 -04:00
Olli Pettay
e326bb73c3
Bug 765947 - Preprocess the config file for generated events, r=khuey
2012-07-20 20:19:40 +03:00
Olli Pettay
d4c22e1e8d
Bug 765766 - Convert more event interface implementations to be autogenerated, r=jst
2012-07-20 19:58:28 +03:00
Olli Pettay
e9cea4305c
Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey
2012-07-20 19:42:08 +03:00
Benjamin Peterson
0d217352e9
Bug 761723 - Add test for chrome toSource. r=bz
...
--HG--
extra : rebase_source : e4e41b30d2bdb73c8f48dd01a1ad8b974604978c
2012-07-20 20:20:09 +02:00
Benjamin Peterson
78a339dd91
Bug 761723 - Add memory reporting for script sources. r=njn
...
--HG--
extra : rebase_source : 5f2cdb960f29829e9da19bbe137a810f456cc7fc
2012-07-20 20:18:08 +02:00
Nicholas Nethercote
1cf6ff22a5
Bug 773533 (part 1) - Skip XBL nodes when looking for orphan DOM nodes. r=mccr8,smaug.
...
--HG--
extra : rebase_source : 0dd533b41b1ebd73bcd83852c01cd9a64adbc26a
2012-07-18 21:10:36 -07:00
Alex Crichton
cd618d4e33
Bug 761261 - Add JS profiling to SPS (r=luke,ehsan)
...
--HG--
extra : rebase_source : 328a82697aa9a9f63d18c7a30a813f436e163922
2012-06-20 17:58:55 -07:00
Bobby Holley
3bdccb2949
Bug 601277 - Better tests for document.domain. r=mrbkap
2012-07-12 10:10:15 +02:00
Bobby Holley
bf7c218243
Bug 655649 - Stop doing dynamic security checks for document.domain. r=mrbkap
2012-07-12 10:10:15 +02:00
Bobby Holley
63851e7543
Bug 655649 - Use Subsumes Rather than Equals in XPConnect wrapper computation. r=mrbkap
...
Now that we have nsExpandedPrincipal, the current way of doing things is wrong. For some reason, the old document.domain hackery was hiding the failures here.
2012-07-12 10:10:15 +02:00
Eddy Bruel
aeda49b01d
Bug 771908 - Get rid of Wrapper::leave; r=bholley, sr=mrbkap
2012-07-11 14:01:10 +02:00
Ed Morley
8115524086
Backout a5b21cffeebf (bug 743112) for intermittent but severe leaks; a=whatafunwaytospendtheday on a CLOSED TREE
2012-07-28 18:46:27 +01:00
Bill McCloskey
f164256554
Bug 743112 - Incremental release of C++ objects during GC (r=smaug,jonco)
2012-07-27 11:27:51 -07:00
Bobby Holley
13be2afc3c
Bug 760109 - Tests. rs=mrbkap
2012-07-27 12:15:46 +02:00
Bobby Holley
5308455b1c
Bug 760109 - Override traps in ChromeObjectWrapper to bounce lookups to the local prototype chain. r=mrbkap
2012-07-27 12:15:46 +02:00
Bobby Holley
ea5054b136
Bug 760109 - Introduce an explicit ChromeObjectWrapper. r=mrbkap
...
For now it's identical to ChromeObjectWrapperBase. Custom behavior comes in the next patch.
2012-07-27 12:15:46 +02:00
Bobby Holley
b5c9747170
Bug 760109 - When COWing objects with standard prototypes, use the prototype in the home compartment instead. r=mrbkap
2012-07-27 12:15:46 +02:00
Ryan VanderMeulen
ed3645f4ca
Merge m-c to inbound.
2012-07-30 20:14:22 -04:00
Olli Pettay
1b9dbfc419
Bug 777401 - DictionaryHelpers.* build problems, r=khuey
2012-07-30 23:10:26 +03:00
Bobby Holley
8a52cd6c9b
Bug 778409 - Enter the compartment of unwrappedProto rather than obj in Rewrap. r=gabor
...
This can happen if chrome sets its proto to a content object from a different scope
than the one doing the wrapping. In this case, the prototype chain looks like this:
chromeobj => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)
When wrapping chromeobj for exampleorg_scope, things will look like this:
COW(chromeobj) => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)
Note that we don't remap the proto of CCW(examplecom_scope) to
exampleorg_scope.Object.prototype, because the proto remapping only happens when
the object we're wrapping is chrome. There's no reason it has to be this way, but
even if we changed it we still wouldn't get the nice remapped lookup behavior to
exampleorg_scope.Object.prototype, because the proxy handler for CCW(examplecom_obj)
isn't a ChromeObjectWrapper, and thus doesn't know how to to the prototype bouncing
correctly.
Anyway, I suspect this case isn't worth worrying about as long as we don't crash.
2012-07-30 22:18:55 +02:00
Jason Orendorff
eb51654418
Disable two E4X tests that were failing only on platforms using e10s content processes after landing bug 765890. no_r=orange.
2012-07-30 14:52:02 -05:00
Ted Shroyer
b97e71e237
Bug 765890 - Alter mochitests/jsreftests to pass when javascript.options.xml.content defaults to false. r=jorendorff.
...
--HG--
extra : rebase_source : 12bd1c7b597c4834424876ac797cf7c118434d5e
2012-07-20 14:00:53 -05:00
Aryeh Gregor
903f6c9c84
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Ehsan Akhgari
b40b21d633
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Brian Hackett
ffc948bbbe
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Aryeh Gregor
b6511c4a18
Bug 777292 - Add default cases to switches on nsresult; r=ehsan
2012-07-27 17:03:25 +03:00
Bobby Holley
c9e79a454a
Bug 767948 - Make assertion nonfatal. r=me
2012-06-25 15:24:21 +02:00
Bobby Holley
773b674a05
Bug 695292 - Port SimpleTest.executeSoon() to SpecialPowers. r=mrbkap
...
If we just naively use the thread manager to dispatch the event via SpecialPowers,
we cannot avoid the XPCWrappedJS for the runnable being in chrome scope (even if
we pass a content object, we make the call in chrome scope, so we pass a cross-
compartment wrapper). This means that the machinery in
nsXPCWrappedJSClass::CheckForException ends up calling the error reporter for the
SpecialPowers scope, which isn't what we want.
Messing around with the implementation of CheckForException is playing with fire.
So we work around this with an explicit Cu API. :-(
2012-08-16 18:33:27 -07:00
Bobby Holley
6c543db737
Bug 781476 - Test. r=me
2012-08-16 12:25:39 -07:00
Bobby Holley
4f30addfaf
Bug 781476 - Cross-compartment wrap same-origin objects with PreCreate even if PreCreate requests one wrapper per scope. r=mrbkap
2012-08-16 12:25:39 -07:00
Aryeh Gregor
62e166b376
Bug 779122 - nsXPCComponents_Utils::RecomputeWrappers should return nsresult, not bool; r=bholley
2012-07-31 18:24:38 +03:00
David Anderson
eccdd8879b
Merge from mozilla-central.
2012-06-26 15:37:34 -07:00
David Anderson
5708a1e047
Merge from mozilla-central.
...
--HG--
extra : rebase_source : 521cbf2f434cad88106f32be797faae4861afc39
2012-06-25 13:09:36 -07:00
Aryeh Gregor
0923bf00ef
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Peter Van der Beken
deff3652d9
Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap.
2012-06-06 21:52:26 +02:00
Luke Wagner
94264a0bc8
Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
...
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Luke Wagner
18c0268620
Bug 625199 - kill dummy frames (r=mrbkap)
...
--HG--
extra : rebase_source : df4e3bddabf20cdc5b9122370fa62b40e64177c7
2012-08-17 18:05:06 -07:00
Bobby Holley
a2d7eabc5a
Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
...
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-08-23 16:44:53 -07:00
Bobby Holley
eb79b89b74
Bug 757046 - Convert enablePrivilege into an insecure test-only construct (preffed off everywhere but in automation). r=bz
2012-08-23 11:45:28 -07:00
Luke Wagner
b275055a73
Bug 784551 - remove JSSecurityCallbacks::findObjectPrincipals (r=mrbkap)
...
--HG--
extra : rebase_source : 8043b79eb031e4c3e196f6f693fa6a8a16099ecb
2012-08-23 09:51:09 -07:00
Andrew McCreight
c661c10ad3
Bug 761620 - Throw an exception for unpreservable weak map keys. r=billm
2012-08-08 11:05:58 -07:00
Rafael Ávila de Espíndola
74a6dda7b8
Bug 771683 - Mark some functions MOZ_ALWAYS_INILINE. r=bzbarsky.
...
When compiling with gcc 4.2 these functions get inlined, but then
again, gcc 4.2 inlines almost anything.
With clang, newer versions of gcc and msvc marking these functions
with MOZ_ALWAYS_INLINE is a win. I assume part of the perf win
gcc 4.5 and msvc get with pgo is from noticing these are hot
and inlining them.
Without PGO it is hard for the compiler to know that this is a
win. With clang this does increase the codesize by about 6%.
The wins from inlining are
* Stack variables (rv in particular) which have their address taken
and are passed as outparams to these functions can go in registers.
* We find that nothing set mCcxToDestroy and ~XPCLazyCallContext
(which is already inlined) can be simplified.
2012-07-06 21:18:17 -04:00
Kyle Huey
fc74c5d76f
Bug 765936. r=bent,peterv
2012-07-06 10:28:51 -07:00
Nicholas Nethercote
3e5b5a0e50
Bug 687724 (part 4) - Re-indent JSMemoryMultiReporter's methods. r=bholley.
...
--HG--
extra : rebase_source : deba800edfc3f55a9016d29acfd91d07a56e2e62
2012-07-05 21:16:11 -07:00
Nicholas Nethercote
c27840e9f1
Bug 687724 (part 3) - Report JS memory consumption for compartments that are associated with |window| objects under "window-objects". r=bholley,jlebar,luke.
...
--HG--
extra : rebase_source : 20329a698154ef61cea74247d3dccc9f01899829
2012-07-05 21:12:37 -07:00
Bill McCloskey
2100b10524
Bug 770759 - Add mutable handles (r=bhackett)
2012-07-04 11:12:16 -07:00
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
Peter Van der Beken
13f425b97c
Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
...
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +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
e834926db5
Bug 756864 - Decrease MAX_FRAMES in XPCJSStackFrame::CreateStack (r=bhackett)
...
--HG--
extra : rebase_source : 030728d0d1d797576264a3c204db9254e7ee0328
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