Jon Coppeard
8278efd42a
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
8c89deb65b
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Jon Coppeard
1463e7df5b
Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz
2013-07-26 10:00:38 +01:00
William Chen
0d79ba91bc
Bug 895805 - Ensure nsBindingManager hashtable is initialized before use. r=mrbkap
2013-07-25 22:58:39 -07:00
Jon Coppeard
477e4df5c5
Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz
2013-07-25 13:57:00 +01:00
Ms2ger
88a17639b3
Bug 896385 - Use nsInterfaceHashtable for nsXBLPrototypeBinding::mInterfaceTable; r=mrbkap
2013-07-24 09:39:56 +02:00
Jon Coppeard
3155328d9e
Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz
2013-07-23 10:58:28 +01:00
Jon Coppeard
da4b383f2b
Bug 891966 - 1 - Don't allow construction of Handle<T> from Heap<T> r=bz
2013-07-23 10:58:27 +01:00
Blake Kaplan
ee626e75ca
Bug 895129 - Fix a typo in the original patch: we should be ignoring xul:observes. r=sicking
2013-07-17 16:20:37 -07:00
Bobby Holley
c045da868b
Bug 887334 - Enter a compartment between manual calls to JS_{Save,Restore}FrameChain. r=luke
...
The stuff in nsXBLProtoImplMethod is doing the same thing, so let's just have
it call into nsJSUtils.
2013-07-17 11:53:52 -07:00
William Chen
9e883ad8f5
Bug 796061 - Part 2: Remove mInsertionParentTable from nsBindingManager. r=mrbkap
2013-07-17 09:05:06 -07:00
William Chen
ca763cf5e3
Bug 796061 - Part 1: Remove mBindingTable from nsBindingManager. r=mrbkap
2013-07-17 09:05:03 -07:00
Blake Kaplan
c55ad9cb94
Bug 888787 - Restore old XBL behavior when a child of the bound element didn't match any of the <children/> in the binding. r=sicking
2013-07-11 17:05:54 -04:00
Mike Hommey
ffd522d5c2
Bug 892904 - Remove useless includes of config.mk. r=gps
2013-07-15 18:48:40 +09:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Boris Zbarsky
60d5133416
Bug 890193. Make the XML prettyprinter actually drop its binding when it unhooks, and remove the now-dead concept of "style binding" in the process. r=mrbkap
2013-07-11 11:58:28 -04:00
J. Ryan Stinnett
8dd81455a4
Bug 282097 - Part 9: Ensure editor commands are enabled. r=enndeakin
2013-07-10 09:13:53 -05:00
J. Ryan Stinnett
a9d3b48bc1
Bug 282097 - Part 5: Remove platform bindings for Cocoa. r=neil
2013-07-10 09:10:18 -05:00
Tim Taubert
65cc5f15e6
Bug 891806 - part 2 - replace 'yield;' with 'yield undefined;' in content/; r=smaug
2013-07-10 23:52:14 +02:00
Ryan VanderMeulen
aaee3cf638
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
Ms2ger
db26bfced0
Bug 213324 - Remove getter_AddRefs(T*); r=ehsan
2013-07-10 11:56:21 +02:00
Blake Kaplan
ea4da60962
Bug 891088 - Rename nsXBLChildrenElement -> mozilla::dom::XBLChildrenElement. r=peterv
...
--HG--
rename : content/xbl/src/nsXBLChildrenElement.cpp => content/xbl/src/XBLChildrenElement.cpp
rename : content/xbl/src/nsXBLChildrenElement.h => content/xbl/src/XBLChildrenElement.h
2013-07-01 15:09:37 -07:00
Kyle Huey
22ba9194a9
Bug 891088: Fix whitespace. r=me
2013-07-09 07:29:25 -07:00
Kyle Huey
49b422d01c
Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff
2013-07-09 07:28:15 -07:00
Bobby Holley
4ed4784c75
Bug 880917 - Remove AutoVersionChecker. r=luke
...
Looks like cdleary added this back in bug 595691, as an equivalence to some
even-older-and-more-overly-cautious XBL code that was saving and restoring
the version across XBL calls. It doesn't seem like this should be an issue
anymore, and it's just a debugging aid to boot. Let's kill it.
2013-06-29 09:11:18 -06:00
Bobby Holley
f5f7bf3be5
Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
...
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Blake Kaplan
55ee93f1af
Bug 653881 - Rework XBL insertion points and clean up related code to more closely follow the Web Components model. Instead of maintaining a hashtable of insertion points in bindings (and removing insertions points from the tree) leave the insertion points in the tree as explicit placeholders and teach all other relevant code how to walk the explicit children of elements via two iterators (ExplicitChildIterator and FlattenedChildIterator). Note that this patch does not maintain 100% compatibility with the previous code: there are bug fixes and behavior changes included. For example, by having explicit insertion points in the bindings, it is now easier to handle dynamic changes to the bound element correctly (as well as, eventually, handling dynamic changes to the binding correctly). Patch originally by sicking. r=bzbarsky
...
--HG--
extra : rebase_source : 6926ae8ea57b20f4067b16bd3d7bd85bda854756
2013-05-01 15:50:08 -07:00
Ms2ger
ff63d2149b
Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug
2013-06-23 09:15:42 +02:00
Gabor Krizsanits
756a8f8c8c
Bug 864335 - Remove GetScriptGlobalObject. r=mrbkap
2013-06-21 16:25:20 +02:00
Jon Coppeard
4b40ce1453
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Bobby Holley
2fa8b1cfb0
Bug 883450 - Miscellaneous requests. r=gabor
2013-06-20 11:05:34 -07:00
Terrence Cole
a1b85dbc2a
Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco
...
--HG--
extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
2013-06-13 17:10:00 -07:00
Jon Coppeard
c56ed4c7b6
Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz
2013-06-19 11:32:27 +01:00
Jon Coppeard
31b2a9deca
Bug 884283 - GC: Rename RootMethods to GCMethods r=terrence
2013-06-19 11:32:26 +01:00
Jon Coppeard
6e32864304
Bug 877762 - GC: Post-barrier cycle collector participants - 8 Convert JS::Object to use Heap<T> (XBL) r=bz r=sfink
2013-06-18 11:00:38 +01:00
Arnaud Sourioux
ac2132dad0
Bug 856822: Annotate ~1700 methods with MOZ_OVERRIDE in /content r=smaug
2013-05-29 13:43:41 -07:00
Ryan VanderMeulen
468b93224a
Backed out changeset a966aadd9ae3 (bug 856822) for Windows bustage on a CLOSED TREE.
2013-05-29 17:56:10 -04:00
Arnaud Sourioux
ff4b91709f
Bug 856822: Annotate ~1700 methods with MOZ_OVERRIDE in /content r=smaug
2013-05-29 13:43:41 -07:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Jon Coppeard
8a68ce4b84
Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz
2013-05-27 12:50:49 +01:00
Masatoshi Kimura
fad511757b
Bug 876040 - Replace nsIDOMEvent::GetPreventDefault() with nsIDOMEvent::DefaultPrevented(). r=smaug
2013-05-26 06:05:36 +09:00
Bobby Holley
d1daeb827a
Bug 868110 - Introduce a more private API for the consumers that really do need the default compartment object. r=luke
...
The primary consumer of this is the whole inner/outer DOM window setup, which
uses the default global to track the current inner. But there are few other
random ones as well.
We use this as an opportunity to convert a bunch of consumers from the two-step
GetNativeContext() -> JS_GetGlobalObject() into just |GetNativeGlobal()|. This
will make things much easier to convert when we start tracking the current inner
explicitly.
2013-05-22 15:42:44 -06:00
Bobby Holley
91448a9dac
Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
...
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
54ef3d2952
Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor
2013-05-22 10:05:26 -06:00
Bobby Holley
ed14745b20
Bug 834701 - Stop setting the XBL script in the browser. r=bz
2013-05-20 22:34:17 -06:00
Boris Zbarsky
85b06d58a3
Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley
2013-05-20 08:44:18 -04:00
Boris Zbarsky
8fdfd3f823
Bug 873735 part 1. Fix the more or less mechanical browser rooting hazards. r=terrence
2013-05-20 08:40:06 -04:00
Boris Zbarsky
3ab853407d
Bug 869195. Make QueryInterface be exposed for both chrome and xbl scopes, not just in chrome. r=bholley,peterv
2013-05-14 14:24:48 -04:00
Ted Mielczarek
110919af49
bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium
2013-05-16 09:33:26 -04:00
Ryan VanderMeulen
01613554be
Backed out 4 changesets (bug 869195, bug 870845, bug 872043, bug 862825) for mochitest b-c, mochitest-other, and xpcshell orange on a CLOSED TREE.
...
Backed out changeset 049889b25a79 (bug 869195)
Backed out changeset fc0bef5a2cfd (bug 862825)
Backed out changeset 267fe0d9c201 (bug 870845)
Backed out changeset 7b06b9d1acb2 (bug 872043)
2013-05-14 16:40:26 -04:00
Boris Zbarsky
1a05e187ae
Bug 869195. Make QueryInterface be exposed for both chrome and xbl scopes, not just in chrome. r=bholley,peterv
2013-05-14 14:24:48 -04:00
Ehsan Akhgari
67b44c27c9
Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky
2013-05-13 13:43:53 -04:00
Ehsan Akhgari
7c06c8a034
Backed out 2 changesets (bug 871315) because different compilers have different standards on what is and is not C++
...
Backed out changeset d0d2e13e8b83 (bug 871315)
Backed out changeset be3976bd2d57 (bug 871315)
Landed on a CLOSED TREE
2013-05-13 14:42:03 -04:00
Ehsan Akhgari
807676e818
Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky
2013-05-13 13:43:53 -04:00
David Zbarsky
ae680f2b5f
Bug 868312 - Rooting fixes for dom r=bz
2013-05-10 14:22:21 -04:00
Bobby Holley
d03867df1d
Bug 857356 - Convert field-y XBL tests to run with dom.use_xbl_scopes_for_remote_xul=false. r=bz
...
There are a couple of tests here that do funny things with fields. Our basic
position here is that fields have no place for in-content XBL bindings, but
there's still value in testing this stuff given our heavy usage of XBL in
chrome code. They really should be converted to chrome tests, but I was having
trouble doing that, so I decided to convert them to run without XBL scopes, like
we do for remote XUL.
As a nice side effect, this gives us a tiny bit more test coverage for the
remote XUL configuration.
--HG--
rename : content/xbl/test/test_bug372769.xhtml => content/xbl/test/file_bug372769.xhtml
rename : content/xbl/test/test_bug397934.xhtml => content/xbl/test/file_bug397934.xhtml
2013-05-09 09:16:02 -07:00
Bobby Holley
7e6ee8100d
Bug 857356 - Fix in-content XBL tests. r=bz
2013-05-09 09:16:02 -07:00
Bobby Holley
d0202a05c6
Bug 857356 - Remove XBL field auto-waiving. r=bz
2013-05-09 09:16:01 -07:00
Ehsan Akhgari
99c910f4fe
Bug 868783 - Fix rooting hazards in nsXBLSerialize.cpp; r=till
2013-05-04 19:48:13 -04:00
Bobby Holley
f8786d3cd8
Bug 834699 - Fix tests that munge dom.xbl_scopes. r=bz
2013-05-02 16:02:04 -07:00
David Zbarsky
33b84ccd33
Bug 866450 Part 1: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:45 -04:00
Ed Morley
38f36edd9e
Backed out changeset ad10907da2d4 (bug 866450) for B2G build failures
2013-05-02 11:58:05 +01:00
David Zbarsky
62df33d2a0
Bug 866450 Part 1: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:45 -04:00
Aryeh Gregor
659b807986
Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger
2013-04-22 14:15:59 +03:00
Boris Zbarsky
9c1973b5d2
Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger
2013-04-25 12:29:54 -04:00
Boris Zbarsky
87e77a2b99
Bug 862629 part 1. Stop playing compartment games with WebIDL callbacks and just use the given object as-is. r=peterv
2013-04-24 14:59:15 -04:00
Nathan Froyd
7eab915b83
Bug 781702 - silence warning spew from nsXBLProtoImplMethod.cpp; r=bz
2012-10-08 15:52:24 -04:00
David Zbarsky
204a17f3b2
[Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 7 r=Ms2ger
2013-04-21 21:25:28 -04:00
Mike Shal
77cdb6567d
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Jeff Walden
f9d3bc73ed
Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm
2013-04-05 21:22:55 -07:00
David Zbarsky
045fad43d6
Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 3 r=Ms2ger
2013-04-14 14:27:33 -04:00
Jacek Szpot
514f40e52a
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-11 11:50:18 -07:00
Ryan VanderMeulen
3cd54220b2
Backed out changesets a550dadafa30 and 315f6b451d07 (bug 857884) for mochitest failures on a CLOSED TREE.
2013-04-11 13:59:02 -04:00
David Zbarsky
343a84e848
Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 3 r=Ms2ger
2013-04-11 12:24:47 -04:00
Aryeh Gregor
3e99dc4f10
Bug 857102 part 4 - Make NS_NewCommentNode and nsIDocument::CreateCommentNode infallible; r=bz
2013-04-04 15:02:22 +03:00
Aryeh Gregor
6d2305a18c
Bug 857102 part 3 - Make various GetNodeInfo callers infallible; r=bz
2013-04-04 15:01:11 +03:00
Aryeh Gregor
c446dbef0c
Bug 857102 part 2 - Make NS_NewTextNode and nsIDocument::CreateTextNode infallible; r=bz
2013-04-04 15:01:08 +03:00
Ryan VanderMeulen
24a4c17eff
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
8ce12e971c
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00
David Zbarsky
785f24e28f
Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 2 r=Ms2ger
2013-04-05 20:44:26 -04:00
David Zbarsky
a3eafcf007
Bug 857884 - Use dom::EventTarget more in content/ and dom/ r=Ms2ger
2013-04-05 20:44:15 -04:00
Bobby Holley
0c00d801cd
Bug 858642 - Null-check the XBL scope. r=bz
2013-04-05 12:04:09 -07:00
Tom Schuster
c11b2ed39b
Bug 855411 - Root XBL_DeserializeFunction. r=bz,terrence
2013-04-05 15:21:03 +02:00
Tom Schuster
ec87b7de30
Bug 855411 - Root various things. r=bz,terrence
2013-04-05 15:21:03 +02:00
Tom Schuster
d3ebb2d912
Bug 855411 - Root InstallField. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
cc6b62046b
Bug 855411 - Root InstallAccessors. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
ffa0382dc0
Bug 855411 - Root InstallXBLField. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
f955317578
Bug 855411 - Root Execute. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
dfdfeab850
Bug 855411 - Root Read. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
fba2a086ce
Bug 855411 - Root CompileMember. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
985a0f1a7f
Bug 855411 - InstallMember. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
152458d4d1
Bug 855411 - Root doCheckAccess. r=bz,terrence
2013-04-05 15:21:02 +02:00
Tom Schuster
556e3087f2
Bug 855411 - Root LookupMember. r=bz,terrence
2013-04-05 15:21:01 +02:00
Tom Schuster
4a0f5a6352
Bug 855411 - Root Init{JS}Class. r=bz,terrence
2013-04-05 15:21:01 +02:00
Tom Schuster
f989076385
Bug 855411 - Root ChangeDocument. r=bz,terrence
2013-04-05 15:21:01 +02:00
Gabor Krizsanits
b999241fc8
Bug 820170 - using nsIGlobalObject in documents. r=smaug
2013-04-04 11:27:41 +02:00
Gabor Krizsanits
23e12dce05
Bug 820170 - nsIGlobalObject. r=bholley
2013-04-04 11:27:06 +02:00
Bobby Holley
eb199ec0c8
Bug 843829 - Wrap unwaived content JS objects in opaque wrappers for XBL scopes. r=mrbkap
2013-04-03 11:41:23 -07:00
Bobby Holley
c038c610e6
Bug 843829 - Explicitly add a waiver in FieldGetter and FieldSetter. r=mrbkap
2013-04-03 11:41:23 -07:00
Bobby Holley
43eb484613
Bug 843829 - Stop using IsTransparent for XBL field access, and explicitly waive instead. r=mrbkap
2013-04-03 11:41:23 -07:00
Bobby Holley
5acffc4e54
Bug 843829 - Fix incorrect test. r=mrbkap
...
This wasn't actually testing anything, because |is| is defined in the scope of
the content, so by passing the objects as arguments, we end up re-wrapping them
in the content scope, where the distinction between waived and non-waived
objects doesn't exist.
We're actually just about to remove this test in the next patch, but I wanted
to make it correct first. :-)
2013-04-03 11:41:23 -07:00
matekm
00c2965124
Bug 784739 - Switch from NULL to nullptr in content/; r=ehsan
...
--HG--
extra : rebase_source : cfdb682506acc14ec811e21ae42f067950e1ff0c
2013-04-02 21:14:24 -04:00
Ehsan Akhgari
9df6dde4c7
Backed out 6 changesets (bug 843829, bug 845862) because of broken mochitest-5
...
Backed out changeset 1df3bdadb7ce (bug 843829)
Backed out changeset 64f001fe04fb (bug 843829)
Backed out changeset 57652d8f0827 (bug 843829)
Backed out changeset 2e889cd77a48 (bug 843829)
Backed out changeset 97d16e7beb27 (bug 843829)
Backed out changeset 6c6ab0e54917 (bug 845862)
Landed on a CLOSED TREE
2013-04-02 23:05:48 -04:00
Bobby Holley
b7d2424ff1
Bug 843829 - Wrap unwaived content JS objects in opaque wrappers for XBL scopes. r=mrbkap
2013-04-02 18:51:20 -07:00
Bobby Holley
b8f153dab6
Bug 843829 - Explicitly add a waiver in FieldGetter and FieldSetter. r=mrbkap
2013-04-02 18:51:20 -07:00
Bobby Holley
3beb744c60
Bug 843829 - Stop using IsTransparent for XBL field access, and explicitly waive instead. r=mrbkap
2013-04-02 18:51:20 -07:00
Bobby Holley
ced70f3e62
Bug 843829 - Fix incorrect test. r=mrbkap
...
This wasn't actually testing anything, because |is| is defined in the scope of
the content, so by passing the objects as arguments, we end up re-wrapping them
in the content scope, where the distinction between waived and non-waived
objects doesn't exist.
We're actually just about to remove this test in the next patch, but I wanted
to make it correct first. :-)
2013-04-02 18:51:19 -07:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Jose Cortes
ed1d7393df
Bug 842186 - Update use of jsval with JS::Value in cpp and h files in the content/xul/ content/canvas/ content/xslt/ and content/xbl/ directories. r=jwalden
...
--HG--
extra : rebase_source : fc2809818c2601d0b58f503968d579d09de98ea9
2013-03-22 22:05:20 -07:00
David Zbarsky
5cc0fcdcdf
Bug 847007: Remove nsIContent includes r=Ms2ger
2013-03-21 20:05:20 -04:00
Bobby Holley
3ee39985ec
Bug 844783 - Tests. r=bz
2013-03-21 09:33:35 -07:00
Ryan VanderMeulen
f2110c1812
Backed out changesets 775abfe4876f and 1b75fab8561b (bug 844783) under suspicion of breaking Windows debug builds on a CLOSED TREE.
2013-03-21 14:15:31 -04:00
Bobby Holley
4bd2744634
Bug 844783 - Tests. r=bz
2013-03-21 09:33:35 -07:00
Terrence Cole
5f4e4d162b
Bug 850293 - Remove nsScriptObjectHolder; r=mccr8,bholly sr=smaug
...
nsScriptObjectHolder is not needed with either conservative or exact rooting.
2013-03-20 13:09:09 -07:00
Boris Zbarsky
48065c3f32
Bug 848386 part 4. Rename nsXMLDocument to mozilla::dom::XMLDocument. r=peterv
...
--HG--
rename : content/xml/document/src/nsXMLDocument.cpp => content/xml/document/src/XMLDocument.cpp
rename : content/xml/document/src/nsXMLDocument.h => content/xml/document/src/XMLDocument.h
2013-03-20 12:22:26 -04:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Gregory Szorc
2288b28e43
Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium
2013-03-17 18:01:25 -07:00
Ms2ger
2ef57946b1
Merge m-c to m-i.
2013-03-17 13:22:37 +01:00
Ms2ger
a2173990cc
Bug 845374 - Part l: Stop including nsIDocument.h in nsContentUtils.h and fix two nits; r=khuey
2013-03-17 08:55:15 +01:00
Bill McCloskey
a3cea08b3a
Bug 759585 - Zones (r=jonco,bhackett,njn,dvander,luke,bz,mccr8,bholley)
2013-03-16 20:36:37 -07:00
Nicholas Nethercote
08daa3b287
Bug 847248 (part 8) - Remove nsFixedSizeAllocator from xbl/. r=bz.
...
--HG--
extra : rebase_source : 3e4675e525674e9fda53831676d8440ff55a49cb
2013-03-05 05:12:16 -08:00
Masatoshi Kimura
e5e5a90814
Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz
2013-03-12 08:03:47 +09:00
Nicholas Nethercote
f42c5af971
Bug 847248 (part 7) - Remove nsFixedSizeAllocator from nsXBLService. r=bz.
...
--HG--
extra : rebase_source : df6db83d51472ec57a72bf657e38f126326b389a
2013-03-05 04:37:47 -08:00
Ms2ger
2cf07efa15
Bug 847195 - Make NamedNodeMap only deal with Attrs; r=khuey
...
--HG--
rename : dom/interfaces/core/nsIDOMNamedNodeMap.idl => dom/interfaces/core/nsIDOMMozNamedAttrMap.idl
2013-03-10 09:00:33 +01:00
Jon Coppeard
8d5fd16382
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 35cbf3cc4da4598c2e9e6975028ef397718849db
2013-03-06 16:41:43 +00:00
Ed Morley
fe417ad697
Backed out changeset 28ef4bdff455 (bug 848395)
2013-03-07 13:03:35 +00:00
Jon Coppeard
fa71007e65
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 866879df05e3ec3f8e93570eb3f6b71103636b41
2013-03-06 16:41:43 +00:00
Jim Chen
c55a0c09f7
Bug 831144 - Add Android XBL key bindings; r=neil
...
--HG--
rename : content/xbl/builtin/unix/Makefile.in => content/xbl/builtin/android/Makefile.in
rename : content/xbl/builtin/unix/jar.mn => content/xbl/builtin/android/jar.mn
rename : content/xbl/builtin/unix/moz.build => content/xbl/builtin/android/moz.build
2013-03-05 11:08:08 +00:00
Gregory Szorc
f0b7e3972c
Merge mozilla-central into build-system
...
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Ms2ger
cd9c6150fe
Merge m-c to b-s.
2013-02-26 19:09:25 +01:00
Gregory Szorc
faf262c4ee
Merge mozilla-central into build-system
...
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Gregory Szorc
aa0fed2e03
Bug 784841 - Part 18g: Convert /content; r=glandium
2013-02-25 12:47:19 -08:00
Bobby Holley
440bea3fd7
Bug 843711 - Fix up new |Components| culprits in test suite. r=mccr8
2013-02-25 10:43:03 -08:00
Ryan VanderMeulen
f6564cf84f
Backed out changesets 77a94dc888c9 and 3f6e6912e71a (bug 831144) for Android mochitest failures on a CLOSED TREE.
2013-02-25 12:35:33 -05:00
Jim Chen
5a5bc20b45
Bug 831144 - Add Android XBL key bindings; r=neil
...
--HG--
rename : content/xbl/builtin/unix/Makefile.in => content/xbl/builtin/android/Makefile.in
rename : content/xbl/builtin/unix/jar.mn => content/xbl/builtin/android/jar.mn
2013-02-25 11:33:29 -05:00
Peter Van der Beken
410cee5e49
Fix for bug 844225 (Remove some DOMCI and quickstubs). r=bz.
2013-01-10 10:54:46 +01:00
Bobby Holley
d1a3436036
Bug 834732 - Audit callers of GetNativeContext and use AutoPushJSContext where appropriate. r=mrbkap
2013-02-26 11:04:13 -08:00
Bobby Holley
9190ce39d5
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-26 11:04:11 -08:00
Bobby Holley
997dcc7d65
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-26 11:04:09 -08:00
L. David Baron
57d19fbb86
Bug 404077: Annotate known assertions in mochitests.
2013-02-25 18:39:21 -08:00
Bobby Holley
c8f55e8889
Bug 843231 - Alter the XBL scope test to make it compatible with reading the dom.xbl_scopes only once per global. r=bz
...
--HG--
rename : content/xbl/test/test_bug821850.xhtml => content/xbl/test/file_bug821850.xhtml
2013-02-22 07:56:03 -08:00
Jonathan Kew
5219b8ae03
backout cset 4ede352670cd (bug 759585) on a CLOSED TREE on suspicion of making windows reftests so slow that they timeout and burn
2013-02-22 09:36:41 +00:00
Bill McCloskey
c330d96d13
Bug 759585 - Change the granularity of collection from compartment to zone (r=jonco,bhackett,njn,dvander,mccr8,bz,luke,bholley)
2013-02-21 18:23:47 -08:00
Bobby Holley
89e4df03dc
Bug 839792 - Revert Tamper-proofing. r=bz
...
This reverts bug 821850 part 16, and updates the tests accordingly.
2013-02-13 19:16:19 +01:00
Bobby Holley
b1f783c725
Bug 839792 - Do XBL lookups on the shadow prototype. r=bz
2013-02-13 19:16:19 +01:00
Bobby Holley
135c73b30d
Bug 839792 - Store members on a shadow proto in the XBL scope. r=bz
2013-02-13 19:16:19 +01:00
Bobby Holley
70a369794a
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-13 00:22:26 +01:00
Bobby Holley
b55e2ecc2b
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-13 00:22:26 +01:00
Bobby Holley
6ccfc2d64b
Bug 821850 - Tests. r=bz
2013-02-08 14:24:22 +00:00
Bobby Holley
0a9cda6738
Bug 821850 - Clone XBL into the XBL scope's compartment. r=bz
2013-02-08 14:24:22 +00:00
Bobby Holley
dc7e7a50d2
Bug 821850 - Dynamically waive Xray for field access by XBL script on bound nodes. r=bz
2013-02-08 14:24:22 +00:00
Bobby Holley
e47fde05d0
Bug 821850 - Add API to lookup implementation members on XBL bindings. r=bz
2013-02-08 14:24:21 +00:00
Bobby Holley
8d1e313928
Bug 821850 - Make XBL prototype setup tamper-proof for Xrays. r=bz
...
We make the class object readonly/non-configurable, as well as all the properties
and methods on the class object.
2013-02-08 14:24:21 +00:00
Bobby Holley
2eef2f91f9
Bug 821850 - Unwrap |callee| before passing it to InstallXBLField. r=bz
...
InstallXBLField knows how to handle cross-compartment |callee|. However,
The current value will always be wrapped. We need to unwrap said wrappers,
otherwise we'll end up with objects that aren't functions.
2013-02-08 14:24:21 +00:00
Bobby Holley
85c0f5cf46
Bug 821850 - Install XBL field accessors on prototype objects at setup time, and nuke XBLResolve. r=bz
2013-02-08 14:24:21 +00:00
Bobby Holley
c6479a3444
Bug 821850 - Hoist Field machinery into nsXBLProtoImplField. r=bz
...
This is a pure cut/paste except for removing |static| from XBLResolve.
XBLResolve will go away soon, so there's no need to put it in a header.
2013-02-08 14:24:21 +00:00
Bobby Holley
f1ce397128
Bug 821850 - Remove unused arguments from InstallMember and simplify calling convention. r=bz
...
Let's just pass a JSContext and do Requests/Compartments in the caller.
2013-02-08 14:24:21 +00:00
Bobby Holley
3d089c3644
Bug 821850 - Store a strong ref to the JSClass in nsXBLBinding. r=bz
2013-02-08 14:24:20 +00:00
Bobby Holley
8dfc5ae9df
Bug 821850 - Make DoInitJSClass unconditionally fill in aClassObject. r=bz
...
Right now, DoInitJSClass only returns non-null if the class object is new
(and thus needs to have members installed on it). The code then goes and
unconditionally tries to install the members, null-checking and aborting
each time.
Instead, let's use an explicit boolean and one early return. This lets us
get a reference to our JSClass no matter what, which we need.
2013-02-08 14:24:20 +00:00
Bobby Holley
b3559180d2
Bug 821850 - Remove bogus comment/check and replace with an assert. r=bz
...
This confused me, because fields are, in fact, exposed via the prototype
via the complicated two-step solution defined in InstallField. As it turns
out, CompilePrototypeMembers throws if mClassObject ends up null.
2013-02-08 14:24:20 +00:00
Bobby Holley
698846e095
Bug 821850 - Pass nsXBLBinding instead of nsIContent during implementation installation. r=bz
...
This lets us hook up the binding to the JSClass.
2013-02-08 14:24:20 +00:00
Bobby Holley
c1612afa13
Bug 821850 - Make XBL-in-content tests Xray-safe. r=bz
...
We use XPCNativeWrapper.unwrap rather than .wrappedJSObject so that the tests
are agnostic to whether there's an Xray wrapper or not.
I converted test_tree_column_reorder.xul into a chrome test because it does
all sorts of crazy introspection on the binding, and it really should be
a chrome test anyway.
2013-02-08 14:24:19 +00:00
Josh Matthews
c747c518a0
Bug 829360 - Keep non-browser windows from extending the lifetime of the private session. r=bz
2013-02-04 23:22:51 +00:00
Mounir Lamouri
3570a22696
Bug 833009 - Remove "nsContentUtils.h" inclusions from headers in content/xbl/. r=Ms2ger
2013-02-01 10:56:02 +00:00
Bobby Holley
5b106e3b14
Bug 833412 - Remove AddBinding/RemoveBinding and remove dead code. r=bz
2013-01-24 18:45:50 +01:00
Bobby Holley
54be1dda8b
Bug 833412 - Make nsXMLPrettyPrinter use nsXBLService/BindingManger to load/remove bindings. r=bz
2013-01-24 18:45:50 +01:00
Bobby Holley
bec0b2c540
Bug 833412 - Fix tests that call addBinding. r=bz
2013-01-24 18:45:49 +01:00
Olli Pettay
dd1a06e287
Bug 831421 - Arrow keys are broken in test-ipc.xul, r=neil
2013-01-24 18:38:59 +02:00
Bobby Holley
cec2ed5339
Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz
2013-01-23 07:12:50 +01:00
Steve Fink
57a2c2471b
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
380ecf9335
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
01f8a5b4d8
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
fe9b482b3b
Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz
2013-01-16 18:50:27 -08:00
Bobby Holley
89a6e0fc9e
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
1724ed7409
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
8d5b0ca82e
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
9f0ad48b28
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Boris Zbarsky
5be1bca34a
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
58c56890d2
Bug 508725 - Part 3: Create a rule processor for each style scope. r=dbaron
2013-01-09 10:25:47 +11:00
Cameron McCormack
26873544a3
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
50a3cffd42
Bug 508725 - Part 3: Create a rule processor for each style scope. r=dbaron
2013-01-08 19:09:22 +11:00
Trevor Saunders
96c9daa6be
bug 825419 - outparamdel nsIDocShell::GetPresShell() r=smaug
2012-12-28 20:56:42 -05:00
Peter Van der Beken
b208a08d09
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
a7107105f5
Bug 823279 - Mark deserialized XBL script as XBL. r=bz
2012-12-19 17:12:33 -08:00
Bill McCloskey
75bb99f7e1
Bug 821116 - Track line numbers for XBL properties (r=bz)
2012-12-17 12:22:38 -08:00
Masayuki Nakano
2455263ab2
Bug 813445 part.14 Make dom::EventListenerFlags for nsEventListenerManager r=smaug
2012-12-16 10:26:05 +09:00
Jeff Walden
7146c23e80
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
b4e2a8d95a
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
a9ffac91b5
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-12-13 15:55:31 +00:00
Olli Pettay
381122eb46
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
b9b954824f
Bug 820666 - Tag XBL script for <field> elements and child scripts. r=jorendorff
2012-12-12 17:09:37 -08:00
Steve Fink
ea67e8a65e
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
0bae59cdf1
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
1e72329799
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
ec39e2a150
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
a3c255e49c
Bug 811466 - Add include guards around some headers which were missing them. r=khuey
2012-11-19 20:05:34 -05:00
Kyle Huey
709f2f8c2f
No bug: s/class/struct/ to shut up MSVC. r=me DONTBUILD
2012-11-19 09:22:27 -08:00