Commit Graph
533 Commits
Author SHA1 Message Date
Kyle Huey 1ffb1f415a Bug 823953: Improve sync queue handling. r=bent 2012-12-21 12:14:47 -08:00
David Rajchenbach-Teller f4b3a81dc9 Bug 808428 - RuntimeService now calls nsLayoutStatics::AddRef/Release. r=khuey 2012-11-04 23:30:00 -08:00
Peter Van der Beken 74736c6026 Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript). r=bz.
Switch from using the interface objects from the Xrays compartment to wrapping
interface objects and interface prototype objects in Xrays. Make dom binding
Xrays deal with both instance objects and interface and interface prototype
objects.
2012-10-09 20:50:27 +02:00
Bobby Holley d38c48122d Bug 789224 - Remove miscellaneous UniversalXPConnect checks sprinkled throughout gecko. r=mrbkap 2012-10-22 08:29:55 +02:00
Benjamin Peterson 13c4231de5 Bug 803358 - Remove JSOPTION_RELIMIT. r=luke 2012-10-18 21:06:42 -04:00
Bill McCloskey 9a730f6852 Bug 714050 - Add support for optional JS helper threads (r=luke) 2012-10-16 11:57:09 -07:00
Eric Faust 2e11a601d6 Bug 795150 - Add DOMCallbacks to worker thread JSRuntimes. (r=bz) 2012-10-03 12:32:06 -04:00
Andrea Marchesini 06d200ba8a Bug 793020. r=bent 2012-09-22 08:45:00 -04:00
Andrea Marchesini e5b464e46f Bug 609748 - Workers: If CSP blocks eval in a page, eval should also be blocked in workers created by that page. r=bent 2012-09-15 14:51:55 -04:00
David Anderson 599ed0d8d7 Merge from mozilla-central. 2012-08-29 17:57:37 -07:00
David Anderson 25ba94695e Merge from mozilla-central. 2012-08-29 17:51:24 -07:00
David Anderson 423a06d2f1 Merge from mozilla-central. 2012-08-22 16:09:24 -07:00
Ehsan Akhgari 243c878d26 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
David Anderson 818270a04e Merge from mozilla-central. 2012-08-07 15:13:28 -07:00
Ms2ger 26fa23777d Bug 743573 - Fix a number of build warnings in dom/; r=mounir 2012-08-07 09:06:29 +02:00
David Anderson d827932879 Merge from mozilla-central. 2012-07-30 13:15:39 -07:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
David Anderson 681def000b Merge from mozilla-central. 2012-07-10 19:45:14 -07:00
Rafael Ávila de Espíndola ec153c3b0e Bug 784895 - Remove unnecessary token pasting. r=mrbkap. 2012-08-23 19:57:51 -04:00
Bill McCloskey a4d863d341 Bug 770759 - Add mutable handles (r=bhackett) 2012-07-04 11:12:16 -07:00
David Rajchenbach-Teller 9eca609f25 Bug 750178 - Expose OS.Constants as an xpcom component. r=khuey 2012-07-04 08:30:58 -04:00
David Anderson 2d79cd0d62 Merge from mozilla-central. 2012-06-15 15:23:58 -07:00
Jan de Mooij 076d4b18ce Merge m-c to ionmonkey 2012-06-08 11:18:39 +02:00
Jason Orendorff a7c7c697dd Bug 753542 - Add prefs to enable/disable E4X (javascript.options.xml.content and .chrome). r=bsmedberg, sr=jst. 2012-06-06 21:52:14 -05:00
Sean Stangl 33d4a46d9a Merge m-c onto Ionmonkey. 2012-05-31 17:17:52 -07:00
Jason Orendorff 97c660a9e4 Bug 753885 - Part 2: Add JSOPTION_ALLOW_XML, making E4X support optional per-context. r=Waldo. 2012-05-30 15:05:59 -05:00
David Anderson 6d3300ecb8 Merge from mozilla-central. 2012-05-21 14:40:04 -07:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
David Anderson abb43df39f Merge from mozilla-central. 2012-05-08 17:34:07 -07:00
Ms2ger b8c940e642 Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-05-05 11:00:05 +02:00
David Anderson 6945bf688d Merge from mozilla-central. 2012-05-04 19:16:35 -07:00
David Anderson 063a2ce15e Merge from mozilla-central. 2012-04-30 12:53:32 -07:00
David Anderson 2ff0bc15ba Enable IonMonkey in the browser, and introduce an about:config option to pref it off (bug 745390, r=dmandelin). 2012-04-19 15:02:47 -07:00
Christian Holler 16b6b8eb6c Bug 779560 - Revert worker stack limit in ASan builds to default state. r=bent 2012-08-28 13:39:32 +02:00
Ms2ger 2cba70143c Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley 2012-04-14 15:05:19 +02:00
Ms2ger 54f1f6b78d Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes. 2012-04-14 17:52:34 +02:00
Ms2ger 6622f9ead6 Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley 2012-04-14 15:05:19 +02:00
Ms2ger 78bc77e39f Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-04-14 15:05:01 +02:00
David Zbarsky 9050aef271 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Jeff Walden dc3cce2d6d Bug 757908 - Remove JSRESOLVE_DECLARING. r=dmandelin 2012-05-23 10:22:46 -07:00
David Rajchenbach-Teller 3928c50d3e Bug 763848 - Expose the path to libxul at OS.Constants.Sys. r=khuey 2012-06-28 21:56:30 -04:00
Ryan VanderMeulen 66bc0d319b Backout b97cdd8008a0, bc305a9ac000, and 03549c72043d due to Android browser-chrome orange. 2012-06-30 11:09:26 -04:00
Jeff Walden 3d133e4c1f Bug 757908 - Remove JSRESOLVE_DECLARING. r=dmandelin 2012-05-23 10:22:46 -07:00
Peter Van der Beken 70167db26f Fix for bug 741267 (UserScript's XMLHttpRequest is undefined in 20120401 nightly).
Pass two objects when creating a DOM interface object, the global used to cache
the DOM interface objects and a receiver object on which the named property is
that points to the DOM interface object.
2012-04-23 16:10:56 +02:00
Brian Hackett b4c002a912 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Brian Hackett 4f8baecc9e Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett b7d2500332 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Bill McCloskey 38062ea556 Bug 742570 - Remove the compartment option for gczeal (r=igor) 2012-04-03 11:41:56 -07:00
Peter Van der Beken 6233c150b8 Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
Boris Zbarsky 830492af6c Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
2012-05-03 00:35:38 -04:00