Commit Graph

809 Commits

Author SHA1 Message Date
Mounir Lamouri
3784798145 Bug 833009 - Remove "nsContentUtils.h" inclusions from headers in content/xbl/. r=Ms2ger 2013-02-01 10:56:02 +00:00
Bobby Holley
ca53b9e294 Bug 833412 - Remove AddBinding/RemoveBinding and remove dead code. r=bz 2013-01-24 18:45:50 +01:00
Bobby Holley
23ed8b3c97 Bug 833412 - Make nsXMLPrettyPrinter use nsXBLService/BindingManger to load/remove bindings. r=bz 2013-01-24 18:45:50 +01:00
Bobby Holley
025c474548 Bug 833412 - Fix tests that call addBinding. r=bz 2013-01-24 18:45:49 +01:00
Olli Pettay
7d085487c9 Bug 831421 - Arrow keys are broken in test-ipc.xul, r=neil 2013-01-24 18:38:59 +02:00
Bobby Holley
5de758ce91 Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz 2013-01-23 07:12:50 +01:00
Steve Fink
d3f194fbfb Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence 2012-12-31 12:40:21 -08:00
Steve Fink
cb8aecdd2a Backed out changeset fce4e0f8a553 (bug 828753) for breaking windows warnings-as-errors (stop adding JSObject forward decls, please!) 2013-01-18 13:20:21 -08:00
Steve Fink
fa3e8f224b Bug 828753 - jsid rooting, mostly in jsinfer.*. Also switch JSObject from struct to class. r=terrence
--HG--
extra : rebase_source : c8806b27677594925ad0e6b54c47af5cf17e1153
2012-12-31 12:40:21 -08:00
Bobby Holley
cecccc3751 Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz 2013-01-16 18:50:27 -08:00
Bobby Holley
cbd37c2417 Bug 824864 - Rename EvaluateStringWithValue to EvaluateString. r=bz
Now that there's only one of them, we can get rid of the silly suffix. \o/
2013-01-16 18:50:26 -08:00
Bobby Holley
9ae831b5d4 Bug 824864 - Improve the API for EvaluateStringWithValue. r=bz
There are a few changes we make here:
1 - Having callers pass JS::CompileOptions directly.
2 - Removing aUndefined, which makes no sense and is unused by consumers.
3 - Making aScopeObject and aRetValue non-optional, via references.
3 - Adding an argument to optionally coerce the return value to a string.

Coercing jsvals to strings is the reason we currently have two nearly-identical
functions, EvaluateString and EvaluateStringWithValue, since the coercion can
trigger arbitrary script and thus needs to be bracketed by all the junk that
nsJSContext does. However, if callers can be guaranteed that the return value
will be a bonafide string, then they can easily extract the string themselves
if they so desire. This will allow us to combine the two functions.
2013-01-16 18:50:26 -08:00
Bobby Holley
a7a75b2cec Bug 824864 - Move consumers of CompileFunction to the nsJSUtils version, and kill the nsJSContext version. r=bz
Note that the three consumers were all XBL, and were all passing aShared = true,
which had the effect of passing null for the target object. So we actually want
to pass JS::NullPtr() (the HandleObject version of nullptr) instead of
aClassObject in order to maintain the old behavior (whatever that is).
2013-01-16 18:50:25 -08:00
Trevor Saunders
b98e34aed0 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Boris Zbarsky
ebae52fa5c Bug 830614. Wrapping a wrappercached WebIDL object should watch out for reentry via WrapNativeParent. r=peterv 2013-01-15 14:04:24 -05:00
Cameron McCormack
343037880d Bug 508725 - Part 3: Create a rule processor for each style scope. r=dbaron 2013-01-09 10:25:47 +11:00
Cameron McCormack
4129a6997c Backout bug 508725 (d267bb4b58b5, 50f71edffeb9, 6aec8e22fe60, e62e1f33958a, 0f146c435249, eb959b9f4862, 2b0ee42f3aa0, 02db01cd6796, 2ef0e517d43d, b650588e05c9 and a3c916829d56) for build failure on a CLOSED TREE. 2013-01-08 19:36:21 +11:00
Cameron McCormack
d0727939f7 Bug 508725 - Part 3: Create a rule processor for each style scope. r=dbaron 2013-01-08 19:09:22 +11:00
Trevor Saunders
efffc97c2d bug 825419 - outparamdel nsIDocShell::GetPresShell() r=smaug 2012-12-28 20:56:42 -05:00
Peter Van der Beken
0730848e6c Fix for bug 815149 (Add support for SOWs and XBL bindings in new DOM bindings). r=bz.
--HG--
extra : rebase_source : c24544fd3d1c99651e279e687a07a02c5b994323
2012-09-12 22:29:30 +02:00
Bobby Holley
47454d1b2a Bug 823279 - Mark deserialized XBL script as XBL. r=bz 2012-12-19 17:12:33 -08:00
Bill McCloskey
057daf7cbb Bug 821116 - Track line numbers for XBL properties (r=bz) 2012-12-17 12:22:38 -08:00
Masayuki Nakano
ca0e8000e0 Bug 813445 part.14 Make dom::EventListenerFlags for nsEventListenerManager r=smaug 2012-12-16 10:26:05 +09:00
Jeff Walden
e0523203c9 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Jeff Muizelaar
5a168d2ab1 Bug 801061. Switch from imgIRequest to imgRequestProxy. r=joe
This doesn't switch all of the users yet, but is a step in the right
direction.

