Commit Graph

1381 Commits

Author SHA1 Message Date
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
Brian Hackett
4da0b7720d Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Aryeh Gregor
66d337960d Bug 777292 - Add default cases to switches on nsresult; r=ehsan 2012-07-27 17:03:25 +03:00
Bobby Holley
d3655aa616 Bug 767948 - Make assertion nonfatal. r=me 2012-06-25 15:24:21 +02:00
Bobby Holley
5a6f34eba3 Bug 695292 - Port SimpleTest.executeSoon() to SpecialPowers. r=mrbkap
If we just naively use the thread manager to dispatch the event via SpecialPowers,
we cannot avoid the XPCWrappedJS for the runnable being in chrome scope (even if
we pass a content object, we make the call in chrome scope, so we pass a cross-
compartment wrapper). This means that the machinery in
nsXPCWrappedJSClass::CheckForException ends up calling the error reporter for the
SpecialPowers scope, which isn't what we want.

Messing around with the implementation of CheckForException is playing with fire.
So we work around this with an explicit Cu API. :-(
2012-08-16 18:33:27 -07:00
Bobby Holley
ecf7bf46b9 Bug 781476 - Test. r=me 2012-08-16 12:25:39 -07:00
Bobby Holley
239bc1b66a Bug 781476 - Cross-compartment wrap same-origin objects with PreCreate even if PreCreate requests one wrapper per scope. r=mrbkap 2012-08-16 12:25:39 -07:00
Aryeh Gregor
16e0a465fd Bug 779122 - nsXPCComponents_Utils::RecomputeWrappers should return nsresult, not bool; r=bholley 2012-07-31 18:24:38 +03:00
David Anderson
5e98fe788d Merge from mozilla-central. 2012-06-26 15:37:34 -07:00
David Anderson
c0d2427d66 Merge from mozilla-central.
--HG--
extra : rebase_source : 521cbf2f434cad88106f32be797faae4861afc39
2012-06-25 13:09:36 -07:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Peter Van der Beken
486198a6d8 Fix for bug 785188 (Make Xrays work with newest DOM list bindings). r=mrbkap. 2012-06-06 21:52:26 +02:00
Luke Wagner
ce71e55555 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Luke Wagner
48412c861d Bug 625199 - kill dummy frames (r=mrbkap)
--HG--
extra : rebase_source : df4e3bddabf20cdc5b9122370fa62b40e64177c7
2012-08-17 18:05:06 -07:00
Bobby Holley
63dfef11f8 Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-08-23 16:44:53 -07:00
Bobby Holley
c3b9f1b805 Bug 757046 - Convert enablePrivilege into an insecure test-only construct (preffed off everywhere but in automation). r=bz 2012-08-23 11:45:28 -07:00
Luke Wagner
0f96a5287e Bug 784551 - remove JSSecurityCallbacks::findObjectPrincipals (r=mrbkap)
--HG--
extra : rebase_source : 8043b79eb031e4c3e196f6f693fa6a8a16099ecb
2012-08-23 09:51:09 -07:00
Andrew McCreight
85ee7e2fc8 Bug 761620 - Throw an exception for unpreservable weak map keys. r=billm 2012-08-08 11:05:58 -07:00
Masatoshi Kimura
015510bdc5 Bug 789691 - Migrate BlobPropertyBag to WebIDL binding dictionary, r=bzbarsky 2012-09-10 09:57:15 -04:00
Andrea Marchesini
f1e34bab53 Bug 775368 - Porting Websockets to WebIDL, r=bz
--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-10 09:48:14 -04:00
Andrew Sutherland
551a753f47 Bug 786639 - XPCChromeObjectWrapper __exposedProps__ should expose the content of typed arrays like UInt8Array. r=bholley 2012-09-05 14:05:32 -07:00
Bobby Holley
eef8d9f4eb Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-09-05 11:32:07 -07:00
Boris Zbarsky
a860438a8a Bug 778044. Add a way to pref off Paris binding constructor objects. r=peterv 2012-09-05 13:37:28 -04: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