Commit Graph

1381 Commits

Author SHA1 Message Date
Ed Morley
783c00c96e Merge mozilla-central to mozilla-inbound 2012-10-06 21:47:07 +01:00
Ed Morley
fd14735924 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-10-06 20:30:35 +01:00
Boris Zbarsky
93652f7aa1 Bug 796410. Make things still work right if we disable Paris list bindings. r=peterv 2012-10-06 12:21:42 -04:00
Boris Zbarsky
d111159c5b Bug 798011. Deal with JS_ValueToString failing. r=gabor 2012-10-06 12:06:24 -04:00
Ms2ger
b99bbfc3f1 Bug 795610 - Part g: Introduce custom quickstubs that call the newly introduced WebIDL APIs; r=mounir 2012-10-06 09:20:56 +02:00
Bobby Holley
d2677f7903 Bug 761695 - Put Proxy and DOM expandos on the expando object, rather than the holder. r=peterv 2012-10-05 18:59:24 +02:00
Bobby Holley
65d701d159 Bug 761695 - Hoist expando-checking (but not expando-creating) operations into common code. r=peterv
We do this for delete_, enumerateNames, and resolveOwnProperty. This doesn't change
existing behavior, because for ProxyXrayTraits and DOMXrayTraits the expando object
will (currently) always be null.
2012-10-05 18:59:24 +02:00
Bobby Holley
c0372a746c Bug 761695 - Create XrayTraits::resolveOwnProperty. r=peterv 2012-10-05 18:59:23 +02:00
Bobby Holley
b568e20af2 Bug 761695 - Reorder checks for expandos and nodePrincipal. r=peterv
Peter and I decided this was ok. We can't hoist expando stuff otherwise.
2012-10-05 18:59:23 +02:00
Bobby Holley
9f982e86a6 Bug 761695 - Implement expando traps for ProxyXrayTraits DOMXrayTraits. r=peterv
For new DOM proxies, we could probably use the Xray expando machinery for the
regular expando object as well, and free up one of the reserved slots. That's
more than I want to bite off for the moment, though.

I also decided not to block on bug 760095 and just kick the problem of globals
with new binding down the road a little bit.
2012-10-05 18:59:23 +02:00
Bobby Holley
bde8b4dc55 Bug 761695 - Move wrapper preservation stuff into a virtual trap. r=peterv
I'm not sure this stuff is correct for non-WN objects. Hopefully that will
come out in review.

Anyway, with this change, the expando infrastructure in XrayTraits is now
fully generic and non-WN-specific. To make things work for other objects,
we now need to implement the virtual traps and hoist the code that calls the
expando machinery out of XPCWrappedNativeXrayTraits.
2012-10-05 18:59:23 +02:00
Bobby Holley
83413fc2ff Bug 761695 - Make expando chain getting/setting a virtual trap. r=peterv 2012-10-05 18:59:23 +02:00
Bobby Holley
27d1f16b24 Bug 761695 - Hoist expando infrastructure into XrayTraits. r=peterv
It's still WN-only, now we can move the WN-only bits into virtual traps.

Note that the new-binding reparenting code will need to have a call to
CloneExpandoChain.
2012-10-05 18:59:23 +02:00
Bobby Holley
24447452ab Bug 761695 - Hoist Xray identification machinery into XrayWrapper, and use it for trait identification. r=peterv
We don't currently have a good way of selecting the traits used by a given Xray
wrapper. This lets us do that.