--HG--
extra : rebase_source : 91b4fef3f67586179c119208d000cf7629e04963
2012-10-12 08:43:01 -04:00
Ed Morley
f4fdd9141e Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-12-13 15:55:31 +00:00
Olli Pettay
74d0f41adb Bug 806031, less surprising toString for XBL binding objects, r=bz
--HG--
extra : rebase_source : 8b518b55729b9233e2b80220d70dacc143e52264
2012-12-12 17:10:02 +02:00
Bobby Holley
c05806cc51 Bug 820666 - Tag XBL script for <field> elements and child scripts. r=jorendorff 2012-12-12 17:09:37 -08:00
Steve Fink
726c9bf3ae Bug 770238 - Defer releasing an nsXBLDocumentInfo to avoid calling JS during finalization. r=smaug
--HG--
extra : rebase_source : e25c70be77d0ce702435e0aa075d4be8e894c9b7
2012-12-06 10:44:31 -08:00
Mats Palmgren
11281fb75a Bug 814677 - Replace XP_IS_SPACE with dom::IsSpaceCharacter and add form-feed to match DOM spec. r=bz 2012-11-30 17:04:11 +01:00
Olli Pettay
f62ac2c85e Bug 811206, Fix JSHolder drop handling, part 3 (fixes), r=mccr8,khuey
--HG--
extra : rebase_source : 7b2726d2aa7f5764a3c4cb750e5a735728069687
2012-11-28 03:37:57 +02:00
Benoit Jacob
97c1c2f31c Bug 814444 - Remove now-useless TRAVERSE_NATIVE_BEGIN and UNLINK_BEGIN_NATIVE macros - r=mccr8 2012-11-22 12:15:38 -05:00
Justin Lebar
ada22bb4e7 Bug 811466 - Add include guards around some headers which were missing them. r=khuey 2012-11-19 20:05:34 -05:00
Kyle Huey
6420015ff2 No bug: s/class/struct/ to shut up MSVC. r=me DONTBUILD 2012-11-19 09:22:27 -08:00
Benoit Jacob
58175ef06b Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
5a8b82a1cb Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
f4c1a03e74 Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Cameron McCormack
2302c9d358 Bug 811581 - Add a base class for all *RuleProcessorData classes. r=bz 2012-11-15 06:09:01 +11:00
Boris Zbarsky
abbd551bfe Bug 807226 part 4. Allow event handlers to have a null nsIScriptContext if they won't have to compile from a string. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
6ac6b2b6fd Bug 807226 part 2. Change event handlers to store WebIDL callback functions. r=smaug 2012-11-09 08:00:25 -08:00
Ms2ger
318a2969cd Bug 807410 - Part b: Pass the "GC on destruction" flag to the nsJSContext constructor; r=jst 2012-11-04 09:05:23 +01:00
Ms2ger
9443b096a0 Bug 807410 - Part a: Pass the global object to the nsJSContext constructor; r=jst 2012-11-04 09:04:04 +01:00
Daniel Holbert
b72299ef37 Bug 805607 - Mark content/xbl/src as FAIL_ON_WARNINGS. r=bz 2012-10-26 10:49:57 -07:00
Daniel Holbert
d670ff3e30 Bug 805606: Add DebugOnly annotation to fix build warning in nsXBLDocumentInfo.cpp. r=Ms2ger 2012-10-26 10:49:57 -07:00
Daniel Holbert
86007c1a13 Bug 805555: Mark nsXBLProtoImpl member-vars "cx" and "versionBefore" as DebugOnly. r=bz 2012-10-25 18:48:22 -07:00
Daniel Holbert
3eb391cb2a Bug 805527: Mark nsBindingManager as MOZ_FINAL to fix GCC -Wdelete-non-virtual-dtor warning. r=ehsan 2012-10-25 15:16:15 -04:00
Bobby Holley
db865e0ccf Bug 797821 - Don't pass XPCONNECT_GLOBAL_FLAGS for xbl and xul document gSharedGlobalClass. r=mrbkap
A lot of these flags don't make sense in this context.
2012-10-25 17:01:08 +02:00
Bobby Holley
ea14cf4726 Bug 797821 - Stop making nsXBLDocumentInfo and nsXULPrototypeDocument globals with XPConnect. r=mrbkap
We already weren't creating a scope for them. They're generally pretty isolated
and are just used for holding functions that get cloned into other scopes.
Apparently mccr8 once found an edge from an nsXULPrototypeDocument scope into
another scope, but I don't think that should really break anything.
2012-10-25 17:01:07 +02:00
Bobby Holley
4f6ed4314a Bug 797821 - Stop passing wantXrays directly to CreateGlobalObject. r=mrbkap
This can happen after the fact where it needs to.
2012-10-25 17:01:07 +02:00
Bobby Holley
597176da8c Bug 797821 - Simplify the call signature for XPC::CreateGlobalObject. r=mrbkap 2012-10-25 17:01:07 +02:00
Jeff Walden
7042873948 Bug 768750 - Make FieldSetter always set a return value. r=bz 2012-10-17 13:42:58 -07:00
Bobby Holley
0c1ca835dd Bug 789224 - Remove signed script security checks. r=mrbkap 2012-10-22 08:29:55 +02:00
Bobby Holley
3a93472e80 Bug 789224 - Remove miscellaneous UniversalXPConnect checks sprinkled throughout gecko. r=mrbkap 2012-10-22 08:29:55 +02:00
Peter Van der Beken
e86cd8818c Fix for bug 801083 (Remove old proxy-based list bindings). r=bz. 2012-10-13 14:50:24 +02:00
Peter Van der Beken
a69ce442c1 Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Andrew McCreight
09a1cf88ae Bug 800392 - Clear nsXBLSpecialDocInfo's fields at shutdown. r=smaug 2012-10-14 12:15:12 -04:00
Olli Pettay
0f6bf5eed5 Bug 733305, add a way to hide XBL, r=bz, a=abillings
--HG--
extra : rebase_source : df18273ecdbf013138e8e6f1f4ef8082ac4f410c
2012-10-10 22:04:42 +03:00
Boris Zbarsky
d9ec7ac515 Bug 790265. Changes that might attach a binding (e.g. state changes on <object> elements) should trigger a frame construction attempt even for display:none elements, so the binding will get attached. r=dholbert 2012-10-05 23:50:55 -04: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
Ms2ger
4c9dcdaa6d Bug 793116 - Remove nsISupports argument to xpc_CreateGlobalObject; r=bholley 2012-10-02 10:24:11 +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
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
f13e8e29d9 Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett) 2012-09-03 16:42:17 -07:00
Ehsan Akhgari
70ba385729 Bug 792502 - Kill the FunctionTimer code; r=vlad 2012-09-19 16:59:38 -04:00
Makoto Kato
909aba1eb8 Bug 785321 - Replace PRUptrdiff with uintptr_t, prtdiff_t or etc; r=ehsan,jrmuizel 2012-09-14 16:09:52 -04:00
Fabrice Desré
972b023be4 Bug 782865 - Keyboard simple quote character does not work in OOP applications [r=cjones] 2012-09-10 18:15:07 -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
Terrence Cole
a171a91eeb Bug 787580 - Root all jsval at the API surface; r=sfink sr=dmandelin
--HG--
rename : layout/reftests/text-decoration/underline-select-2-ref.html => layout/reftests/text-decoration/underline-button-1-ref.html
rename : layout/reftests/text-decoration/underline-select-2.html => layout/reftests/text-decoration/underline-button-1.html
extra : rebase_source : 008f2bab76a005947a4c0bd10b6d9ea8531ea6d0
2012-09-04 16:40:12 -07:00
Makoto Kato
507b76f776 Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Andrew McCreight
0d31841b85 Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.

