Bobby Holley
4262204785
Bug 601277 - Better tests for document.domain. r=mrbkap
2012-07-12 10:10:15 +02:00
Bobby Holley
15d867f5bd
Bug 655649 - Stop doing dynamic security checks for document.domain. r=mrbkap
2012-07-12 10:10:15 +02:00
Bobby Holley
4a5e0d850d
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
38a59d2484
Bug 771908 - Get rid of Wrapper::leave; r=bholley, sr=mrbkap
2012-07-11 14:01:10 +02:00
Boris Zbarsky
ab6fc58420
Bug 771429. Instead of using bound functions for the functions we get off the sandbox proto, use a function proxy. That allows property gets on the functions to get through. r=bholley
2012-07-13 19:29:13 -04:00
Andrew McCreight
745479e48c
Bug 704623 - Track memory used by orphan DOM nodes. code=mccr8,njn. r=njn,mccr8.
...
--HG--
extra : rebase_source : f4a4b6e1b1de35a08e86130110a6fbd588093867
2012-04-20 14:01:33 +10:00
Luke Wagner
b844e5f326
Bug 772285 - rm JSPD_ARGUMENT/JSPD_VARIABLE (r=sfink)
...
--HG--
extra : rebase_source : 7be9ea3e5e90be9abd65f7d5268741e453cc717b
2012-07-10 15:34:12 -07:00
Nathan Froyd
5b30baa4c3
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
e445b70867
Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley
2012-07-08 19:04:14 +02:00
Alex Crichton
f491495a41
Bug 761261 - Add JS profiling to SPS (r=luke,ehsan)
...
--HG--
extra : rebase_source : 328a82697aa9a9f63d18c7a30a813f436e163922
2012-06-20 17:58:55 -07:00
Rafael Ávila de Espíndola
323044e9af
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
d1532c7382
Bug 765936. r=bent,peterv
2012-07-06 10:28:51 -07:00
Nicholas Nethercote
f77ae85d64
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
d9d85b82d7
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
943f752751
Bug 770759 - Add mutable handles (r=bhackett)
2012-07-04 11:12:16 -07:00
Ehsan Akhgari
cabe04854b
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
f32943d99a
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
4109621aae
Bug 703537 - Rename AbstractWrapper to IndirectWrapper; r=bholley
2012-07-04 01:20:35 +02:00
Jason Orendorff
2b0768c375
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
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Bill McCloskey
0dd01290a1
Bug 758034 - Clean up browser GC API (r=smaug)
2012-06-30 14:16:32 -07:00
Masatoshi Kimura
b320c84c6a
Bug 769119 - Treat null or undefined as an empty dictionary; r=sicking
2012-06-30 16:03:27 +02:00
Mark Banner
44847aaf72
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
70050366ad
Bug 754202 - Remove NoWaiverWrapper. r=mrbkap
...
No more principal pushing!
2012-06-28 23:47:55 +02:00
Bobby Holley
fb16bc5a98
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
99bfdd86fe
Bug 769265 - Fix these calls. r=bent
2012-06-28 16:14:11 +02:00
Eddy Bruel
4cc46d10d1
Bug 70357 - Add Wrapper base class; r=bholley
2012-06-28 04:10:37 +02:00
Bill McCloskey
69c7d77f6b
Bug 715761 - Followup fix for xpconnect tracing (r=bholley)
2012-06-27 13:45:52 -07:00
Andrew McCreight
a6de5e039d
Bug 754495, part 4 - Define CompartmentParticipant. r=smaug,billm
2012-06-27 08:09:50 -07:00
Andrew McCreight
0712620ffd
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
d2a2edb057
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
f52cfd0a51
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
552229b617
Bug 758344 - Make ContextHolder implement nsIScriptContextPrincipal. r=mrbkap
2012-06-26 22:54:18 +02:00
Nicholas Nethercote
daf67b675e
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
688fb0d230
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
722acb79a1
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
d8c8dc869d
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
28934b1f94
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
9fa48b7247
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
d3655aa616
Bug 767948 - Make assertion nonfatal. r=me
2012-06-25 15:24:21 +02:00
Luke Wagner
6a04bcb53c
Bug 756864 - Decrease MAX_FRAMES in XPCJSStackFrame::CreateStack (r=bhackett)
2012-06-23 20:47:10 -07:00
Luke Wagner
0c274df8bd
Bug 755186 - s/JS_NewCompartmentAndGlobalObject/JS_NewGlobalObject/ (r=jorendorff)
...
--HG--
extra : rebase_source : f1ead9226915f72473a01db0a1019cdbe50c8e92
2012-06-20 08:57:29 -07:00
Luke Wagner
5d7c3690be
Bug 755186 - rm JS_NewGlobalObject (r=jorendorff)
...
--HG--
extra : rebase_source : d9ba442572836406e165cdff11a646e6fd498c03
2012-06-20 08:57:29 -07:00
Steve Fink
222b385266
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
bb8f1d1cc9
Backed out changeset c33a30aedb3b (bug 764184)
2012-06-22 12:22:00 -07:00
Bill McCloskey
995b63640b
Bug 715761 - Fix build error
2012-06-22 12:12:49 -07:00
Bill McCloskey
ac4296dd82
Bug 715761 - Rename XPCWrappedNativeScope::TraceJS (r=bholley)
2012-06-22 11:37:22 -07:00
Bill McCloskey
352704a8a6
Bug 715761 - De-insanify xpconnect wrapper tracing (r=bholley)
2012-06-22 11:34:51 -07:00
Steve Fink
e0bf7c92f3
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
3a4cddc21b
Bug 767306 - Temporarily make assertion from bug 766641 non-fatal. r=me
2012-06-22 12:01:18 +02:00
Jeff Walden
fdc16c2d6a
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
34bf2a92a6
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
db2c1b417f
Bug 755255 - Remove XPCPerThreadData. r=mrbkap
...
\o/
2012-06-21 16:14:49 +02:00
Bobby Holley
25a83a9ffb
Bug 755255 - Remove thread iteration in XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
dbfd454b32
Bug 755255 - Remove mThreadData from XPCCallContext. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
6e85f24e95
Bug 755255 - Remove threadsafety checking machinery. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
7fbbe863c9
Bug 755255 - Hoist Resolving* machinery into XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
d12bcc07cc
Bug 755255 - Remove Usage of XPCPerThreadData::IsMainThread. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
2ac86947b8
Bug 755255 - Hoist auto root list into XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
e673afa8f2
Bug 755255 - Hoist pending exception junk into XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
718b02a083
Bug 755255 - Make consumers of mCallContext go through XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
1b1b37d7aa
Bug 755255 - Hoist mCallContext into XPCJSRuntime. r=mrbkap
2012-06-21 16:14:49 +02:00
Bobby Holley
d2e4d37f1e
Bug 755255 - Make consumers of GetJSContextStack go through XPCJSRuntime. r=mrbkap
2012-06-21 16:14:48 +02:00
Bobby Holley
e5ccf7ea31
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
83f0362c53
Bug 755255 - Hoist mJSContextStack into XPCJSRuntime. r=mrbkap
2012-06-21 16:14:48 +02:00
Bobby Holley
824551c799
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
976e703db3
Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage
2012-06-21 10:00:36 +01:00
Jeff Walden
1c82d6223a
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
199645d62c
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
6ca66fb5a5
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
79476e0c44
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
e1f994d15f
Merge last PGO green changeset from mozilla-inbound to mozilla-central
2012-06-20 10:53:31 +02:00
Fabrice Desré
7a73ff8ad0
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
0a16a56d7f
Bug 764916 - Replace nsDOMClassInfo::ThrowJSException with xpc::Throw. r=mrbkap
2012-06-19 19:01:10 -04:00
Andrew McCreight
e84af3afd0
Bug 763776 - refactor nsXPConnect::Traverse. r=billm
2012-06-19 11:33:00 -07:00
Mike Hommey
f600664217
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
eeca8d5fd4
Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz.
2012-06-04 21:41:51 +02:00
Terrence Cole
3caa851bc7
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
fb7e6c0e93
Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted
2012-06-07 14:41:11 -07:00
Nils Maier
624a6d1617
Bug 759783: Add identifying origin information to Javascript sandboxes. r=jlebar
2012-06-18 13:09:17 -04:00
Bobby Holley
92b4b22798
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
7bcf107d34
Bug 763433 - Clarify compartment semantics for ExposedPropertiesOnly. r=mrbkap
2012-06-18 15:47:09 +02:00
Bobby Holley
1361f9e280
Bug 763381 - Fix up compartment situation for expando objects. r=mrbkap
2012-06-18 15:28:11 +02:00
Bobby Holley
61f2c7b855
Bug 763381 - Pass cx around in more places. r=mrbkap
2012-06-18 15:28:11 +02:00
Ms2ger
587f726fbe
Bug 762436 - Get rid of the nsresult return value for nsIXPCScriptable::GetScriptableFlags(); r=mrbkap
2012-06-17 10:11:16 +02:00
Gregor Wagner
690cbd60df
Bug 764682 - Implement wifi events in c++. r=smaug
2012-06-16 11:14:12 -07:00
Boris Zbarsky
44edd4a058
Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob
2012-06-15 16:25:51 -04:00
Andrew McCreight
61537ff496
Bug 749385 - use deferred release in nsHTMLDocumentSH::ReleaseDocument. r=peterv
2012-05-18 15:00:19 -07:00
Mike Hommey
2536fb188a
Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange
2012-06-15 15:50:24 +02:00
Ed Morley
9ef4312c8c
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-06-15 13:32:55 +01:00
Bobby Holley
bb38fbaa32
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
3acf5d646d
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
3513bdbdc2
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
51b1dd666a
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
d09087aa9d
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é
e703351031
Bug 761729 - Either implement mozIDOMApplicationEvent in C++, or make WebApps use CustomEvent [r=smaug]
2012-06-14 16:03:55 -07:00
David Zbarsky
4c43b31515
Bug 764703 - Build warning in nsXPCComponents.cpp r=bholley
2012-06-14 14:08:11 -07:00
Gregor Wagner
b137c96e1a
Bug 764928 - Support short in dictionaries. r=khuey
2012-06-14 11:28:02 -07:00
Gregor Wagner
b8dd529aa2
Bug 764667 - Implement ContactChangeEvent in C++. r=smaug
2012-06-14 10:13:12 -07:00
Andrew McCreight
9731294da3
Bug 753614 - enable DumpHeapComplete in non-debug builds. r=billm,smaug
2012-06-14 08:52:54 -07:00
Peter Van der Beken
794b8397b5
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
c13ddebfa6
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
Bill McCloskey
d8f067f65f
Bug 777528 - Expose compartment names to the JS engine (r=luke)
2012-07-25 18:25:47 -07:00
Bobby Holley
99edad6d3b
Bug 776333 - Morph slim wrappers in LookupMethod. r=mrbkap
2012-07-25 18:17:40 +02:00
Honza Bambas
f29e1ac591
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
051ea1ec66
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
fb72dcee1f
Bug 762432 - Handle proxies on __lookupGetter__ and __lookupSetter__. r=jorendorff
2012-06-12 15:44:14 +02:00
Doug Turner
346de6afda
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
91859c5a28
Backout bug 754202 (all patches, rather than just patches 3-7).
2012-06-10 17:22:31 -07:00
Ryan VanderMeulen
9409d47933
Backout 90107a2a0c64 (bug 754202) for real due to orange.
2012-06-10 19:46:20 -04:00
Ryan VanderMeulen
b74e4a29db
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
061d4c2616
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Bobby Holley
c82e89c9ae
Merge backout.
2012-06-11 00:28:30 +02:00
Bobby Holley
11cffb7c78
Back out bug 754202. r=me
2012-06-11 00:28:05 +02:00
Olli Pettay
94414ed431
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Gabor Krizsanits
be6dae7869
Bug 734891 - part 5: Adding optional XHR constructor to sandbox
2012-06-09 15:19:27 -07:00
Gabor Krizsanits
0fd528e2e2
Bug 734891 - part 4: Using ExpandedPrincipal
2012-06-09 15:19:27 -07:00
Gabor Krizsanits
27c71d8c25
Bug 734891 - part 3: Cleaning up sandbox creation
2012-06-09 15:19:27 -07:00
Bobby Holley
25b91123c7
Bug 754202 - Remove NoWaiverWrapper. r=mrbkap
...
No more principal pushing!
2012-06-07 14:28:22 +02:00
Bobby Holley
59dda709f9
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-07 14:28:21 +02:00
Jason Orendorff
31a1022fa0
Bug 753542 - Add prefs to enable/disable E4X (javascript.options.xml.content and .chrome). r=bsmedberg, sr=jst.
2012-06-06 21:52:14 -05:00
Boris Zbarsky
31ccf86cf9
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Doug Turner
8934eee23b
Backed out changeset 401edab3831f - Bug 758273.
...
--HG--
extra : rebase_source : 8ce201cd3fe6a2d6405be2548927f65dab5cbb39
2012-06-08 21:33:16 -07:00
Doug Turner
24e6e84abb
Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug
2012-06-08 20:15:04 -07:00
Philipp von Weitershausen
9118053b0e
Bug 692677 - Relax same-origin XHR restrictions for privileged applications. r=sicking
...
--HG--
extra : rebase_source : 9e8e8cf2e03b6f3d148503d92630ee898bf835bb
2012-06-07 11:28:33 -07:00
Laurent Dulary
7b00eb233d
Bug 657938 (1/2) - Implement the content part of the meter element. f=mounir r=smaug,mrbkap
2012-05-16 13:18:33 +02:00
Geoff Lankow
552f02f3f1
Merge m-c to m-i
2012-06-06 15:13:51 +12:00
Geoff Lankow
1214b72681
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
David Zbarsky
fd086e43bf
Bug 591467 - Implement HTML5 Microdata API r=bz
2012-06-04 16:49:57 -07:00
Blake Kaplan
80d8c99cbf
Bug 751858 - Actually throw when we deny access. r=bholley
2012-05-04 14:22:55 +02:00
Andrew McCreight
e4d0c6ae47
Bug 761249 - abort if ClassInfo2WrappedNativeProtoMap or Native2WrappedNativeMap fail. r=bholley
2012-06-05 11:47:49 -07:00
Bobby Holley
af6f37d415
Bug 758415 - Tests. r=mrbkap
2012-06-05 19:07:38 +02:00
Bobby Holley
1e7b838781
Bug 758415 - Remove double-wrapping infrastructure for Location objects. r=mrbkap
...
This is more or less just a backout of bug 739796, that caused so much pain. Huzzah!
2012-06-05 19:07:37 +02:00
Bobby Holley
dbc58bd195
Bug 758415 - Rip out old expando architecture. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
ae7fc124b9
Bug 758415 - Switch WN Xrays to use the new expando infrastructure. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
59c1c5f462
Bug 758415 - Copy expando objects during object transplanting. r=mrbkap
2012-06-05 19:07:37 +02:00
Bobby Holley
f3bf0cee49
Bug 758415 - Implement expando object infrastructure for WN Xrays. r=mrbkap
...
Note: This overloads the naming of some of the existing infrastructure,
but the signatures etc are sufficient to disambiguate. The other infrastructure
goes away in a subsequent patch.
Note: We tag sandbox expandos with their global to make sure that the expandos
are never shared between sandboxes. A consequence of this scheme is that an
expando from a sandbox to an object will _always_ result in a GC edge back to
the sandbox, meaning that the sandbox is always kept alive for the lifetime of
the expando target. This could happen before, but only if a non-primitive expando
was placed (since the value of the expando would live in the consumer's
compartment). We could avoid this edge by using a reference-counted Identity()
object instead, but I suspect it's not worth worrying about.
2012-06-05 19:07:37 +02:00
Bobby Holley
e1c14c5c29
Bug 758415 - Refactor slim wrapper reserved slots so that we can use the same slot for expando objects in the non-slim case. r=mrbkap
...
Xray wrappers require that their wrappee be non-slim, so this works out perfectly.
2012-06-05 19:07:37 +02:00
Bobby Holley
6bb6bf930d
Bug 751995 - Handle orphaned wrappers. r=peterv
2012-06-04 10:13:18 +02:00
Jan Varga
f5f6531fb7
Bug 726593 - Implement FileHandle. r=bent
2012-06-03 18:33:52 +02:00
Phil Ringnalda
07f64cb8a8
Back out 19cfb43d77d3 (bug 751995) for Windows build bustage
2012-06-01 18:27:22 -07:00
Bobby Holley
22900b906f
Bug 751995 - Handle orphaned wrappers. r=peterv
2012-06-02 00:24:22 +02:00
Boris Zbarsky
1ead997ef4
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
7bf61e67b6
Bustage fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : 61cf7b76955aa08aa6509b77f0a85a35dd782a21
2012-06-01 18:35:09 +02:00
Boris Zbarsky
176566d5d3
Merge backout of changeset f96e0f078b49 (bug 748266)
2012-05-31 16:21:05 -04:00
Boris Zbarsky
19d2fed0a9
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
David Zbarsky
f19b65b484
Bug 759504: return NULL instead of false for getPrototype r=peterv
2012-05-31 11:47:22 -07:00
Boris Zbarsky
1dbd12b802
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Bobby Holley
717cddc4c1
Bug 760076 - Make |construct| use Wrapper::CALL. r=mrbkap
2012-05-31 18:36:15 +02:00
Bobby Holley
8a078b54cb
Bug 760070 - Make the __exposedProps__ warning appear as an error. r=bz
2012-05-31 16:28:09 +02:00
Jason Orendorff
d0e13c7d3f
Bug 753885 - Part 2: Add JSOPTION_ALLOW_XML, making E4X support optional per-context. r=Waldo.
2012-05-30 15:05:59 -05:00
Jason Orendorff
a03f10d77d
Bug 753885 - Part 1: Rename JSOPTION_XML to JSOPTION_MOAR_XML, and other cleanups. r=Waldo.
2012-05-30 15:05:58 -05:00
Ed Morley
8f3214576b
Merge mozilla-central to mozilla-inbound
2012-05-30 18:24:56 +01:00
Gervase Markham
638c878b13
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
...
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Peter Van der Beken
60a324c031
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : f676440e468c23e6c1e9458f6d75a615b9a6b8d7
2012-05-21 23:29:58 +02:00
Bobby Holley
60fe98645b
Bug 752038 - Avoid getting confused by PreCreate giving a different answer when we wrap objects cross-compartment during reparenting. r=mrbkap
2012-05-29 23:24:03 +02:00
dev
92dd78a294
Bug 755631 - Remove extraneous exceptions in Cross Origin Wrappers. r=mrbkap
2012-05-26 09:33:52 -04:00
Bill McCloskey
5563e443bb
Bug 758471 - Don't sweep native interfaces during compartment GC (r=bholley)
2012-05-25 11:06:13 -07:00
Bobby Holley
0639533b11
Bug 758563 - Warn when __exposedProps__ is missing. r=bz
2012-05-25 18:42:40 +02:00
Ms2ger
2d6f04146c
Merge m-c to m-i.
2012-05-25 11:15:32 +02:00
Ms2ger
1cdc6e0bb4
Bug 747434 - Part 3: Remove unused variable 'startingObj' from XPCWrappedNativeScope::FindInJSObjectScope; r=gabor
2012-05-25 09:18:31 +02:00
Ms2ger
74b4797fd1
Bug 758143 - Add xpc::GetCompartmentPrivate; r=bholley
2012-05-25 09:18:31 +02:00
Nils Maier
be802ad709
Bug 754771 - Add identifying information to all system compartments. r=bz
2012-05-16 19:42:10 +02:00
Gabor Krizsanits
f826dbc135
Bug 747434 - Part 2: Optional Components object in sandbox. r=bholley
2012-05-22 20:21:45 -04:00
Gabor Krizsanits
09b09ca437
Bug 747434 - Part 1: Remove DEBUG_CheckForComponentsInScope. r=bholley
2012-05-22 20:21:45 -04:00
Bill McCloskey
f5741c1847
Bug 754588 - Set rt->gcPoke when doing xpconnect unrooting (r=mccr8)
2012-05-22 14:06:58 -07:00
Ehsan Akhgari
904efc4f7a
Bug 307181 - Stage Firefox updates in the background after they're downloaded, and replace the application directory on restart; r=rstrong,bbondy
...
When Firefox downloads an update, it previously kept the update around to apply
it on the next restart. This patch changes this so that the updater program
is launched in the background as soon as the update has finished downloading
in order to stage the updated version of the application by copying the
existing installation directory to a temporary location and applying the update
on top of it, and replace the existing installation directory with the staged
directory on the next restart.
Because the replacing step is typically very fast, this patch eliminates the
wait for the update to be applied on restart, making it unnecessary to show a
progress dialog when restarting.
--HG--
rename : toolkit/mozapps/update/test/chrome/test_0092_finishedBackground.xul => toolkit/mozapps/update/test/chrome/test_0093_stagedBackground.xul
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0113_general.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0114_general.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0115_general.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test_svc/unit/test_0113_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test_svc/unit/test_0114_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test_svc/unit/test_0115_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js
2012-05-22 10:50:04 -04:00
Gervase Markham
d3c0e246ff
Bug 716478 - update line numbers in XPCshell tests, necessary because of updating licence to MPL 2 with new, shorter boilerplate.
2012-05-21 12:13:52 +01:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
f096dea33e
Rename RootedVar to Rooted, bug 756823. r=billm
2012-05-24 16:05:18 -07:00
Brian Hackett
f8aa8c3c5a
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Andrew McCreight
ba6ec2091e
Bug 714725 - use deferred release in XPC_WN_Helper_Finalize. r=bholley
2012-05-19 13:56:29 -07:00
Brian Hackett
aeda1d5c01
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Blake Kaplan
3369596da6
Bug 756584 - Crashtest for bug 720305. r=dveditz
2012-05-19 11:32:46 -04:00
Benjamin Smedberg
2187798a40
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Ms2ger
512d8ee24a
Bug 755875 - Use ValueToInt64/ValueToUint64 in XPCConvert::JSData2Native; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
5a68e74435
Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
e74680bc00
Bug 754968 - Part b: Export qsObjectHelper; r=bholley
2012-05-18 10:29:40 +02:00
Ms2ger
e0857f523a
Bug 754968 - Part a: Export xpcObjectHelper; r=bholley
2012-05-18 10:29:40 +02:00
Nicholas Nethercote
cdad96bdc7
Bug 755583 (part 1) - Introduce "sundries" entries for aggregating small entries in per-compartment memory reporters. r=luke.
...
--HG--
extra : rebase_source : 797fc0deb2a438cbb7f4c64f4c03dd4b6378e498
2012-05-16 20:43:36 -07:00
Jason Orendorff
41761a8fea
Bug 756260 - Fix up building without JS_HAS_XML_SUPPORT, again. r=terrence.
...
--HG--
extra : rebase_source : 9b0bc4f31db387e4e98821d712309792c07eac1c
2012-05-17 16:24:32 -05:00
Eddy Bruel
0f91edbc9a
Bug 703537 - Add IndirectProxyhandler; r=bholley,jorendorff
2012-05-17 13:19:37 +02:00
Nicholas Nethercote
8262af73d3
Bug 755581 (part 5) - Add "cross-compartment-wrappers" reporter. r=luke.
...
--HG--
extra : rebase_source : 1dfb5eb522008acd59f6bce5e1724af1dc0da9f0
2012-05-15 19:31:01 -07:00
Nicholas Nethercote
d3d3dcc4bc
Bug 755581 (part 4) - Add "math-cache", "script-filenames" and "compartment-objects" reporters. r=luke.
...
--HG--
extra : rebase_source : cc1fc8ff91a7b63b8a1fd48aac3b5f37c7e84393
2012-05-15 19:30:28 -07:00
Nicholas Nethercote
7ab7a4aeca
Bug 755581 (part 3) - Clean up JSRuntime::sizeOfIncludingThis(). r=luke.
...
--HG--
extra : rebase_source : 892163d96148ed86a190ee7221235dc529445fef
2012-05-15 19:29:14 -07:00
Nicholas Nethercote
977d9347ea
Bug 755581 (part 2) - Change "runtime/normal" reporter to "runtime/dtoa". r=luke.
...
--HG--
extra : rebase_source : 6dfe281494588628c3335058d333080f86bb3487
2012-05-15 19:28:31 -07:00
Nicholas Nethercote
1706a55c1d
Bug 755581 (part 1) - Change "mjit/data" reporter to "mjit-data". r=luke.
...
--HG--
extra : rebase_source : e45b376ff1710e9f1bf3b14363f884bb7fb71d48
2012-05-15 19:27:34 -07:00
Doug Turner
5cb911288f
Bug 755836 - undef near in directory helper to avoid build errors. r=kyle
2012-05-16 13:27:56 -07:00
Doug Turner
8313ba6d13
Bug 751663 - Implement new device proximity like event that fires only when the screen is close to the user's face. r=smaug
2012-05-16 13:27:54 -07:00
Ed Morley
2acc0d3f41
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-05-16 10:06:15 +01:00
Till Schneidereit
53b81d3cba
Change nsXPConnect::CheckForDebugMode to trigger one multi-compartment GC instead of individual GCs for all compartments, to fix GC pauses when switching tabs with Firebug. Bug 754201, r=jorendorff, r=sfink.
2012-05-14 18:46:51 -05:00
Andrew McCreight
47adc22ec3
Bug 701415 - Enable GC tracing info in opt builds. r=billm
2012-01-13 17:19:19 -08:00
Bobby Holley
6e3fdf4e54
Bug 553102 - Fix test_cows.xul. r=mrbkap
2012-05-24 13:04:57 +02:00
Matt Brubeck
773ffb6265
Merge mozilla-central and mozilla-inbound
2012-05-14 21:41:08 -07:00
Matt Brubeck
bb3a6fefc7
Merge last green changeset from inbound to mozilla-central
2012-05-14 14:00:57 -07:00
Mike Hommey
5262f75c2c
Bug 754625 - Use idl-parser from $(LIBXUL_DIST)/sdk/bin and only remove lex and yacc files in header.py --regen. r=khuey
2012-05-14 17:19:39 +02:00
Bobby Holley
9c60ce3d2e
Bug 753277 - Assert that all cross-scope wrapper reparenting operations are cross-compartment, and remove the conditional. r=mrbkap
...
The reindentation is pure. No snakes.
2012-05-14 12:52:17 +02:00
Tom Schuster
889e3a0487
Bug 752226 - Remove any use of JSVAL_IS_OBJECT. r=luke,Ms2ger
2012-05-11 17:46:26 +02:00
Bobby Holley
a677897390
Bug 754311 - Null out the private of soon-to-be-transplanted reflectors _after_ copying their properties onto the holder. r=mrbkap
2012-05-14 23:30:07 +02:00