Note: We add a call to js::UnwrapObject to GetXrayType while hoisting it. When
it was used only in WrapperFactory, this was unnecessary, because |obj| was
always unwrapped. But for our new purposes, it might not be. Aside from that,
there are no changes to the function.
2012-10-05 18:59:23 +02:00
Bobby Holley
bc9563cdd3 Bug 761695 - Move Xray expando infrastructure further down in the file. r=peterv
Just cut/paste. No code changes.
2012-10-05 18:59:23 +02:00
Bobby Holley
14a7c3faef Bug 761695 - Unify holder creation and access. r=peterv
With this patch, all holders are created lazily. There are two common accessors,
getHolder() and ensureHolder(). The former returns null if no holder exists, the
latter lazily creates the holder if it doesn't exist. It does this by calling into
a virtual trap on XrayTraits, which lets the appropriate Xray type do its thing.
2012-10-05 18:59:23 +02:00
Bobby Holley
39eb44c43c Bug 761695 - Get the WN directly from the wrapper. r=peterv
All this indirection was getting seriously mucky. This, incidentally, means that
the XPCWN holder no longer needs a reserved slot pointing to the WN.
2012-10-05 18:59:23 +02:00
Bobby Holley
39b50f40b1 Bug 761695 - Hoist call and construct traps into Traits, since the current implementations are XPCWN-specific. r=peterv 2012-10-05 18:59:22 +02:00
Bobby Holley
af5508a4ff Bug 761695 - Rename getInnerObject to getTargetObject. r=peterv
The current name potentially implies that the object returned is an inner
object in the JS sense, which isn't true. Really we just want the thing
we're Xraying to.
2012-10-05 18:59:22 +02:00
Bobby Holley
8138496fa5 Bug 761695 - Hoist getInnerObject into XrayTraits. r=peterv
The only special handling here with wrapped natives is to make sure that we
bypass outer windows. But we can do this with js::UnwrapObject.
2012-10-05 18:59:22 +02:00
Bobby Holley
49a666ce37 Bug 761695 - Make Xray traits inherit from a common superclass and give them a singleton instance. r=peterv
There's some code that can be shared between different Xray traits, but can't
(yet) be hoisted into XrayWrapper, because it needs to be callable from outside
XrayWrapper where we don't have the appropriate template parameters. Moreover,
this code benefits from virtual function specialization. The use case here is
illuminated in the next patch.