This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.

nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over.  See bug 774874.
2012-08-24 09:50:06 -07: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
Peter Van der Beken
854457d901 Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02: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
L. David Baron
056c0df2a0 Back out nsXBLPrototypeHandler changes from changeset d09b4e60bb09 to fix bug 776075. 2012-08-20 19:23:32 -07:00
Ian Melven
d09de1cd52 Bug 341604 - modify CheckMayLoad to allow sandboxed workers to load blob and data URIs r=jst 2012-08-20 11:34:33 -07:00
Jim Blandy
c8dd12d089 Bug 777174: Change CallNonGenericMethod to take the predicate and implementation as template arguments, not function arguments. r=luke
On x86_64 Fedora 17, this patch yields an 8ms (1.6%) speedup on SunSpider compared to the tree just prior to the introduction of CallNonGenericMethod, or a ~12ms (2.8%) speedup compared to the tree just after the introduction.
2012-08-16 11:40:05 -07:00
Aryeh Gregor
4c54d98fcb Bug 782252 - Change named constants to correct types; r=ehsan 2012-08-07 18:11:35 +03:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03: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
David Zbarsky
8d316c5861 Bug 773842 - Fix build warnings under content/ r=mounir 2012-08-10 14:01:16 -04:00
Ms2ger
cb4d106015 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +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
b927c10310 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Olli Pettay
f06835f558 Bug 772966 - force XBL parameter names to be non-zero, r=sicking 2012-08-02 09:12:34 +03:00
Ehsan Akhgari
c80897316e Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03: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
0c8f5adf50 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Masayuki Nakano
588dd9f9f3 Bug 751749 part.2 Support Win key for a modifier of shortcut key and access key r=smaug, enn 2012-07-19 10:28:16 +09:00
Jeff Walden
1cf3018b6e Bug 773850 - Refactor method guarding to be able to work for methods that must be able to accept a |this| which is a proxy. r=luke
--HG--
extra : rebase_source : 1a015ffd3faa9fa6c82426c94058bce026602f8c
2012-07-03 17:44:22 -07:00
Olli Pettay
615b1f9d9a Bug 773606 - XBL fastload creates XUL element before feeding proto attributes to the protoelement, r=enndeakin 2012-07-14 00:25:01 +03: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
Bill McCloskey
3f0d55e974 Bug 770999 - Add get() method to Handle<T> and Rooted<T> (r=bhackett) 2012-07-04 13:34:42 -07:00
Bill McCloskey
943f752751 Bug 770759 - Add mutable handles (r=bhackett) 2012-07-04 11:12:16 -07:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Bobby Holley
c866397a9c Bug 754202 - Only push the context of the event target if the listener is scripted. r=smaug 2012-06-28 23:47:56 +02:00
Jeff Walden
9bfb3aa19b Bug 758912 - Don't use JSCLASS_NEW_RESOLVE_GETS_START in XBL code. r=bz 2012-05-29 12:01:30 -07:00
Mike Hommey
e1f994d15f Merge last PGO green changeset from mozilla-inbound to mozilla-central 2012-06-20 10:53:31 +02:00
Masatoshi Kimura
0a16a56d7f Bug 764916 - Replace nsDOMClassInfo::ThrowJSException with xpc::Throw. r=mrbkap 2012-06-19 19:01:10 -04:00
Mike Hommey
f600664217 Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Ehsan Akhgari
aef7f91aa1 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (content parts); r=bzbarsky
--HG--
extra : rebase_source : e25a064995914ca4f7b1db16b5725eb440d3e531
2012-06-18 22:30:09 -04:00
Mike Hommey
2536fb188a Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange 2012-06-15 15:50:24 +02:00
Mike Hommey
3acf5d646d Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Boris Zbarsky
332924a065 Bug 736695 part 3. Tear down XBL bindings off a scriptrunner when unbinding nodes. r=smaug 2012-06-11 18:22:26 -04:00
Olli Pettay
94414ed431 Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Jignesh Kakadiya
05b649bf5a Bug 756579 - nsXBLBinding::GetInsertionPointsFor is now infallible. 2012-06-09 15:15:12 -07:00
Joel Maher
7ba48baac9 Bug 748088 - Native android reftest are not testing OMTC+OGL. r=ajuma 2012-06-01 08:42:38 -04:00
Jeff Walden
b7bb2a4019 Bug 757562 - Remove JSRESOLVE_CLASSNAME. r=dmandelin
--HG--
extra : rebase_source : 9b5a920f7c7441ee21b2dd2331a98fc70b42ed41
2012-05-21 18:08:11 -07:00
Neil Deakin
994d3d4070 Bug 757485, remove nsIXBLService and use nsXBLService directly, r=bz 2012-05-23 14:46:04 -04:00
Nils Maier
be802ad709 Bug 754771 - Add identifying information to all system compartments. r=bz 2012-05-16 19:42:10 +02:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian Hackett
f8aa8c3c5a Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Brian Hackett
aeda1d5c01 Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Benjamin Smedberg
2187798a40 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
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Ms2ger
5a68e74435 Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley 2012-05-18 10:29:40 +02:00
Masayuki Nakano
5a7867e89f Bug 630810 part.2 Use nsVKList.h for defining somethig for keycode r=roc 2012-05-17 16:04:16 +09:00
Irving Reid
96357dc537 Bug 753455 - Improved warning message from XBL. r=bz 2012-05-09 18:57:44 -04:00
Ms2ger
6560a2ad1e Bug 745478 - Pass JSObjects to nsXBLProtoImplMember::InstallMember; r=jst 2012-05-05 11:00:06 +02:00
Ms2ger
68c19b3ac7 Bug 745211 - Remove SetScriptContext from nsIScriptGlobalObject; r=mrbkap 2012-05-05 11:00:04 +02:00
Andrew McCreight
38b851ba07 Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug 2012-05-03 12:28:10 -07:00
Boris Zbarsky
224115946f 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.

