Aryeh Gregor
62ddd9835d
Bug 799917 - Make document.characterSet always lowercase; r=bz,f=hsivonen,smontagu
2012-10-14 10:13:19 +02:00
Aryeh Gregor
0159561890
Bug 799905 - .URL and .compatMode should be defined on Document, not HTMLDocument; r=bz
2012-10-11 14:48:31 +02:00
Andrew Quartey
6d6e443bea
Bug 792581 - part 16: Replace LL_L2UI macro with uint32_t cast. r=ehsan
2012-10-12 13:29:11 -04:00
Justin Lebar
8bc3711527
Bug 798510 - Part 1: Use mincore to correctly calculate js::StackSpace::sizeOfCommitted() on *nix. r=luke,njn
...
Previously, we assumed all memory was committed, thus vastly overstating the memory used by our stack.
2012-10-12 10:26:06 -04:00
Ed Morley
f63fc6d67a
Backout 3044539fec87 (bug 799465),2dbcd6d16b43 (bug 798264), f7019f73a5f0 (bug 711628), a484a3a904da, 7154061ddc00 & 7e7fc42021c1 (bug 799465) for burning
2012-10-12 14:45:38 +01:00
Peter Van der Beken
cca0b00f72
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
...
--HG--
extra : rebase_source : 42b0e6db4b418901f253d66e7323ba5a7cd83eea
2012-09-26 20:12:15 +02:00
Nicholas Cameron
38e86da9ce
Bug 734668; reviewer's changes. r=Ms2ger,roc
...
--HG--
rename : content/canvas/src/nsCanvasRenderingContext2DAzure.cpp => content/canvas/src/CanvasRenderingContext2D.cpp
extra : rebase_source : 827a45dd8cc2bdc77e850e8b1d1e23e9f2f72f7d
2012-10-12 22:42:53 +13:00
Nicholas Cameron
f6ed7d8545
Bug 734668; remove canvas quickstubs. r=Ms2ger
...
--HG--
extra : rebase_source : ceefaf29933c58a0605d60a599fddf31b0c1b229
2012-10-12 22:42:53 +13:00
Ehsan Akhgari
b648831e48
Backout bug 798510 because of xpcshell orange
2012-10-11 20:17:33 -04:00
Trevor Saunders
e2db6e1941
bug 798595 - remove useless prmem.h includes r=ehsan
2012-10-04 02:14:06 -04:00
Justin Lebar
8fec04f307
Bug 798510 - Part 1: Use mincore to correctly calculate js::StackSpace::sizeOfCommitted() on *nix. r=luke,njn
...
Previously, we assumed all memory was committed, thus vastly overstating the memory used by our stack.
2012-10-11 18:55:53 -04:00
Bobby Holley
6fc4e9f7b4
Bug 799348 - When creating a new content window, create the surrounding chrome docshell as system. r=bz
2012-10-11 19:44:20 +02:00
Bobby Holley
f7a738fe51
Bug 797204 - Remove API. r=mrbkap
...
\o/
2012-10-10 11:01:26 +02:00
Bobby Holley
bb0dcf4cec
Bug 797204 - Consolidate XBL filename hack logic into nsContentUtils. r=mrbkap
...
These two functions do the exact same thing, as far as I can tell.
2012-10-10 11:01:26 +02:00
Bobby Holley
66ae5f7ba6
Bug 789224 - Remove chrome check in xpc_EvalInSandbox. r=mrbkap
...
This function is also called to evaluate javascript:// URIs, at which point the chrome caller assumption isn't actually valid. Let's just do the modern thing here, and fix up the caller that breaks.
2012-10-10 11:01:26 +02:00
foudfou
590da7acb9
Bug 793433 - Fix crash when nsAppShellService::RegisterTopLevelWindow called with invalid arguments. r=bholley
...
--HG--
extra : rebase_source : 2f3be0e474c727ea5a58177809bf3af1f34477ec
2012-10-09 11:56:58 +02:00
Ehsan Akhgari
8c79cf043e
Bug 799432 - Backout changeset 30ab4e1d4874 and changeset dbcc29e9fcf6 from bug 777292 since they're no longer necessary with bug 795238
2012-10-09 16:01:24 -04:00
Benoit Jacob
646cd8342f
Bug 779611 - part 9: port WebGLActiveInfo to WebIDL bindings - r=bz
2012-10-09 14:39:49 -04:00
Chris Peterson
32d196ae2a
Bug 799307 - Remove some XPCDebug.cpp cruft that was obsoleted by bug 787856. r=billm
2012-10-08 17:29:47 -07:00
Bobby Holley
d0d995d7bd
Bug 786142 - Make sure we have a real WN in MoveWrappers. r=peterv
2012-10-09 17:28:13 +02:00
Gabor Krizsanits
f8f14a142c
Bug 684601 - window.toString.call() with native JS Object; r=bz
2012-10-09 17:21:53 +02:00
Nicholas Nethercote
d87477d4a5
Bug 799019 - Tweak per-compartment memory reporting. r=Ms2ger.
...
--HG--
extra : rebase_source : 66bab372c7b3a7f4cebfd059b4c64a7562ba1f5d
2012-10-08 15:20:26 -07:00
Nicholas Nethercote
ec2a55e12e
Bug 799000 - Don't double count when memory-reporting for JSObject2WrappedJSMap. r=terrence.
...
--HG--
extra : rebase_source : 77553d19751c45e050b5945bb0813dd7155dfea6
2012-10-08 15:20:13 -07:00
Hsin-Yi Tsai
08d0c6eae8
Bug 783525 - part 1 - idl and DOM impl for ICCCardLockErrorEvent. r=smaug, sr=sicking
2012-10-03 14:29:07 +08:00
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
Bill McCloskey
ca6a8c8bbc
Bug 783147 - Collect telemetry for SCC GC sweeping (r=mccr8)
2012-08-17 18:44:54 -07:00
Bobby Holley
e80993f0d4
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-17 15:13:23 -07:00
Bill McCloskey
8bb5f2651f
Backout bug 783147 (12753a1a11b8 and 0a70fc2d7d25) for WinXP dbg M-3 failures
2012-08-17 12:55:52 -07:00
Bill McCloskey
b34884ecdf
Bug 783147 - Send telemetry about SCC GC times (r=mccr8)
2012-08-17 10:05:11 -07:00
Gabor Krizsanits
51367636f4
Bug 779821 - safe XHR creation for sandboxes
2012-08-15 11:00:21 +02:00
Aryeh Gregor
5cb11391e0
Bug 782594 - Use NS_FAILED instead of boolean test (content/, js/xpconnect/, layout/); r=bz
2012-08-07 17:58:47 +03:00
Phil Ringnalda
d8f4aa9d3c
Back out e6761635f9cf (bug 695292) for Android mochitest bustage on a CLOSED TREE
2012-08-16 21:35:53 -07:00
Chris Pearce
8406326152
Bug 778640 - Backout due to burning. r=bustage
2012-08-17 16:22:25 +12:00
Gina Yeh
f86eea38b2
Bug 778640 - Final version: Firing devicedisappeared event, create nsIDOMBluetoothDeviceAddressEvent by event generator, r=qdot, r=smaug
...
---
dom/bluetooth/BluetoothAdapter.cpp | 17 +++++++++++++++-
dom/bluetooth/Makefile.in | 1 +
.../nsIDOMBluetoothDeviceAddressEvent.idl | 21 ++++++++++++++++++++
js/xpconnect/src/event_impl_gen.conf.in | 3 ++-
4 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 dom/bluetooth/nsIDOMBluetoothDeviceAddressEvent.idl
2012-08-17 12:02:52 +08:00
David Anderson
02b557e2ee
Merge from mozilla-central.
...
--HG--
rename : layout/base/nsFrameTraversal.cpp => layout/base/nsFrameIterator.cpp
rename : layout/base/nsFrameTraversal.h => layout/base/nsFrameIterator.h
rename : browser/modules/WebappsInstaller.jsm => toolkit/webapps/WebappsInstaller.jsm
2012-08-06 12:44:06 -07:00
David Anderson
20b1197753
Merge from mozilla-central.
2012-08-03 18:58:30 -07:00
Ed Morley
1dda1f83c0
Merge mozilla-central to mozilla-inbound
2012-09-06 12:18:37 +01:00
Ms2ger
c84831a407
Bug 763367 - Add support for [EnforceRange] and [Clamp]; r=bz
2012-09-06 09:25:03 +02:00
Ms2ger
348aa6b524
Bug 782040 - Move ProgressEvent to event impl codegen; r=smaug
2012-09-06 09:14:49 +02:00
Aryeh Gregor
e840991a39
Bug 783523 - Fix platform-specific nsresult misuse; r=ehsan,tbsaunde,smaug
2012-08-16 14:58:11 +03:00
Kyle Huey
018dc47367
Bug 781700: Don't hold strong references to databases from the synchronization queue, so that GCing a database will unblock waiting operations. r=bent
...
--HG--
extra : rebase_source : 2f1b2405ffc91831d33eb91e4b2d61c2b1ac872b
2012-08-10 09:15:02 -07:00
Bobby Holley
480c7597d4
Bug 776328 - Only create holders for WNs. r=mrbkap
2012-08-10 10:19:51 +02:00
David Anderson
e93ecd8468
Merge from mozilla-central.
2012-08-02 13:47:20 -07:00
Benjamin Peterson
1c1e824772
Bug 780051 - Remove JS_MAX and JS_MIN. r=luke
2012-08-02 20:50:51 -07:00
Bill McCloskey
0389077d18
Bug 743112 - Incremental deferred release (r=smaug,jonco)
2012-08-02 15:35:59 -07:00
Doug Turner
e0b1269b07
Bug 763976 - Add onchange notifications to DeviceStorage. r=khuey
2012-08-01 23:29:34 -07:00
Eric Faust
6d4e293e26
Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke)
2012-08-01 17:59:47 -07:00
David Anderson
2e20aecd2c
Merge.
...
--HG--
rename : content/base/src/nsGenericElement.h => content/base/public/FragmentOrElement.h
rename : content/base/src/nsGenericElement.cpp => content/base/src/FragmentOrElement.cpp
rename : gfx/thebes/nsCoreAnimationSupport.mm => gfx/2d/QuartzSupport.mm
2012-08-01 11:30:00 -07:00
Ed Morley
d6d42179d1
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-08-01 18:36:33 +01:00
Olli Pettay
4f6e139505
Bug 777278 - Implement nsIDOMStorageEvent using event implementation codegen, r=mayhemer
2012-08-01 19:17:19 +03:00
Olli Pettay
fb67655737
Bug 777285 - Autogenerate SettingsEvent implementation, r=anygregor
...
--HG--
extra : rebase_source : 038f38a4f9efae15a3fbf4236c4456bf9cfa4577
2012-08-01 12:48:35 +03:00
David Anderson
1b9c00384c
Merge from mozilla-central.
2012-07-31 17:19:41 -07:00
Mike Habicher
01f8e81e31
Bug 740997 - ICS camera support, r=jst,gal,roc
2012-07-30 17:59:05 -04:00
Andrew McCreight
8df7caa03e
Bug 761422, part 4 - Don't try to be a hero in ReparentWrapperIfFound. r=bholley
2012-07-30 21:02:00 -07:00
Andrew McCreight
e9759cb6ad
Bug 761422, part 3 - get security wrappers before changing maps. r=bholley
2012-07-30 21:01:59 -07:00
Andrew McCreight
40af3f379d
Bug 761422, part 2 - guard against double reflectors on failure in ReparentWrapperIfFound. r=bholley
2012-07-30 21:01:59 -07:00
Andrew McCreight
0f7ac14a7b
Bug 761422, part 1 - Clone before we adjust XPC maps in ReparentWrapperIfFound. r=bholley
2012-07-30 21:01:59 -07:00
David Anderson
0b6251a780
Merge from mozilla-central.
2012-07-30 13:15:39 -07:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Eric Faust
d4a732fc86
Bug 775788 - Modify JSFunctionSpec to accept JSJitInfos. (r=luke)
2012-08-07 22:26:19 -07:00
David Anderson
19fd317fea
Merge from mozilla-central.
2012-07-26 18:19:02 -07:00
David Anderson
cd4eba1dfe
Merge from mozilla-central.
2012-07-25 14:30:08 -07:00
David Anderson
43e8426cf2
Merge from mozilla-central.
2012-07-24 16:32:08 -07:00
Olli Pettay
56e3342ec9
Bug 777074 - dictionary_helper_gen.py doesn't handle 'unsigned long' types, r=khuey
2012-07-25 01:59:22 +03:00
Olli Pettay
4fcbc28cca
Bug 776929 - Let event implementation codegen to generate MozContactChangeEvent, r=gwagner
2012-07-24 22:28:26 +03:00
Ed Morley
7c29aed7d0
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-26 13:04:00 +01:00
Olli Pettay
555347dbf5
Bug 776986 - Implement MozApplicationEvent using codegenerator, r=fabrice
2012-07-26 13:23:22 +03:00
Olli Pettay
2c67e04427
Bug 776971 - codegen DeviceLightEvent impl, r=dougt
2012-07-26 00:26:51 +03:00
Olli Pettay
a90431f527
Bug 776966 - Generate DeviceOrientationEvent implementation, r=dougt
2012-07-26 00:17:14 +03:00
David Anderson
8769715833
Merge from mozilla-central.
2012-07-23 12:37:49 -07:00
Brian Hackett
886d2d2455
Generate ICs which see through ListBase proxies, bug 769911. r=peterv,dvander
2012-08-06 14:51:33 -06:00
Ed Morley
9732acffaf
Backout 684958bd600b (bug 769911) for failures in test_bug435425.html on a CLOSED TREE
2012-08-06 23:39:36 +01:00
Brian Hackett
ac8acc0b03
Generate ICs which see through ListBase proxies, bug 769911. r=peterv,dvander
2012-08-06 14:51:33 -06:00
Andrew McCreight
73d06279da
Bug 763773 - replace WrapperIsNotMainThreadOnly() with false. r=billm
2012-08-06 13:42:30 -07:00
Jim Mathies
418325cf8d
Bug 780511 - Pipe additional debug output to the Windows debugger, r=neil.
2012-08-06 15:41:40 -05:00
Aryeh Gregor
5662d18449
Bug 780469 - Reduce unnecessary includes in some content/ header files; r=bz
2012-08-06 15:02:08 +03:00
Ryan VanderMeulen
05f7625d7a
Merge m-c to inbound.
2012-07-24 22:00:07 -04:00
Benjamin Peterson
d334d9712c
Bug 776389 - Find the source of scripts from the subscript loader correctly. r=bz
2012-07-22 15:14:47 -07:00
Benjamin Peterson
5354c0f330
Bug 776283 - Decode sources properly before handing them to the JS engine. r=bz
2012-07-22 09:00:45 -07:00
David Anderson
8a0fb8757b
Merge from mozilla-central.
2012-07-20 12:02:04 -07:00
Benjamin Peterson
ac41818e21
Bug 776430 - Use the rightmost URI to account for possible multiple prefixing. r=bz
...
--HG--
extra : rebase_source : 00d3a825d0743dc5ba61a0dbe69c6f8a75b4b208
2012-07-23 19:13:18 -07:00
Jonas Sicking
ae7e96692e
Bug 774585 - Add GetDocShellCodebasePrincipal to nsIScriptSecurityManager. r=mounir
2012-07-20 00:06:24 -07:00
Mounir Lamouri
f8a7531c39
Bug 758258 - part 5 - Add GetAppCodebasePrincipal and GetNoAppCodebasePrincipal to nsIScriptSecurityManager. r=mrbkap sr=sicking
2012-07-19 20:28:08 -07:00
David Anderson
d6601dffce
Merge from mozilla-central.
2012-07-19 14:34:36 -07:00
Ryan VanderMeulen
1289c5333c
Backout 61d052e202c8 (bug 647367) due to Windows bustage.
2012-07-18 22:33:41 -04:00
David Anderson
5977d0bae2
Merge from mozilla-central.
...
--HG--
rename : js/xpconnect/wrappers/CrossOriginWrapper.cpp => js/xpconnect/wrappers/WaiveXrayWrapper.cpp
rename : js/xpconnect/wrappers/CrossOriginWrapper.h => js/xpconnect/wrappers/WaiveXrayWrapper.h
2012-07-18 19:02:32 -07:00
Nicholas Nethercote
015b5205c6
Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/ (attempt 2). r=luke.
...
--HG--
rename : js/src/jshash.cpp => js/jsd/jshash.cpp
rename : js/src/jshash.h => js/jsd/jshash.h
2012-07-18 17:38:10 -07:00
Boris Zbarsky
17c8fd47c8
Bug 780542. Make construction via a function proxy with an object in the constructor slot actually construct instead of just calling. r=ejpbruel
2012-08-08 23:47:04 -04:00
Andrew McCreight
b81fd9484b
Bug 761620 - Throw an exception for unpreservable weak map keys. r=billm
2012-08-08 11:05:58 -07:00
Nicholas Nethercote
1f182688f1
Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/. r=luke.
...
--HG--
rename : js/src/jshash.cpp => js/jsd/jshash.cpp
rename : js/src/jshash.h => js/jsd/jshash.h
extra : rebase_source : 22311241bc356e2c724c28f4199cfa8008d594a9
2012-07-18 17:38:10 -07:00
Mounir Lamouri
6e7f2253ad
Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking
2012-07-18 21:25:19 -07:00
Steve Fink
cd96c07f2c
Backed out changeset afc1cf222996
2012-07-19 15:22:32 -07:00
Andrew McCreight
1ca56b02ad
Bug 773533 - import Element.h into XPConnect the right way. rs=Ms2ger
2012-07-23 15:38:30 -07:00
Doug Turner
045acc0826
Bug 779864 - onchange notifications of DeviceStorage should use code generator. r=smaug
2012-08-02 13:25:16 -07:00
Randell Jesup
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Steve Fink
52611d1e2d
Bug 785167 - Root while allowing cx to be NULL for some typed array APIs. r=terrence
...
--HG--
extra : rebase_source : 41565e76dc534deb75e10ef65429e5bb9793f47f
2012-08-29 12:29:18 -07:00
Boris Zbarsky
db146aed28
Bug 765163 followup. Don't write DictionaryHelpers.h while generating DictionaryHelpers.cpp. r=build-bustage for checkin to CLOSED TREE
2012-07-22 01:17:38 -04:00
Jonas Sicking
690071fc50
Bug 774585: Rename getCodebasePrincipal to getSimpleCodebasePrincipal since the behavior has semantically changed. r=mounir
2012-07-21 00:29:40 -07:00
Jonas Sicking
ba50571c17
Bug 774585: Fix xpc-sandbox creation code to create the correct principals. r=mrbkap
2012-07-21 00:29:40 -07:00
David Anderson
596d3144a5
Merge from mozilla-central.
2012-07-12 13:23:26 -07:00
David Anderson
86f0b2a6d8
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
6edbec8406
Bug 778681 part 6 - Fix some misuses of bool as nsresult; r=bz
2012-07-27 16:51:50 +03:00
Andrew McCreight
e82547c80d
Bug 761831 - Be less ambitious in GetMemberInfo. r=bholley
2012-07-18 13:28:58 -07:00
Bobby Holley
2d242e094b
Bug 774245 - Remove unnecessary memset. r=mccr8
2012-07-18 14:56:54 +02:00
Bobby Holley
b4fc3bcfe8
Bug 774245 - Tests. r=mrbkap
2012-07-18 13:51:28 +02:00
Bobby Holley
0a7b5241fb
Bug 774245 - Reimplement LookupMethod. r=mrbkap
2012-07-18 13:51:28 +02:00
Bobby Holley
217bf3edb0
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
e1cdfe2f05
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
ed5670e57a
Bug 776660 - Return null from EnsureExpandoObject instead of false; r=bholley
2012-07-23 15:58:41 -04:00
Bobby Holley
16e4b5b871
Bug 772288 - Waive Xray for target objects in Cu.import. r=mrbkap
2012-07-23 16:47:18 +02:00
Matthew Noorenberghe
649ea34449
Bug 772288 - Tests. r=bholley
2012-07-23 16:47:18 +02:00
Bobby Holley
6761975fd3
Bug 773962 - Tests. r=mrbkap
2012-07-23 15:51:19 +02:00
Bobby Holley
75f3cd7c86
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
3c7a723a9f
Bug 773962 - Fix up waivers after transplanting. r=mrbkap
2012-07-23 15:51:18 +02:00
Bobby Holley
c85756fcc0
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
d3b70db257
Bug 775424 - Make cycle collection vtables rodata. r=smaug
2012-07-23 07:42:23 +02:00
Chris Jones
17dd1fb32e
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
0b4bc96f9f
Bug 769273 - part4: avoiding innerization in NukeCrossCompartmentWrappers. r=bholley
2012-07-17 17:51:21 +02:00
Ms2ger
cb4d106015
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Ms2ger
cec5e3f75e
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
1ac89f2246
Bug 780108 - Get rid of the double switch in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:28:45 +02:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ed Morley
4eb11bee72
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
e6463200a3
Merge m-c to m-i.
2012-08-04 13:02:15 +02:00
Mike Hommey
be451c22dc
Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE
2012-08-04 10:38:41 +02:00
Ms2ger
b927c10310
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Ms2ger
3c30d568f9
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
16aadc8dec
Bug 780108 - Get rid of the double switch in XPCConvert::JSData2Native; r=bholley
2012-08-04 09:28:45 +02:00
Mike Hommey
e79d87471e
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 08:48:56 +02:00
Eric Faust
b1b08f985c
Bug 742188 - Implement ToInt64 and ToUint64 per the WebIDL standard. (r=jorendorff)
2012-08-03 15:15:04 -07:00
Wes Johnston
7fe524d43a
Bug 777706 - Backout new dom bindings for touchlists. r=smaug
2012-08-02 10:41:42 -07:00
Jason Orendorff
9bcd8b30c0
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
a849186201
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
8b371aed8a
Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar
2012-07-18 15:27:02 -07:00
Mounir Lamouri
ff9d427dc7
Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking
2012-07-19 10:49:17 -07:00
Justin Lebar
2170f814d5
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
8778e3d28d
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
031c062b8b
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
2a4902ee1b
Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg
2012-07-19 18:53:30 +09:00
Ed Morley
bb507d18ac
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
147b74c44a
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
30741d2c3a
Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar
2012-07-18 15:27:02 -07:00
Mounir Lamouri
2b7700d07d
Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking
2012-07-18 13:35:15 -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
David Anderson
2d5c5bdcf3
Merge from mozilla-central.
2012-06-28 15:17:18 -07:00
Gabor Krizsanits
ce3fab5c93
Bug 769273 - part3: Cu.nukeSandbox. r=bholley
2012-07-17 17:41:07 +02:00
Peter Van der Beken
629bad9698
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
5a262d0761
Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky
2012-07-16 21:42:18 -04:00
Nicholas Nethercote
54e1cc8b68
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
1603d4d6fc
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
4dc2835558
Merge from mozilla-central.
2012-06-27 11:00:48 -07:00
Bill McCloskey
3970ae5992
Bug 765065 - Annotation for crash reports: "Are we GCing?" (r=bsmedberg)
2012-08-15 10:47:51 -07:00
Dave Townsend
2e2b4aca5e
Backing out bug 761620 due to Add-on SDK test failures.
2012-08-15 10:31:21 -07:00
Aryeh Gregor
3304e571cb
Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan
2012-08-07 17:54:44 +03:00
Eddy Bruel
4cc46d10d1
Bug 70357 - Add Wrapper base class; r=bholley
2012-06-28 04:10:37 +02:00
Terrence Cole
340bde0157
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
671b32897c
Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug
2012-08-27 10:41:04 -07:00
Gabor Krizsanits
5138045eff
Bug 763897 - Incorrect behaviour of mozMatchesSelector.call through xray; r=bholley
2012-08-27 15:15:20 +02:00
Gabor Krizsanits
9a223560e1
Bug 738244 - Supporting DOM specific collection properties through xray wrappers; r=mrbkap
2012-08-27 15:06:34 +02:00
Benjamin Peterson
d76d19dc3d
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
309ca80b4b
Bug 778851 - Disable E4X in content by default.
2012-08-26 09:04:33 -05:00
Peter Van der Beken
bb71680e0a
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
efc50e4b0d
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
86e263762f
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
c3caa3a90c
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
424ea88da6
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
48fc85f058
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
b2b8ff55f2
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
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
Ryan VanderMeulen
7ad11464cb
Merge m-c to inbound.
2012-07-20 17:37:53 -04:00
Olli Pettay
205c93c929
Bug 765947 - Preprocess the config file for generated events, r=khuey
2012-07-20 20:19:40 +03:00
Olli Pettay
2280255d92
Bug 765766 - Convert more event interface implementations to be autogenerated, r=jst
2012-07-20 19:58:28 +03:00
Olli Pettay
c992398490
Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey
2012-07-20 19:42:08 +03:00
Benjamin Peterson
37bb2798f1
Bug 761723 - Add test for chrome toSource. r=bz
...
--HG--
extra : rebase_source : e4e41b30d2bdb73c8f48dd01a1ad8b974604978c
2012-07-20 20:20:09 +02:00
Benjamin Peterson
310dccbb29
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
25db739379
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
f491495a41
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
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
Ed Morley
35f13f7e90
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
4d57317ec8
Bug 743112 - Incremental release of C++ objects during GC (r=smaug,jonco)
2012-07-27 11:27:51 -07:00
Bobby Holley
6d3eb5ee8b
Bug 760109 - Tests. rs=mrbkap
2012-07-27 12:15:46 +02:00
Bobby Holley
a7c9c6c0e0
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
27dfe5daed
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
bc2fe5e629
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
26da6164d3
Merge m-c to inbound.
2012-07-30 20:14:22 -04:00
Olli Pettay
c72a720f48
Bug 777401 - DictionaryHelpers.* build problems, r=khuey
2012-07-30 23:10:26 +03:00
Bobby Holley
2c48de6a45
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
806c6dc8a4
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
4211119139
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
2e7996f8d1
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Ehsan Akhgari
c80897316e
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00