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
Benjamin Smedberg
2b55dddfca
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
2012-05-18 13:30:49 -04:00
Christian Holler
05d3b224aa
Bug 727445 - Add --enable-address-sanitizer for ASan specific workarounds. Add --enable-llvm-hacks to pass CFLAGS to NSS and omit -Wl,-z,defs for shared libs. r=khuey,kaie
2012-03-07 15:11:15 -08:00
David Mandelin
f0690b22d1
Bug 730511: remove obsolete typedefs intN, uintN, r=luke
2012-02-28 15:11:11 -08:00
Honza Bambas
1415b7fdef
Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium
2012-06-12 19:06:20 +02:00
Chris Leary
cd8032094d
Bug 700822: Randomize JIT VirtualAlloc location on win32, sans XP. (r=dmandelin)
2012-02-13 21:36:11 -08:00
Kyle Huey
282cb7bb00
Bug 725848: ProxyCompleteRunnable must always run, even when clearing the event queue. r=bent
2012-02-09 20:54:47 -08:00
Igor Bukanov
18eb7777e9
bug 723021 - moving native stack limits into runtime. r=luke
2012-01-31 23:28:22 +01:00
Ben Turner
8ee989c91b
Bug 718100 - 'Web workers should GC more'. r=mrbkap.
2012-01-17 12:05:25 -08:00
Ben Turner
01a3e5cf81
Bug 715756: Workers: Enable TI and allow JIT hardening to be disabled. r=sicking.
2012-01-05 17:51:21 -08:00
Ben Turner
8a04d58443
Bug 711388 - 'WORKER_RUNTIME_HEAPSIZE too small for big PDFs in PDF.JS'. r=sicking.
2012-01-04 11:11:32 -08:00
Ben Turner
02167d741a
Bug 713728 - 'Workers: Need a shutdown observer topic'. r=mrbkap.
2011-12-29 13:28:09 -05:00
Nathan Froyd
01a317a0fe
Bug 709205 - use GetObserverService in dom,docshell; r=bz
2011-12-09 14:35:37 -05:00
Ben Turner
0c2ba68ea6
Bug 687929 - 'null cx Crash [@ JS_BeginRequest] with dom workers', r=sicking.
2011-12-08 02:52:53 -08:00
Blake Kaplan
0a5d56105e
Bug 698621 - Part 1: Implement cross-thread dispatching for web workers. r=bent
2011-12-05 15:58:27 +08:00
Ryan VanderMeulen
340b13b1c1
Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander
2011-11-28 14:57:31 -08:00
David Anderson
1092a7d910
Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal).
2011-11-22 17:41:43 -05:00
Mounir Lamouri
aece4e1a7e
Bug 695287 - Move Navigator declaration and definition outside of nsGlobalWindow.{h,cpp}. r=Ms2ger
...
This patch is creating Navigator.h and Navigator.cpp and makes Navigator part
of the mozilla::dom namespace.
2011-11-02 14:44:16 +01:00
Jonathan Watt
276bdfa251
Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg.
2011-10-28 19:33:28 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
7d613942b0
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
2011-10-10 22:50:08 -07:00
Jeff Walden
c5e5f873d1
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail
2011-10-12 12:21:53 -07:00
Jeff Walden
946f2ae0e3
Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
2011-10-10 22:50:08 -07:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Ben Turner
89e1c977ea
Bug 679551 - 'Workers: Deadlock in WorkerPrivate::BlockAndCollectRuntimeStats if worker is blocked (LastPass extension)'. r=mrbkap.
2011-09-08 17:03:03 -07:00
Ehsan Akhgari
4fbedde497
Backout changesets 58d026601240, c5a9a439d72c and cfdf675266b2 because of mochitest-3 crash
2011-09-08 22:04:43 -04:00
Ben Turner
6bb11c8bb2
Bug 679551 - 'Workers: Deadlock in WorkerPrivate::BlockAndCollectRuntimeStats if worker is blocked (LastPass extension)'. r=mrbkap.
2011-09-08 17:03:03 -07:00
Alon Zakai
b0f825173b
Bug 678623 - Increase script stack quota in web workers. r=bent
2011-08-15 22:53:33 -07:00
William Chen
9698231df5
Bug 664783 - Implement FileReaderSync for Workers. r=bent+sicking.
2011-08-15 20:40:38 -07:00
Ben Turner
fc6672a9f1
Bug 676376 - 'prevent multi-threaded JSRuntime access in new web worker memory reporters'. r=luke+sicking.
2011-08-06 18:03:46 -07:00
Igor Bukanov
35946fce2e
bug 674480 - add memory reporter for the number of empty GC chunks. r=njn
2011-07-30 00:17:41 +02:00
Ben Turner
af1f194eea
Bug 674721 - 'Add memory reporting for web worker data'. r=jst+njn.
2011-08-01 21:06:17 -07:00
Ben Turner
c4a49e7868
Bug 672086 - 'Workers: Recycle threads to prevent churn and stack recursion problems'. r=sicking.
2011-07-25 18:49:16 -07:00
Ben Turner
e8afb778cc
Bug 649537 - 'Workers: Make one OS thread and JS runtime per worker, and lose XPConnect'. r=sicking+mrbkap.
...
* * *
Bug 649537 - 'Workers: Make one OS thread and JS runtime per worker, and lose XPConnect'. r=sicking+mrbkap. Add workaround for bug 666963.
2011-07-17 15:09:13 -04:00