--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Nicholas Nethercote
76a872e30a Bug 747803 - Remove NS_SIZE_IN_HEAP. r=bz. 2012-04-19 14:15:23 +10:00
Ehsan Akhgari
c7d143b9fa Merge mozilla-central into mozilla-inbound 2012-04-24 21:29:44 -04:00
Nathan Froyd
a619fcd8c8 Bug 746285 - pack nsXBLBinding more carefully for 64-bit; r=bz 2012-04-17 15:23:11 -04:00
Jason Orendorff
92468d9c4d Bug 738617 - Revert changeset 6d139ebc0f43 (bug 730139). Reserving let breaks some web sites. r=Waldo, a=mfinkle. 2012-04-18 15:07:11 -05:00
Mark Capella
2577075a7a Bug 744332 - Remove nsXULPrototypeScript::ScriptObjectHolder::mLangID. r=jst, f=Ms2ger 2012-04-24 18:31:28 -04:00
Jonathan Watt
72b161fc90 Bug 745352 - Remove broken include paths from content Makefile.in files. r=dholbert. 2012-01-19 15:36:53 +00:00
Daniel Holbert
62386808f1 Bug 369560 followup: Soften language in unusual-but-innocuous NS_WARNING for XBL docs with no root element. r=bz 2012-04-08 18:37:41 -07:00
Mark Capella
94670ae3ec Bug 741580 - Remove nsXULPrototype Element mScriptTypeID, r=ms2ger,jst 2012-04-05 12:20:44 -07:00
Igor Bukanov
3a859b7a76 Bug 737365 - stop using the cx during finalization, part 1.
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Mark Capella
5b2f534388 Bug 738380 - Remove nsINode::{GetScriptTypeID, SetScriptTypeID}, nsIScriptContext::GetScriptTypeID, nsIScriptRuntime::GetScriptTypeID; r=jst 2012-04-01 14:47:48 +02:00
Ed Morley
651aa424a1 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-31 22:41:59 +01:00
Olli Pettay
f198500ad9 Bug 641821, MutationObserver, r=sicking
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Peter Van der Beken
09128a75d3 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.
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Phil Ringnalda
62e25bcddc Back out b00bf7f3869c (bug 737976) for apparently causing mochitest-1 leaks on a CLOSED TREE 2012-03-28 22:43:09 -07:00
Kyle Huey
5639dfdb41 Bug 737976: Remove nsINodeInfo. rs=bent 2012-03-28 19:07:37 -07:00
Nathan Froyd
f951079eae Bug 739962 - fix -Wunused-but-set-variable warnings in content; r=bent 2012-03-28 09:14:33 -04:00
Matt Brubeck
21e24f0ef9 Merge mozilla-central and mozilla-inbound 2012-03-24 09:05:27 -07:00
Peter Van der Beken
4c5904d14e Bug 738593 - Rename IsProxy to IsDOMBinding; r=mrbkap 2012-03-16 16:44:09 +01:00
Andrew McCreight
49f3d44f9e Bug 732495 - clean up refcounting for nsXBLDocumentInfo creation to fix leak. r=smaug 2012-03-22 13:46:03 -07:00
Henri Sivonen
3dfb9fb844 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Jim Mathies
b3261a33f5 Bug 737983 - win8 fixup for generic keyword collision, r=smaug. 2012-03-22 09:18:41 -05:00
Boris Zbarsky
c7ada79040 Bug 700981 part 5. Reduce the amount of time spent calling GetBindingParent(). r=smaug 2012-03-22 00:10:51 -04:00
Hessam Salehi
7d69570885 Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Mark Capella
08d7239a5d Bug 734023 - Remove language arguments from nsIScriptGlobalObject methods, r=jst, f=ms2ger 2012-03-23 18:13:29 +01:00
Igor Bukanov
5542df3342 bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz
Currently to serialize principals stored in JSScript we have a rather complex
schema. First there is the transcode callback that the embedding must provide
to transcode principals using XDR API. Second we use rather complex glue code
to implement that callback in terms of writing/reading nsIObjectOutputStream/
nsIObjectInputStream. This glue code is duplicated in 3 places. All this can
be avoided if we simply delegate transcoding of principals to the caller. In
addition, at least in the case of the cached startup scripts we do not even
need to transcode the principals as the the cached scripts always have the
system principal so we can skip all the transcode complexity there.