For the moment, we skip converting the bulk of the traits calls to virtual
methods, because they're working just fine.
2012-10-05 18:59:22 +02:00
Bobby Holley
95a9308d91 Bug 761695 - Stop stashing a raw WN pointer in XPCWN Xray holders. r=peterv
We might as well do this dynamically, which simplifies the code. Note that we
could avoid the reserved slot by parenting the holder to the wrapper. But the
JS parent API is deprecated, and we need to move away from it to reserved slots
anyhow. We might as well start here, with the added advantage that parenting
to the global makes us consistent with the other Xray types.
2012-10-05 18:59:22 +02:00
Bobby Holley
0d9f3281b6 Bug 761695 - Simplify XPCWN Xray holder creation. r=peterv
The major semantic change here is that we parent holders directly to their
global. This should be fine.
2012-10-05 18:59:22 +02:00
Bobby Holley
f044136221 Bug 761695 - Fix inaccurate commenting. r=peterv
The .wrappedJSObject property only exists when the Xray wrapper subsumes the wrappee.
2012-10-05 18:59:22 +02:00
Benoit Jacob
6ee7b9f2c3 Bug 779611 - reland parts 5-8 - port WebGLTexture, WebGLBuffer, WebGLFramebuffer, WebGLRenderbuffer, WebGLShader, WebGLProgram to WebIDL bindings - r=bz 2012-10-04 16:35:54 -04:00
Benoit Jacob
631713204c back out 6f3714945438, 5732dca84958, bfb93cf89612, e697a832c60b for Mac build error 2012-10-04 15:06:31 -04:00
Benoit Jacob
47ecb7bdce Bug 779611 - part 8 - port WebGLShader and WebGLProgram to WebIDL bindings - r=bz 2012-10-04 14:45:35 -04:00
Benoit Jacob
11b1af470b Bug 779611 - part 7 - port WebGLFramebuffer and WebGLRenderbuffer to WebIDL bindings - r=bz 2012-10-04 14:45:33 -04:00
Benoit Jacob
e3e1db192c Bug 779611 - part 6 - port WebGLBuffer to WebIDL bindings - r=bz 2012-10-04 14:45:32 -04:00
Benoit Jacob
e406e56db1 Bug 779611 - part 5 - port WebGLTexture to WebIDL bindings - r=bz 2012-10-04 14:45:25 -04:00
Bobby Holley
f0f37be93f Bug 797583 - Remove bogus assertion. r=mrbkap 2012-10-04 11:56:51 +02:00
Gabriele Svelto
4772ae075b Bug 739780 - Switch Telephony.cpp to use nsTArrayHelpers.h implementation of nsTArrayToJSArray. r=khuey, r=mrbkap 2012-09-28 10:43:49 -07:00
Benoit Jacob
5d519163f1 Bug 779611 - part 3 - port WebGL extensions to WebIDL bindings, refactor them - r=bz,jgilbert 2012-10-03 17:13:05 -04:00
Benoit Jacob
08fc05d7cf Bug 779611 - part 2 - drop old bindings for WebGLUniformLocation - r=bz 2012-10-03 17:13:05 -04:00
Benoit Jacob
545b47b406 Bug 779611 - part 1 - port WebGLShaderPrecisionFormat to WebIDL bindings - r=bz 2012-10-03 17:13:05 -04:00
Andrew Quartey
21f22f5076 Bug 792581 - part 5: Replace LL_CMP macro with standard comparison. r=ehsan 2012-10-03 10:13:19 -04:00
Bobby Holley
2765270430 Bug 795275 - Telemetry. r=mrbkap 2012-10-03 11:44:18 +02:00
Bobby Holley
811b9ca7d7 Bug 795275 - Warn about content access to |Components|. r=mrbkap 2012-10-03 11:44:18 +02:00
Bobby Holley
9233e2ca89 Bug 795275 - Turn Components into a JS value getter for content scopes. r=mrbkap 2012-10-03 11:44:18 +02:00
Bobby Holley
94833f2614 Bug 795275 - Introduce an explicit mechanism for determining if a script is from XBL. r=mrbkap
We want this right now so that we can avoid the scary warning when content Components
access happens in XBL (which we're allowing going forward). This patch would be overkill
just for that, but I also have plans to introduce a SOW-like protection of the Components
wrapper filtering policy. I can't just do the filename hack for that though, because real-
world XBL filenames might be all over the place. So let's just be safe here.
2012-10-03 11:44:18 +02:00
Bobby Holley
4d764c2439 Bug 795275 - Clean up isSystemOnlyAccessPermitted. r=mrbkap
A lot of this stuff can be simplified now, and we can stop using the deprecated APIs.
2012-10-03 11:44:18 +02:00
David Mandelin
f6499768c2 Bug 750019: disable optimizations for nsIDOMHTMLDocument_Write on MSVC, r=bz
--HG--
extra : rebase_source : 00230976a1242a20c95dc7e9f841d872114d717a
2012-10-02 12:35:37 -07:00
Masatoshi Kimura
cd478498cf Bug 795544 - Make StringEncoding API available from xpcshell/jsm. r=bz 2012-10-02 20:14:38 -04:00
Ms2ger
de6e52ff9d Bug 795300 - Remove xpc_GetGlobalForObject; r=bholley 2012-10-02 10:24:11 +02:00
Ms2ger
1dc715e66f Bug 795301 - Demacroize IS_{SLIM,WN}_WRAPPER{,_OBJECT}; r=bholley 2012-10-02 10:24:11 +02:00
Ms2ger
4c9dcdaa6d Bug 793116 - Remove nsISupports argument to xpc_CreateGlobalObject; r=bholley 2012-10-02 10:24:11 +02:00
Ms2ger
37c3d933eb Bug 793482 - Use xpc::GetCompartmentPrivate in a few more places; r=bholley 2012-10-02 10:24:11 +02:00
Ms2ger
db5221a631 Bug 780151 - Part b: Don't hand out ThisTranslators; r=bz 2012-10-02 10:24:08 +02:00
Ms2ger
d19a1ada0a Bug 780151 - Part a: Remove unused arguments to TranslateThis; r=bz 2012-10-02 10:22:32 +02:00
Ms2ger
ea90d0c98b Bug 780146 - Part d: Inline mozilla::dom::binding::DefineConstructor; r=bz 2012-10-02 10:07:36 +02:00
Bobby Holley
54469cd1cc Bug 794912 - Remove dynamic privilege check in isCrossOriginAccessPermitted. r=mrbkap 2012-10-01 23:13:49 +02:00
Peter Van der Beken
b5b5988316 Fix for bug 791774 (Hook DOM lists up to the new DOM bindings). r=bz.
--HG--
extra : rebase_source : 873020edd9cd3defc932d77bd26b5d65ebf263cb
2012-06-13 17:18:30 +02:00
Peter Van der Beken
225e9ed8d3 Fix for bug 791347 (Support non-nsISupports refcounted natives and non-refcounted natives in new DOM bindings). r=bz/smaug.
--HG--
extra : rebase_source : cd6d98461d7fa3a07fa1361b4d840448122b6655
2012-09-19 15:02:37 +02:00
Kyle Huey
03cf2b648a Bug 792625: Fix xpcshell to accept non-ASCII command line arguments on Windows. r=bsmedberg 2012-09-30 09:45:05 -07:00
Inder Kumar ext:(%20and%20Mike%20Habicher%20%3Cmhabicher%40mozilla.com%3E)
d8f8957970 Bug 776062: Add support for recording video on gonk. r=cjones,double,ikumar,mikeh sr=sicking 2012-09-28 22:30:52 -07:00
Isaac Aggrey
0cc4b12d36 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Makoto Kato
c4ab668c8d Bug 786579 - Remove old MSVC (<=2003) support. r=khuey 2012-09-28 16:02:40 +09:00
Mark Banner
3e12fb40c3 Bug 793580 - Part 1: Use unsigned types in ExceptionArgParser::parseResult; r=ehsan
--HG--
extra : rebase_source : 456e3643b4d5cac96d2c6f0435581e9502037c79
2012-09-27 14:19:06 -04:00
Aryeh Gregor
48707f546c Bug 779809 part 1 - Make [notxpcom] attributes an error; r=khuey 2012-08-09 11:31:14 +03:00
Terrence Cole
185355684f Bug 791322 - Move Rooted to js:: namespace; r=billm
These should not be part of the public API.

--HG--
extra : rebase_source : 00a69ee54f06e3f557cd9ec2f3b059df10aa32df
2012-09-24 18:08:22 -07:00
Bill McCloskey
5a5da681b3 Bug 787856 - Use lazy protos for cross-compartment wrappers (r=bholley) 2012-09-03 16:42:22 -07:00
Bill McCloskey
f13e8e29d9 Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett) 2012-09-03 16:42:17 -07:00
Bill McCloskey
83bc2a1a11 Bug 787856 - Convert js::GetObjectProto to support lazy protos (r=bhackett) 2012-09-03 16:42:10 -07:00
Ryan VanderMeulen
a76e94c127 Backout bug 792215 for suspected Windows m-oth leaks.
CLOSED TREE
2012-09-25 22:40:56 -04:00
Kannan Vijayan
07bdefab0b Bug 792215 part 2. Convert old proxy bindings to JSNative getters and setters. r=peterv,ejpbruel 2012-09-25 14:44:40 -04:00
Boris Zbarsky
1b97afe0c2 Bug 792215 part 1. Convert quickstubs to using JSNative getters and setters. r=peterv 2012-09-25 14:44:40 -04:00
OHZEKI Tetsuharu
daed5dec1d Bug 791944 - Use Object.defineProperty() instead of __defineGetter__ in XPCOMUtils.defineLazyGetter(). r=mak77 2012-09-25 11:04:25 -04:00
Benoit Jacob
e87660d62e Bug 750862 - Implement WEBGL_compressed_texture_pvrtc - r=jgilbert 2012-09-25 08:49:28 -04:00
Benoit Jacob
8a05af4222 Bug 790712 - Implement WEBGL_compressed_texture_atc - r=jgilbert 2012-09-25 08:49:28 -04:00
Bobby Holley
5af5a73d3d Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
c64d31c5e0 Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Bobby Holley
4c9f632b1a Bug 792036 - Fix sandbox xpcshell tests. r=gabor
I want gabor to look at these.
2012-09-24 14:46:28 +02:00
Bobby Holley
243891d310 Bug 792036 - Add a SpecialPowers API to provide access to the Components object in various forms. r=mrbkap,ted
Now that window.Components is no longer acccessible to page JS, we need a way
to access it in mochitests. So this patch provides SpecialPowers.Components,
which is the bonafide Components object for the window upon which SpecialPowers
is defined. It also provides SpecialPowers.{Cc,Ci,Cr,Cu}, which are SpecialPowers-wrapped
versions of their respective sub-objects (with the exception of Ci, which is unwrapped).
2012-09-24 14:46:27 +02:00
Bobby Holley
644293203f Bug 792036 - Factor out glue code to get the JS Components object for a scope. r=mrbkap 2012-09-24 14:46:27 +02:00
Bobby Holley
ad2fb92189 Bug 792036 - Refactor AttachComponentsObject API to allow an explicit target. r=mrbkap
The aGlobal API is currently unnecessary, since it should always be equal to the global obtained from the scope. But we'll want to manually specify the target object in subsequent patches, so make it an optional argument that's currently never passed.
2012-09-24 14:46:27 +02:00
Ehsan Akhgari
0b8f2ca21e Bug 777292 - Make sure that the Components.lastResult is interpreted as unsigned integers; r=bzbarsky 2012-09-21 14:45:57 -04:00
Ehsan Akhgari
4fd0db2bd0 Bug 777292 - Make sure that the Components.results values are interpreted as unsigned integers; r=bholley 2012-09-20 09:11:20 -04:00
Gabor Krizsanits
50ba9028bd Bug 785096: part3: Removing ccx from codegen/qsgen. r=bholley 2012-09-20 15:04:28 +02:00
Gabor Krizsanits
88396c531b Bug 785096 - part2: Removing XPCCallContext dependency from XPCVariant; r=bholley 2012-09-20 15:03:28 +02:00
Gabor Krizsanits
1bd6e5b970 Bug 785096 - part1: Moving dom string cache from XPCCallContext to XPCJSRuntime. r=bz 2012-09-20 15:01:37 +02:00
Ms2ger
5b4f3272e0 Merge PGO-green changeset from m-i to m-c. 2012-09-20 11:51:47 +02:00
Ms2ger
8222a8a563 Bug 776239 - Unpref XHR bindings; r=bz 2012-09-20 09:55:37 +02:00
Ms2ger
369cb4e081 Bug 792474 - Don't JS_ASSERT in xpconnect; rs=bholley 2012-09-20 09:55:37 +02:00
Ms2ger
33b350e909 Bug 776243 - Unpref WebGL context bindings; r=peterv 2012-09-20 09:55:36 +02:00
Ms2ger
3d4e14ce4c Bug 791566 - Update old new proxy bindings to BaseProxyHandler::hasInstance changes; r=terrence 2012-09-20 09:55:36 +02:00
Gabor Krizsanits
a7ba877db5 Bug 791845 - mozMatchesSelectorStub should return false on error. r=bholley 2012-09-19 10:53:42 +02:00
Luke Wagner
e61972c84b Bug 792235 - rm JS_SuspendRequest (r=mrbkap)
--HG--
extra : rebase_source : 63484578f26b009c1c6dc555c736aaa1b71d1e4a
2012-09-04 14:43:25 -07:00
Luke Wagner
0ebf25f2e4 Bug 792237 - don't expose outstanding request count, just whether a context is active (r=mccr8)
--HG--
extra : rebase_source : 319ebfef9b1212619f9d7b6132c326587cc7625d
2012-09-04 15:22:05 -07:00
Nicholas Nethercote
fe84216e70 Bug 747202 - Separate and clean up JaegerMonkey's and IonMonkey's memory reporting. r=dvander. 2012-09-19 18:16:49 -07:00
Peter Van der Beken
d21c8a19b6 Fix for bug 788532 (Add the new DOM bindings API to DOM lists). r=bz.
--HG--
extra : rebase_source : 18e21a786b6a9cc2aeada52ba5ca3a2614cb596b
2012-09-05 22:49:53 +02:00
Andrew Quartey
d72ecf6812 Bug 791091 - Fix build warnings in XPConnect. r=jorendorff 2012-09-14 15:00:01 -04:00
Ehsan Akhgari
a996a4a62d Bug 579517 follow-up: Remove NSPR types that crept in 2012-09-14 14:55:01 -04:00
Terrence Cole
ebe3bd6fcf Bug 788359 - Remove unused argumentFormatMap and associated API; r=dmandelin
This removes some fiddly code sitting around completely unused and untested.