The patch implemnts this idea. In particular, the code in JS engine
responsible for transcoding of principals is replaced by the single API
function JS_XDRSetPrincipals that the embedding can use to set principals for
decoded scripts and functions. Then the startup cache uses this to set the
principals for the decoded script to the system principals. The other two
places in nsJSContext::Serialize and  XBL_SerializeFunction that need to
serialize principals together with a function or script now uses common
utilities in nsXPConnect so the serialization complexity resides in the single
 place.
2012-02-13 14:10:04 +01:00
Andrew McCreight
a7c876f89d Bug 735550 - unmark gray objects held by live nsXBLDocGlobalObjects. r=smaug 2012-03-18 07:17:05 -07:00
Nathan Froyd
59ce138419 Bug 732167 - Eliminate duplicate headers in content. r=mounir 2012-03-06 13:55:37 -05:00
Blake Kaplan
2c581e8da4 Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv 2012-03-14 16:25:40 +01:00
Emanuel Hoogeveen
6abde81520 Bug 492931 - Fix case conversion in a bunch of DOM functions to only convert ASCII characters. r=sicking,khuey 2012-03-09 21:50:34 -08:00
Adam
88859a8624 Make "let" a reserved word for Web scripts. Bug 730139, r=jorendorff. 2012-03-02 18:28:29 -06:00
Nathan Froyd
fd9b2f5005 Bug 730825 - Part 1: change content/ to use nsTHashtable instead of nsDoubleHashtable; r=sicking 2012-02-29 11:28:01 -05:00
David Mandelin
60e80d55b6 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Igor Bukanov
fc29d0f64c bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke 2012-02-13 09:02:21 +01:00
Neil Deakin
c5ade58f87 Bug 723676, crash writing to startup cache when an empty method body is used, r=bz 2012-02-13 14:24:28 -05:00
Neil Deakin
898d280714 Bug 721452, crash writing to startup cache when empty handler is used, r=bz 2012-02-13 14:24:28 -05:00
Olli Pettay
fdb750a0a6 Bug 725752 - BBP for XBL protos, f=mccr8,r=jst 2012-02-11 13:04:28 +02:00
Igor Bukanov
748c9f34a7 bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
38fe4ed717 backout merge for bug 724310. r=irc 2012-02-09 21:28:22 +01:00
Igor Bukanov
e4e3433d0c bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Olli Pettay
23494816a3 Bug 724284, cleanup XBL proto setup, r=bz 2012-02-07 10:35:58 +02:00
Panagiotis Koutsourakis
583eb38038 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Igor Bukanov
3163d5e91e bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke 2012-02-04 01:54:57 +01:00
Andrew McCreight
4d058d5e0d Bug 720292 - add more cycle collector edge names. r=smaug 2012-01-23 15:25:53 -08:00
Ms2ger
c3ac307be0 Bug 717195 - Export dombindings.h; r=bholley 2012-01-15 09:13:12 +01:00
Ms2ger
835800e350 Bug 717216 - Don't return nsnull from nsXBLDocGlobalObject::EnsureScriptEnvironment; r=volkmar 2012-01-15 09:13:11 +01:00
Olli Pettay
8796069aae Bug 716004 - Traverse nsXBLDocumentInfo less often, r=jst,mccr8 2012-01-13 14:44:14 +02:00
Ehsan Akhgari
bb36a1998e Bug 716677 - test_bug296375.xul makes incorrect assumptions about the event ordering; r=smaug 2012-01-10 12:42:47 -05:00
Olli Pettay
ba414d54f2 Bug 713865 - Don't traverse XBL and XUL protos so much, r=bent 2011-12-29 16:34:05 +02:00
Neil Rashbrook
985ba4520e Bug 669026 Fix caret movement when contenteditable areas are present r=ehsan 2011-12-24 00:11:30 +00:00
Jeff Walden
f73124604d Bug 711799 - Add parentheses to a bunch of && expressions nested within || expressions. r=dholbert 2011-12-18 01:00:47 -05:00
Ms2ger
e55f25e5ac Bug 698420 - Make nsScriptObjectHolder typesafe; r=bz 2011-12-18 11:05:12 +01:00
Jeff Walden
476c7d19c5 Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin 2011-12-08 22:54:10 -05:00
Masatoshi Kimura
26a3901298 Bug 704820 - Simplify nsContentUtils::ReportToConsole. r=smaug 2011-12-15 14:47:03 +00:00
Boris Zbarsky
74aef0d2d5 Bug 709256 part 3. Skip calling PresShell::FlushPendingNotifications altogether if there might not be anything to flush. r=roc 2011-12-14 23:42:15 -05:00
Olli Pettay
29ea5932ff Bug 702036 - JSEventListener could have weak mTarget to reduce CC overhead, r=bz 2011-11-29 11:44:06 +02:00
Ms2ger
d75f195dee Bug 698400 - Use setObject in nsXBLPrototypeHandler::EnsureEventHandler; r=jst 2011-11-26 11:14:29 +01:00
Ms2ger
3236046d99 Bug 698399 - Use nsScriptObjectHolder::getObject in some more places; r=mounir 2011-11-26 11:12:54 +01:00
Ms2ger
b744235be1 Bug 698394 - Pass JSObject handler to nsIScriptContext::BindCompiledEventHandler; r=sicking 2011-11-26 11:11:35 +01:00
Ms2ger
b6ae58dbc7 Bug 698389 - Give nsIScriptContext::CompileFunction a JSObject outparam; r=peterv 2011-11-26 11:08:42 +01:00
Ms2ger
0c30f5bf0f Bug 698386 - Pass JSObject to nsXBLProtoImplMember::CompileMember; r=sicking 2011-11-26 11:06:40 +01:00
Ginn Chen
41a1c76a75 Bug 701273 Fix prototype mismatch for nsXBLProtoImplProperty and nsXBLProtoImplField (bool vs const bool) r=enndeakin 2011-11-21 11:09:16 +08:00
Ms2ger
ec372233b8 Bug 698383 - Make nsXBLProtoImpl::mClassObject a JSObject; r=jst 2011-11-16 08:50:20 +01:00
Ms2ger
85773d688d Bug 698382 - Give nsXBLProtoImpl::InitTargetObjects and nsXBLPrototypeBinding::InitClass a JSObject outparam; r=jst 2011-11-16 08:50:20 +01:00
Ms2ger
5c10d97f4e Bug 698380 - Give nsIScriptContext::EvaluateStringWithValue a JS::Value retval parameter; r=peterv 2011-11-16 08:50:20 +01:00
Ms2ger
bfdd6b6239 Bug 698261 - Remove the aElementType argument of NS_NewElement; r=bz 2011-11-16 08:50:19 +01:00
Ms2ger
bb1ee74b88 Bug 696660 - Outparamdel nsIScriptRuntime::CreateContext; r=mrbkap 2011-11-16 08:50:19 +01:00
Ms2ger
6f106df58a Bug 700172 - Fix XBL_DeserializeFunction's signature; r=enn 2011-11-16 08:50:18 +01:00
Ms2ger
96df6329a2 Bug 94199 - Various cleanup; r=enn 2011-11-16 08:50:18 +01:00
Ed Morley
7bc582f20f Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
8a56fd9db2 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Neil Deakin
a647dac921 Bug 94199, part 5, remove line number reading and writing as it isn't necessary, dxr does that for us, r=bz 2011-11-03 16:39:08 -04:00
Neil Deakin
f2951fb37f Bug 94199, part 4, serialize/deserialize xbl to startup cache, r=bz 2011-11-03 16:39:08 -04:00
Neil Deakin
c1bb964ad6 Bug 94199, part 2, add method to serialize/deserialize js function, r=mwu 2011-11-03 16:39:08 -04:00
Neil Deakin
ccc200cb02 Bug 94199, part 1, move handling of base binding to nsXBLPrototypeBinding, r=bz 2011-11-03 16:39:07 -04:00
Ms2ger
5a5a0be3c3 Bug 696661 - Make nsIJSEventListener::mHandler a JSObject; r=jst 2011-10-29 22:16:43 +02:00