--HG--
rename : layout/base/tests/chrome/blue-32x32.png => layout/reftests/backgrounds/blue-32x32.png
rename : mobile/android/config/mozconfigs/android-noion/nightly => mobile/android/config/mozconfigs/android/nightly
extra : rebase_source : 68192aba59396a37242ee2aa266621dbea513171
2012-09-04 17:17:21 -07:00
Gina Yeh
c74551e934 Bug 789014 - Final version: Broadcast bonding-related events via system message, r=qdot, r=mrbkap 2012-09-12 22:03:42 +08:00
Ehsan Akhgari
b1bf75409d Merge IonMonkey into mozilla-inbound 2012-09-11 16:38:44 -04:00
David Anderson
7397353ad1 Merge IonMonkey to mozilla-central. a=arewefastyet
--HG--
rename : content/base/src/nsWebSocket.cpp => content/base/src/WebSocket.cpp
rename : content/base/src/nsWebSocket.h => content/base/src/WebSocket.h
2012-09-11 10:25:14 -07:00
Bobby Holley
69477ff25f Bug 788914 - Kill the XOW flag. r=mrbkap
There are really two questions to be asked: is the caller chrome, and does the
caller subsume the callee. We have other, more precise ways of asking both of
these questions.
2012-09-11 01:05:10 -07:00
Bobby Holley
395ad03437 Bug 788914 - Kill partially transparent wrappers. r=mrbkap 2012-09-11 01:05:10 -07:00
Bobby Holley
98aa19a8be Bug 788914 - Remove dynamic UniversalXPConnect checks sprinkled around the wrapper code. r=mrbkap 2012-09-11 01:05:10 -07:00
Bobby Holley
29a085d3bc Bug 788914 - Recompute cross-compartment wrappers when UniversalXPConnect is enabled. r=mrbkap 2012-09-11 01:05:10 -07:00
Bobby Holley
a163a6189b Bug 788914 - Generate vanilla cross-compartment wrappers when UniversalXPConnect is enabled. r=mrbkap 2012-09-11 01:05:10 -07:00
Eddy Bruel
7e5561a777 Bug 720619 - Attempt a puncture for the [[DefaultValue]] trap; r=bholley 2012-09-11 21:42:01 +02:00
Bobby Holley
f82cbc37b3 Bug 789713 - Ignore domain when computing whether to share non-PreCreate WNs cross-compartment. r=mrbkap 2012-09-11 10:23:20 -07:00
David Anderson
37976f8d18 Merge from mozilla-central. 2012-09-10 12:16:38 -07:00
Daniel Holbert
f8dfa24152 Bug 789382: Change nsIScriptError methods init() and initWithWindowID() to take nsAString, rather than wchar / PRUnichar*. r=bz sr=bsmedberg 2012-09-09 16:29:12 -07:00
David Anderson
300951e360 Merge from mozilla-central. 2012-09-07 15:17:11 -07:00
Ed Morley
8cf4ffc2ea Backout 5853df66d488, e8fadd906232, d787279d282c, 8c1ed6327355, 94cfcf5da7c8, 87aa103d7e87 (bug 585922) for failures in test_bug411236.html 2012-09-07 09:15:34 +01:00
Bobby Holley
263394dbe4 Bug 788914 - Kill the XOW flag. r=mrbkap
There are really two questions to be asked: is the caller chrome, and does the
caller subsume the callee. We have other, more precise ways of asking both of
these questions.
2012-09-06 22:55:18 -07:00
Bobby Holley
4a03556c3e Bug 788914 - Kill partially transparent wrappers. r=mrbkap 2012-09-06 22:55:18 -07:00
Bobby Holley
b5dd375098 Bug 788914 - Remove dynamic UniversalXPConnect checks sprinkled around the wrapper code. r=mrbkap 2012-09-06 22:55:18 -07:00
Bobby Holley
4ca571cde3 Bug 788914 - Recompute cross-compartment wrappers when UniversalXPConnect is enabled. r=mrbkap 2012-09-06 22:55:18 -07:00
Bobby Holley
325c6bae80 Bug 788914 - Generate vanilla cross-compartment wrappers when UniversalXPConnect is enabled. r=mrbkap 2012-09-06 22:55:18 -07:00
David Anderson
cb5e844dd9 Merge from mozilla-central. 2012-09-06 18:28:59 -07:00
David Anderson
7b70ee195a Merge from mozilla-central.
--HG--
rename : js/jsd/jsd_scpt.c => js/jsd/jsd_scpt.cpp
rename : js/jsd/jsd_stak.c => js/jsd/jsd_stak.cpp
rename : js/jsd/jsd_val.c => js/jsd/jsd_val.cpp
2012-09-05 16:18:11 -07:00
David Anderson
156a49533c Bustage fix. 2012-08-29 21:59:32 -07:00
David Anderson
94b6346826 Merge bustage, part 3. 2012-08-29 20:57:37 -07:00
David Anderson
59aad86af4 Merge from mozilla-central.
--HG--
rename : js/src/sharkctl.cpp => js/src/devtools/sharkctl.cpp
rename : js/src/sharkctl.h => js/src/devtools/sharkctl.h
rename : js/src/MemoryMetrics.cpp => js/src/jsmemorymetrics.cpp
2012-08-29 17:57:37 -07:00
David Anderson
9e81520770 Merge from mozilla-central.
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-29 17:51:24 -07:00
Luke Wagner
c692b48100 Bug 786068 - make JS_EnterCrossCompartmentCall infallible (and call it JS_EnterCompartment) (r=sfink) 2012-08-27 13:32:51 -07:00
Luke Wagner
3595a4cdb6 Bug 749371 - Break JS_ClearScope into two not-as-bad functions (r=mrbkap) 2012-08-23 11:23:28 -07:00
Ehsan Akhgari
3fe9afbeb3 Bug 786375 - Remove AutoScriptEvaluate::mContextHasThread since it is unused; r=bholley 2012-09-06 21:59:33 -04:00
David Anderson
fd50a14c90 Merge from mozilla-central. 2012-08-22 16:09:24 -07:00
David Anderson
f3d3148ca7 Merge from mozilla-central. 2012-08-21 15:59:12 -07:00
Bobby Holley
7e122c271a Backed out changeset 61e9eaf9aae2
--HG--
extra : rebase_source : 30fb2e7a057482412d29a96f8b8e98135beb6a79
2012-08-20 21:07:07 -07:00
Bobby Holley
db7c7123df Bug 784233 - Relax __exposedProps__ check for sandboxes until we can repack AMO addons. r=gal 2012-08-20 21:03:44 -07:00
Gina Yeh
2326b507ac Bug 783454 - v1: Create devicefound event with event generator, r=qdot 2012-08-21 10:54:28 +08:00
David Anderson
5d981ba8fe Merge from mozilla-central. 2012-08-16 14:04:20 -07:00
David Anderson
348793a989 Remove JS_FrameIterator (bug 732653, r=luke,mrbkap). 2012-08-15 17:28:33 -07:00
David Anderson
f29decd8b9 Merge from mozilla-central. 2012-08-15 14:22:26 -07:00
Ryan VanderMeulen
f1e04816ea Merge m-c to inbound. 2012-08-20 20:21:35 -04:00
Olli Pettay
e1b92aea91 Bug 783856 - Autogen PopupBlockedEvent, r=jst 2012-08-20 11:26:34 -07:00
Olli Pettay
b7316c9dd3 Bug 783376 - codegenerator should be able generate implementations which inherit other simple events, r=khuey 2012-08-20 11:20:25 -07:00
Gina Yeh
d32750b34d Bug 778640 - Final version: Firing devicedisappeared event, r=qdot, r=smaug
---
 dom/bluetooth/BluetoothAdapter.cpp                 |   16 ++++++++++++++-
 dom/bluetooth/Makefile.in                          |    1 +
 .../nsIDOMBluetoothDeviceAddressEvent.idl          |   21 ++++++++++++++++++++
 js/xpconnect/src/event_impl_gen.conf.in            |    3 +++
 4 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 dom/bluetooth/nsIDOMBluetoothDeviceAddressEvent.idl
2012-08-20 12:23:32 +08:00
David Anderson
3d58883052 Merge from mozilla-central. 2012-08-14 12:20:09 -07:00
David Anderson
0e509b2165 Merge from mozilla-central. 2012-08-13 13:40:42 -07:00
Mark Capella
9aedb93f44 Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Misc Folders, r=ted
Content, DOM, Image, JS, RDF, and URILoader folders
2012-08-14 10:06:17 -04:00
Andrew McCreight
b5f18e04c7 Bug 775424 - Make JSCompartmentParticipant vtable rodata. r=glandium 2012-08-14 06:35:48 -07:00
Alexander Boldyrev
f61c980db5 Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Ryan VanderMeulen
212cdce23a Merge inbound to m-c. 2012-08-11 22:33:42 -04:00
Masayuki Nakano
acbe3bbdd7 Bug 719320 part.1 Add DOM3 WheelEvent r=smaug, sr=jst 2012-08-12 10:42:34 +09:00
Honza Bambas
5fe7a22e2c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
David Anderson
018c2a9a6a Merge from mozilla-central. 2012-08-09 13:41:13 -07:00
Bill McCloskey
c08859c880 Bug 781945 - Improve GC telemetry (r=mccr8) 2012-08-13 10:30:44 -07:00
David Anderson
88429440a3 Merge from mozilla-central. 2012-08-08 15:09:49 -07:00
Ehsan Akhgari
217645f36e Bug 579517 - Part 4: Manually rewrite some parts of the code base not covered by the automated conversion; r=bsmedberg 2012-08-22 11:59:54 -04:00
Ehsan Akhgari
2371757ee1 Bug 579517 - Part 2: Make the IDL parser aware of stdint types; r=bsmedberg 2012-08-22 11:57:22 -04:00
Ehsan Akhgari
8c296bbcd4 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Bobby Holley
826e13d885 Bug 784233 - Relax __exposedProps__ check for sandboxes until we can repack AMO addons. r=gal 2012-08-21 10:27:08 -07:00
David Anderson
9f806b608d Merge from mozilla-central. 2012-08-07 15:13:28 -07:00
Bobby Holley
2fd623ff39 Bug 553102 - Make content-> access default to deny if __exposedProps__ is not defined. r=mrbkap 2012-08-17 23:14:55 -07:00