Trevor Saunders
87900be6b7
bug 873622 - remove XPCCallContext::GetXPConnect() r=bholley
2013-05-17 15:21:23 -04:00
Trevor Saunders
76cd3878e0
bug 873622 - remove nsIXPConnectWrappedNative::GetXPConnect() r=bholley
2013-05-17 14:31:02 -04:00
Trevor Saunders
252ee3acf9
bug 873622 - remove some useless xpconnect getters r=bholley
2013-05-17 13:28:08 -04:00
Trevor Saunders
f1e455a13f
bug 873622 - speed up nsXPConnect::GetXPConnect() and rename it since it never returns null r=bholley
2013-05-17 01:49:41 -04:00
Ms2ger
1602264ebc
Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz
2013-06-01 08:56:02 +02:00
Bobby Holley
5d4d04cffd
Bug 858101 - Run the DefaultValue algorithm directly on the wrapper for Xrays. r=mrbkap
2013-05-31 10:36:01 -07:00
Benjamin Peterson
f4dc321a08
Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
...
--HG--
extra : rebase_source : 34f95fc6017d3f3f4f091083debacbd466b51bf6
2013-06-11 12:49:11 -07:00
Gabor Krizsanits
654fe7f8ff
Bug 875405 - fixing unpushed cx usages. r=bholley
2013-05-30 16:54:46 +02:00
Peter Van der Beken
86d520dcf2
Bug 874321 - Fix setting of expandos on Xrays for DOM bindings with named properties. r=bz.
...
--HG--
extra : rebase_source : 697545417d27696de05c0f22987e4cb187d226cd
2013-05-29 11:38:57 +02:00
Brian Hackett
c14649e5d8
Bug 678037 - Add (disabled) ability to parse script bytecode lazily, r=luke.
2013-05-30 06:29:56 -06:00
Kyle Huey
fb465d209c
Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz
2013-05-30 11:15:31 +08:00
Boris Zbarsky
14e7edc59d
Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug
2013-05-29 16:16:04 -04:00
Bobby Holley
93149db762
Bug 876762 - Remove support for mScopeForNewJSObjects. r=luke
2013-05-29 09:50:49 -07:00
Ryan VanderMeulen
3aa3d304f2
Merge m-c to fx-team.
2013-05-28 21:25:32 -04:00
Bobby Holley
f8be750902
Bug 872135 - Remove unnecessary nsContentUtils include. r=me DONTBUILD
2013-05-28 11:05:38 -07:00
Bobby Holley
214e104806
Bug 870423 - Tests. r=bz
2013-05-28 10:29:38 -07:00
Mihai Sucan
4e10acc040
Bug 859756 - [browserconsole] Add timestamp to nsIConsoleMessages; r=bz
2013-05-24 21:36:56 +03:00
Mike Shal
6f32ddf61c
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
f53a29e132
Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz
2013-05-27 12:50:49 +01:00
Masatoshi Kimura
5e157a3641
Bug 875155 - Make bug 809674 test self-contained. r=bholley
2013-05-25 07:55:18 +09:00
Boris Zbarsky
d5daf7eeff
Bug 875628. NewProxyObject should take a handle for the private value. r=till
2013-05-24 13:03:13 -04:00
Bobby Holley
29228294cc
Bug 874318 - Don't allow CALL on XOWs. r=mrbkap
2013-05-22 22:27:16 -06:00
Bobby Holley
8e973c4709
Bug 862380 - Tests. r=mrbkap
2013-05-22 22:27:15 -06:00
Bobby Holley
047952f04b
Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap
2013-05-22 22:27:15 -06:00
Bobby Holley
7e08d10ad9
Bug 862380 - Be more explicit about rejecting JSID_VOID for XOWs. r=mrkbap
...
We already do this, but it's helpful to be clear about it.
2013-05-22 22:27:15 -06:00
Bobby Holley
db59678169
Bug 862380 - Pass the entered id in addition to the wrapper action to Policy::deny. r=mrbkap
2013-05-22 22:27:15 -06:00
Bobby Holley
11f2396ec2
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
Tom Schuster
0c845c2f9b
Bug 863957 - Check if jsid is really a string in Components.interfacesByID. r=bz
2013-05-22 22:32:50 +02:00
Bobby Holley
66c9dffde0
Bug 872135 - Use the SafeJSContext in nsXPConnect::CheckForDebugMode. r=gabor
2013-05-22 10:05:28 -06:00
Bobby Holley
bc91b98ea1
Bug 868130 - Fix include guard. r=me
2013-05-22 10:05:28 -06:00
Bobby Holley
1b2f22fe61
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
583ca59ca3
Bug 868130 - Add an AutoRequest inside nsCxPusher. r=gabor
2013-05-22 10:05:26 -06:00
Bobby Holley
2b2cd4e0b7
Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
...
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
772a8da25d
Bug 868130 - Move nsCxPusher into XPConnect. r=gabor
...
The JSContext stack is an XPConnect construction. In particular, there are
situations where we want to manipulate it outside the lifetime of nsContentUtils
but within the lifetime of the stack itself. In order to do this cleanly, it's
helpful to use private XPConnect APIs. So the first step here is to move this into
js/src/xpconnect, so that we can take advantage of the stuff in xpcprivate.h.
--HG--
rename : content/base/src/nsCxPusher.cpp => js/xpconnect/src/nsCxPusher.cpp
rename : content/base/public/nsCxPusher.h => js/xpconnect/src/nsCxPusher.h
2013-05-22 10:05:26 -06:00
Bobby Holley
ba05c93769
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
8ed4c38fb9
Bug 868130 - Enter a request for all of OnJSContextNew. r=peterv
2013-05-22 10:05:23 -06:00
Jan de Mooij
2c2722d303
Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj
...
--HG--
extra : rebase_source : 8b2ed85801fcd8c8fd0fc16a89b1a275add1a310
2013-05-22 14:50:45 +02:00
Boris Zbarsky
b0c5538087
Bug 874612. Make some nsIXPConnectWrappedNative methods take a Handle<jsid> instead of a jsid. r=bholley
2013-05-21 22:59:17 -04:00
Bobby Holley
ca6f7896a8
Bug 874083 - Ignore domain in PrepareForWrapping prototype remapping. r=gabor, billm
2013-05-21 07:53:35 -06:00
Brian Hackett
73af90e972
Bug 871079 - Don't trigger operation callback if JS has been running for less than one second, r=bholley.
2013-05-20 20:26:44 -06:00
Andrew McCreight
5eae3f10e5
Bug 873111 - Statically enforce root/child phase separation in cycle collector graph building. r=smaug
2013-05-20 13:08:11 -07:00
Masatoshi Kimura
febdba954d
Bug 873753 - Remove classinfo bits from WebIDL-bound events. r=smaug
2013-05-21 04:34:12 +09:00
Bobby Holley
76cfaf4368
Bug 871887 - Make sure |this|-binding is correct or marquee event listeners. r=bz
2013-05-20 11:33:49 -06:00
Boris Zbarsky
810766595d
Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley
2013-05-20 08:44:18 -04:00
Boris Zbarsky
be0882e3a1
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
1760bc9f2d
Bug 873730. Make JS_SourceHook take a Handle for the JSScript. r=till
2013-05-18 23:09:11 -04:00
Masatoshi Kimura
8897c8b3e0
Bug 871786 - Remove KeyboardEvent classinfo. r=smaug
2013-05-19 10:28:48 +09:00
Andrea Marchesini
0e20d68ea0
Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz
2013-05-18 13:52:06 -04:00
Boris Zbarsky
620839f027
Bug 868312 finale: finish rooting dom/ code. r=smaug
2013-05-17 21:48:25 -04:00
Gregory Szorc
c1b865f669
Bug 873629 - Remove 129 empty Makefile.in files; r=ted
2013-05-17 16:20:11 -07:00
Ryan VanderMeulen
64bb07971b
Merge m-c to inbound on a CLOSED TREE.
2013-05-17 17:34:54 -04:00
Ryan VanderMeulen
1732f4e103
Backed out changesets 073791f33ab7 and 7ac5779a426c (bug 859756) for causing intermittent Windows build failures.
...
CLOSED TREE
2013-05-17 17:30:20 -04:00
Ryan VanderMeulen
1575a033a0
Merge m-c to fx-team.
2013-05-17 12:51:20 -04:00
Mihai Sucan
7c419043ce
Bug 859756 - [browserconsole] Add timestamp, category and window IDs to nsIConsoleMessages; r=bz
2013-05-16 20:23:46 +03:00
Jan-Ivar Bruaroey
7921c9c1e4
Bug 823512: Rewrite PeerConnection in JS-implemented WebIDL r=bz,jesup
2013-05-07 20:55:21 -04:00
Ryan VanderMeulen
20ac561a9b
Merge m-c to inbound.
2013-05-17 15:40:53 -04:00
Bobby Holley
19dc83c3d3
Bug 872772 - Tests. r=gabor
2013-05-17 10:44:25 -07:00
Bobby Holley
d1f03a0013
Bug 872772 - Fix up lost Xray waivers when wrapping into the content compartment. r=gabor
2013-05-17 10:44:25 -07:00
Andrew McCreight
e7c16849ba
Bug 865320 - Move the logic for deciding when to doing a merging CC into the cycle collector. r=smaug
2013-04-29 16:41:41 -07:00
Nathan Froyd
d97ca8a232
Bug 871595 - don't include WrapperFactory.h in AccessCheck.h; r=bholley
2013-05-13 12:04:23 -04:00
David Zbarsky
36ae0d2a11
Remove some unused code due to bug 871189, r=bz over irc
2013-05-16 12:29:03 -07:00
David Zbarsky
a5f718b924
Bug 871189 - Remove Document classinfo r=bz
2013-05-16 11:06:21 -07:00
Olli Pettay
9e26f82682
additional patch for Bug 847594, remove bogus assertion, r=bz, CLOSED TREE
2013-05-16 19:16:29 +03:00
Ted Mielczarek
47d7af59de
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
Aryeh Gregor
2075ff6575
Bug 867098 - Don't implicitly convert to already_AddRefed in js/xpconnect/. r=peterv
2013-04-28 14:49:41 +03:00
Cameron McCormack
9c655c183c
Bug 839103 - Part 11: Add StyleRule{Added,Removed,Changed} events. r=bz
2013-05-16 17:13:36 +10:00
Cameron McCormack
22bd6f92e0
Bug 839103 - Part 10: Add StyleSheetApplicableStateChange event. r=bz
2013-05-16 17:13:36 +10:00
Cameron McCormack
acb7e00fdf
Bug 839103 - Part 9: Unify nsIDOMStyleSheet{Added,Removed}Event. r=bz
2013-05-16 17:13:36 +10:00
Bobby Holley
ed36afc718
Bug 866823 - Handle standard prototype remapping in PrepareForWrapping. r=gabor,mrbkap
2013-05-15 21:13:12 -07:00
Bobby Holley
da9b6c80de
Bug 866823 - Don't create waivers in WaiveXrayAndWrap if the caller has no business waiving. r=gabor,mrbkap
2013-05-15 21:13:12 -07:00
Bobby Holley
2e60cad213
Bug 871887 - Fix marquee _setEventListener. r=bz
2013-05-15 18:59:53 -07:00
Trevor Saunders
bc745c9d30
bug 860027 - lazily get the list of interfaces r=bholley
2013-05-03 17:22:46 -04:00
Trevor Saunders
7ee357c21c
bug 860027 - remove XPTIInterfaceInfoManager::EnumerateInterfaces() r=bholley r=bsmedberg
2013-04-09 16:00:21 -04:00
Masatoshi Kimura
9369a25ddf
Bug 673919 - Remove captureEvents, releaseEvents, and routeEvent. r=smaug
2013-05-14 21:18:39 +09:00
Joey Armstrong
0d49db0381
bug 869143: phase2 cleanup for XPCSHELL_TEST conversion. r=mshal
2013-05-13 16:24:07 -04:00
Ryan VanderMeulen
10cb36a582
Backed out changesets 6be352955252 and 1bc459138617 (bug 770840) for Android nightly bustage (bug 870782).
...
CLOSED TREE
2013-05-10 12:38:26 -04:00
Brian O'Keefe
3f66654fdb
Bug 862986 - Part 2a: Migrate PROGRAM from Makefile.in to moz.build. r=gps
2013-05-01 14:05:40 -04:00
Bobby Holley
92edf6dac2
Bug 770840 - Add Runtime aborts when using XPCWrappedJS off-main-thread. v2
2013-04-12 15:35:00 -04:00
Bobby Holley
7af601683b
Bug 770840 - Remove XPConnect test that explicitly runs JS on a seperate thread. v1
2013-04-12 15:34:00 -04:00
Bobby Holley
2dcffbdb3d
Bug 857356 - Remove XBL field auto-waiving. r=bz
2013-05-09 09:16:01 -07:00
Nathan Froyd
dbba9baf39
Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo
2013-05-01 16:55:13 -04:00
Jon Coppeard
19c0a804ad
Bug 869526 - GC: Fix more rooting hazards in xpconnect r=bholley
2013-05-09 10:39:21 +01:00
Luke Wagner
2b44dddc9c
Make test_asmjs.html run faster (no bug,r=me)
...
--HG--
extra : rebase_source : 22f32a01d39e1de3ae7e2a070ee1ea01dc4b9a75
2013-05-07 16:47:18 -07:00
Terrence Cole
fd72fc252e
Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst
2013-03-28 13:37:22 -07:00
Makoto Kato
0ec059eb04
Bug 800220 - Part 1. Replace PL_strlen with strlen. r=ehsan
2013-05-08 12:40:12 +09:00
Ryan VanderMeulen
f6068dd244
Merge inbound to m-c.
2013-05-07 22:10:19 -04:00
Bobby Holley
778b2d781a
Bug 868675 - Tests. r=gabor
2013-05-07 10:09:02 -07:00
Bobby Holley
b9ee7a89bb
Bug 868675 - Introduce a Cu API for waiving/unwaiving. r=gabor,sr=mrbkap
...
This should be the API we promote going forward.
2013-05-07 10:09:02 -07:00
Bobby Holley
34b027190b
Bug 868675 - Allow waiving on non-native objects. r=gabor
2013-05-07 10:09:02 -07:00
Bobby Holley
ac34e3617c
Bug 868675 - Don't throw for primitive-valued inputs to XPCNativeWrapper{,.unwrap}. r=gabor
2013-05-07 10:08:59 -07:00
Peter Van der Beken
29325f119e
Bug 868929 - Convert ImageDocument to WebIDL, drop hasXPConnectImpls from documents. r=bz.
...
--HG--
rename : content/html/document/src/ImageDocument.cpp => content/html/document/src/ImageDocument.h
extra : rebase_source : 23d83e5fcf8b6a6162524c09e7057edaeddec044
2013-05-07 17:27:53 +02:00
Bobby Holley
17078760f3
Bug 834707 - Kill dynamic SOWs. r=gabor
...
Now that XBL scopes are here to stay (no more pref), we can remove all the
machinery that makes SOWs dynamic. We still need SOWs until bug 825392 is
fixed, but they can now be totally opaque.
One side effect of this patch is that, due to our usage of Opaque, we now
allow CALL on SOWs. But this shouldn't be a problem, because SOWs are used
for anonymous elements which are not callable (and we probably wouldn't mind
it even if they were).
2013-05-06 19:38:23 -07:00
Bobby Holley
9a1a16ea75
Bug 834707 - Disable SOWs for remote XUL domains. r=bz
...
We have to do this if we want to proceed with eliminating SOWs entirely. Given
the other restrictions around remote XUL, I don't think this is a problem.
Note that we shouldn't need any special handling in the wrapper reparenting
paths, because those all depend on whether a SOW was there already. So that
would only be an issue if it were possible to adoptNode from a non-remote-XUL
domain into a remote-XUL domain, which thankfully can't happen.
2013-05-06 19:38:22 -07:00
Bobby Holley
be7264ecab
Bug 868122 - Remove nsIScriptContextPrincipal. r=gabor
...
\o/
2013-05-06 16:53:10 -07:00
Bobby Holley
998baa409b
Bug 868122 - Calculate the JS_SaveFrameChain optimization by directly examining the principal of the default compartment. r=mrbkap,gabor
2013-05-06 16:53:10 -07:00
Sankha Narayan Guria
6349c5c599
Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley
2013-05-06 09:04:17 -04:00
Phil Ringnalda
d3e92cd2f3
Merge m-c to m-i
2013-05-05 12:17:07 -07:00
Ms2ger
f2e25db30c
Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz
2013-05-05 09:03:19 +02:00
Ms2ger
088cca5a9c
Bug 868411 - Handlify js::GetObjectProto; r=bz
2013-05-05 09:03:14 +02:00
Boris Zbarsky
6baed10459
Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug
2013-05-03 19:29:08 -04:00
Boris Zbarsky
cf0d9ed876
Bug 865969 part 5. Root the id argument of WebIDL DefineInterface methods. r=smaug
2013-05-03 19:29:08 -04:00
Bobby Holley
d02fa60c1c
Bug 829872 - Fix up tests that depend on contentDocument being non-null. r=imelven
...
These almost universally depend on some sort of special privileges, so I don't
think they're representative of any use-cases we might find on the web.
2013-05-03 14:47:10 -07:00
Bobby Holley
9b90be6731
Bug 829872 - Tests. r=bz
2013-05-03 14:47:09 -07:00
Luke Wagner
64cf6530d4
Bug 854209 - add asm.js mochitests (r=sstangl)
2013-05-03 14:45:07 -07:00
Matt Brubeck
5ae4ce3ab7
Back out changeset e7e44c2d6d72 (bug 860027) because of Ts and MaxHeap regressions
2013-05-03 11:00:24 -07:00
Peter Van der Beken
2c2b37c721
Bug 855971 - Switch HTMLDocument to WebIDL bindings. r=bz.
2012-12-11 21:45:36 -05:00
Ehsan Akhgari
cfa035fed9
Backed out 3 changesets (bug 855971, bug 820846) because of browser-chrome test failures
...
Backed out changeset a2245b038bcc (bug 855971)
Backed out changeset 2a999f8ee317 (bug 820846)
Backed out changeset 6dba144500f3 (bug 820846)
2013-05-04 19:27:20 -04:00
Peter Van der Beken
2b06e35158
Bug 855971 - Switch HTMLDocument to WebIDL bindings. r=bz.
...
--HG--
extra : rebase_source : d5ec9a80442e5b9c8df29f6d5971b61cb9b05778
2012-12-11 21:45:36 -05:00
Tom Schuster
b497643dd7
Bug 865410 - Use CallArgs for nsIJSNativeInitializer::Initialize. r=bz
2013-05-04 19:25:15 +02:00
Tom Schuster
cbcd967826
Bug 865410 - Use CallArgs for XPConnect Call and Construct hooks. r=bholley.
2013-05-04 19:25:15 +02:00
Trevor Saunders
5fa36decd1
bug 860027 - remove XPTIInterfaceInfoManager::EnumerateInterfaces() r=bholley, bsmedberg
2013-04-09 16:00:21 -04:00
Bobby Holley
a25082424e
Bug 834699 - Stop checking dom.xbl_scopes. r=bz
2013-05-02 16:02:03 -07:00
David Zbarsky
a79bf02c5d
Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Olli Pettay
6aae4ec83f
Bug 847597 - Paris binding for NotifyAudioAvailableEvent, r=peterv
...
--HG--
extra : rebase_source : 2fb578e3f0c7a60f95f3a2f13634f9b4c887d95f
2013-05-02 20:11:12 +03:00
Ed Morley
581e7b778e
Backed out changeset b514d768d793 (bug 866450)
2013-05-02 11:57:14 +01:00
David Zbarsky
0566d3158e
Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Boris Zbarsky
8cc9072bea
Bug 861022 part 2. Root the global object in WebIDL prototype and interface object setup. r=peterv,terrence
2013-05-01 23:44:12 -04:00
David Zbarsky
fc7eb30f67
Bug 867459: Root xpcshell.cpp r=terrence
2013-05-01 18:43:53 -04:00
Kyle Huey
6bbc30edcf
Bug 864494: Hardcode the value of jsloader.reuseGlobal on b2g to work around some IPC preferences problem that we don't entirely understand. r=jlebar
2013-05-07 11:02:31 -07:00
Ted Mielczarek
eeafcabde2
bug 690935 - implement navigator.getGamepads(). r=smaug
...
--HG--
rename : content/events/src/nsDOMGamepad.cpp => dom/gamepad/Gamepad.cpp
rename : content/events/src/nsDOMGamepad.h => dom/gamepad/Gamepad.h
rename : dom/system/GamepadService.cpp => dom/gamepad/GamepadService.cpp
rename : dom/system/GamepadService.h => dom/gamepad/GamepadService.h
extra : rebase_source : da536e09d6c09c605db28e4af4ccccf824efc20d
2012-02-15 19:47:13 -05:00
Ryan VanderMeulen
a940e46079
Backed out changesets c7937fb5f4bb and cf8db9b6bd61 (bug 862986) for bustage.
...
CLOSED TREE
2013-04-30 21:09:41 -04:00
Brian O'Keefe
9305158b76
Bug 862986 - Part 2: Migrate PROGRAM from Makefile.in to moz.build. r=gps
2013-04-30 20:46:10 -04:00
Steve Fink
165cbb3250
Bug 866432 - Remove AutoValueRooter and replace it with RootedValue. r=terrence
...
--HG--
extra : rebase_source : f15a1a5fc43d3f43fc5f51fd3fb19001b040f8fe
2013-04-27 12:28:02 -07:00
Andrew McCreight
a6d222f8e6
Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz
2013-04-30 13:30:25 -07:00
Terrence Cole
60ff037fa7
Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco
2013-04-16 16:20:44 -07:00
Terrence Cole
c9dbce2442
Bug 860050 - Remove JSMutableHandleId typedef; r=jonco
...
--HG--
extra : rebase_source : ca0b47df116527404a9f021bf0f1f6ae880ee2c0
2013-04-16 14:46:03 -07:00
Andrew McCreight
0bafa2c0cd
Bug 866151 - Clean up usage of nsCycleCollector.h and nsCycleCollectorUtils.h. r=smaug,bsmedberg
...
--HG--
rename : xpcom/base/nsCycleCollector.h => xpcom/glue/nsCycleCollectionJSRuntime.h
2013-04-30 10:41:22 -07:00
Jon Coppeard
7c24e47add
Bug 866762 - GC: A few more XPConnect rooting hazards r=bholley
2013-04-30 15:27:48 +01:00
Ryan VanderMeulen
4f020afd30
Backed out changesets 64c7ba1d3d04 and 7e9d5bb4a9af (bug 862986) for test failures.
2013-04-30 10:08:38 -04:00
Brian O'Keefe
fd2b88f265
Bug 862986 - Part 2: Migrate PROGRAM from Makefile.in to moz.build. r=gps
2013-04-30 09:08:31 -04:00
Joey Armstrong
12356a4c50
bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS
2013-04-29 14:49:00 -04:00
Bobby Holley
c44c1b9af8
Bug 865729 - Remove nsIJSContextStack. r=gabor
...
\o/
2013-04-29 11:16:24 -07:00
Bobby Holley
1a9f081f4b
Bug 865729 - Remove Context stack iterators. r=gabor
2013-04-29 11:16:23 -07:00
Bobby Holley
b9009e00fc
Bug 865729 - Remove Push/Pop from public API. r=gabor
2013-04-29 11:16:22 -07:00
Bobby Holley
d7dbc59a66
Bug 865729 - Make nsIXPConnect inherit nsIThreadJSContextStack. r=gabor
...
Right now, the concrete nsXPConnect implements nsIXPConnect and
nsIThreadJSContextStack separately. I want to migrate the API from the latter
interface to the former, but I can't right now because it means we'd end up
with a duplicated method (getSafeJSContext). Since there's only one concrete
class that implements nsXPConnect, let's just use interface inheritance, which
simplifies the migration.
2013-04-29 11:16:20 -07:00
Bobby Holley
b4b5ad5d4d
Bug 865729 - Remove nsIJSContextStack from xpconnect/loader. r=gabor
2013-04-29 11:16:19 -07:00
Tom Schuster
c46a307c55
Bug 836949 - Remove the now unnecessary GetMethod function. r=jwalden
2013-04-27 17:37:05 +02:00
Jon Coppeard
427ec9e7da
Bug 865308: GC: More rooting work in XPConnect r=bholley
2013-04-26 18:50:18 +01:00
David Zbarsky
57b47b7ab9
Bug 856472: Convert CanvasGradient to WebIDL r=bz
2013-04-26 10:55:54 -04:00
David Zbarsky
3aaed3d194
Bug 856472: Convert CanvasPattern to WebIDL r=bz
2013-04-19 04:49:22 -04:00
Aryeh Gregor
b7c3e8030b
Bug 859817 - Make NS_NewAtom return already_AddRefed; r=bz
2013-04-22 14:13:22 +03:00
Ms2ger
229df37509
Merge m-c to m-i.
2013-04-26 12:32:27 +02:00
Ms2ger
2b71cc307b
Bug 862446 - Use CallArgs in XPC_WN_Helper_{Call,Construct}; r=bholley
2013-04-26 08:48:40 +02:00
Ms2ger
cc2268408a
Bug 852135 - Part d: Move nsDOMAttributeMap to WebIDL bindings, remove CI and QS; r=bz
2013-04-26 08:48:27 +02:00
Boris Zbarsky
eb0cabfa76
Bug 864727 part 1. Root the global before calling WrapObject in XPCConvert. r=bholley
...
I sort of wish GetGlobalJSObject just returned a handle.
2013-04-25 12:29:52 -04:00
Andrew McCreight
68f54b836e
Bug 865397 - Nicen up "id got defined" assertion. r=bholley
2013-04-25 08:42:44 -07:00
Nicholas Nethercote
47bf2c68a4
Bug 857382 (part 2) - Prefix zone addresses in about:memory with "0x" for consistenty with other addresses. r=billm.
...
--HG--
extra : rebase_source : a8c669c0bf27fa0b1d90c9b7862ca43dfe4a80bd
2013-04-21 13:55:05 -07:00
Bill McCloskey
26c023ee24
Bug 856670 - Bring JS C stack limit closer to actual OS limits (r=bsmedberg)
2013-04-25 21:02:22 -07:00
Boris Zbarsky
7041704c76
Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
...
There are several changes here:
1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
effectively allow doing a const_cast without knowing the actual type being
templated over. I needed this because I do not in fact know that type in
the relevant code. I'm open to suggestions for a better name for this
method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Bobby Holley
f4fb2c0693
Bug 865260 - Use IsXrayWrapper rather than ObjectIsNativeWrapper in nsWindowSH. r=bz
...
There are some other uses of ObjectIsNativeWrapper in other scriptable helpers
that are tempting to remove as well, but it's probably just better to wait for
that stuff to just go away. Given that the issue we're running into here is
Window-specific, there's not a pressing need to fix the other stuff.
2013-04-24 15:21:26 -07:00
Jon Coppeard
944a8fc0d8
Bug 861887 Review comments for prev patch r=bholley
...
--HG--
extra : rebase_source : 7f91680f5f7249c9fb09708eb790bdc19c779c67
2013-04-24 14:22:21 +01:00
Jon Coppeard
6ba0acddc0
Bug 861887 - GC: Rooting in XrayWrapper.cpp - part 2 r=bholley
2013-04-24 10:45:41 +01:00
Jon Coppeard
203717c2c2
Bug 861912 - GC: Remove use of AUTO_MARK_JSVAL in XPConnect r=bholley
2013-04-09 16:42:32 +01:00
Jon Coppeard
362746def2
Bug 864748 - Avoid accessing uninitialized data when calling a getter r=bholley
2013-04-24 10:45:40 +01:00
David Zbarsky
e7c500d80d
Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger
2013-04-24 00:22:37 -04:00
Bobby Holley
e37f15193b
Bug 860494 - Move the named property check further down in XrayWrapper. r=bz
2013-04-23 12:50:17 -04:00
Bobby Holley
f8cf107b85
Bug 860494 - Check for native properties before checking named children on XOWs. r=bz
2013-04-23 12:50:17 -04:00
Bobby Holley
648f5a0630
Bug 860494 - Clarify the semantics of XrayTraits::resolveOwnProperty. r=bz
...
Right now, it sometimes fills out |desc|, and sometimes just defines the property
on the holder. This can get confusing, so let's refine the semantics here and
describe them in a big comment.
2013-04-23 12:50:17 -04:00
Bobby Holley
086326bbd1
Bug 860494 - Make resolveNativeProperty a virtual instance method in XrayTraits like resolveOwnProperty. r=bz
...
The current setup is just an artifact of how it used to be before I refactored
Xrays. Have it as a virtual trap is more flexible since it allows us to invoke
the right trap by just calling GetXrayTraits(wrapper) from non-templatized code.
2013-04-23 12:50:16 -04:00
Tom Schuster
404b9fb391
Bug 856477 - Root rest of XPComponents. r=bholley,terrence
2013-04-23 17:48:05 +02:00
Tom Schuster
88d7dfb0b5
Bug 862834 - Root mozJSComponentLoader. r=bholley,terrence
2013-04-23 17:48:05 +02:00
Jon Coppeard
0168573b24
Bug 864046 - GC: Almost the last rooting fixes in XPConnect - part 2 r=bholley
2013-04-20 13:08:16 +01:00
Jon Coppeard
c1a74a031c
Bug 864046 - GC: Almost the last rooting fixes in XPConnect - part 1 r=bholley
2013-04-20 10:41:47 +01:00
Jon Coppeard
c8f9448382
Bug 863767 - GC: Rooting for XPCCallContext r=bholley
2013-04-20 09:52:56 +01:00
Jon Coppeard
7a5d88e2a2
Bug 863289 - GC: Continue the rooting of XPConnect r=bholley
2013-04-17 16:38:44 +01:00
Xin Zhang
5e389b35b8
Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
...
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
Nicholas Nethercote
f2da0908c8
Bug 864205 - Put the baseline memory reports in a tree. r=jandem.
...
--HG--
extra : rebase_source : 96362bd538979832f1fbe6ec55e42fd9a71c22bd
2013-04-22 13:35:44 -07:00
David Zbarsky
478f402ed9
Backout 3e7970330a3e for being wrong
2013-04-22 02:01:36 -04:00
Ms2ger
7c1ae1ff7c
Merge m-c to m-i.
2013-04-21 09:54:41 +02:00
David Zbarsky
a32d3dd112
Bug 856962 - Move Touch to WebIDL bindings; r=mounir
2013-04-21 08:42:19 +02:00
Ms2ger
c8fdfda9cb
Bug 862999 - Mark XPCCallContext as a stack class; r=bholley
2013-04-21 08:41:17 +02:00
Bobby Holley
0f42b12cb0
Bug 862918 - Add a utility method on Cu to get the class name of an object. r=bz
...
instanceof is behaving sketchily on modal window, and I want this test to be robust.
2013-04-19 09:49:57 -04:00
David Zbarsky
417758e921
Bug 856472: Convert CanvasPattern to WebIDL r=bz
2013-04-19 04:49:22 -04:00
David Zbarsky
23316e885d
Bug 856472: Convert TextMetrics to WebIDL r=bz
...
* * *
Bug 857439 Part 4: Fix MediaStreamList wrapping r=bz
2013-04-19 04:49:22 -04:00
Matt Brubeck
5b3131bc9c
Back out e1549b50183f (bug 860027), suspected of regressing Trace Malloc and/or Ts Paint
2013-04-18 15:34:48 -07:00
Ryan VanderMeulen
a4025c1a43
Backed out changesets b9f7fd0996f0 and c0ab16b6003e (bug 860494) for mochitest failures on a CLOSED TREE.
2013-04-17 12:00:20 -04:00
Bobby Holley
b976419c3f
Bug 860494 - Tests. r=bz
2013-04-17 10:52:52 -04:00
Bobby Holley
b7f2135639
Bug 860494 - Move the named property check further down in XrayWrapper. r=bz
2013-04-17 10:52:52 -04:00
Gabor Krizsanits
9c83a59bcd
Bug 820170 - Wrapping nodes into documents compartment. r=bholley
2013-04-17 10:11:53 +02:00
Terrence Cole
a0e6ca8ef3
Bug 860572 - Use Rooted<JSPropertyDescriptor> in XPCComponents; r=bholley
2013-04-12 17:42:59 -07:00
Mike Shal
24b4056720
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Boris Zbarsky
91af6882c7
Bug 862077. Even if we have a wrapper cache, don't assume that no cached wrapper means no wrapped native.: it's not true for inner windows. r=peterv
2013-04-19 23:04:22 -04:00
David Zbarsky
5826da3d17
Backout 2201d650ac90 for not building on Windows on a CLOSED TREE
2013-04-19 18:57:56 -04:00
David Zbarsky
1cc79b4d68
Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger
2013-04-19 18:18:33 -04:00
Terrence Cole
ac1916de10
Bug 779336 - Replace DOMExpandoMap with a js::HashSet; r=bholley
...
--HG--
extra : rebase_source : 125fbd75b5123c17cda64c9dfe7e09b36c03bb42
2012-07-31 15:52:16 -07:00
Ms2ger
1248f673c4
Backout changeset baf184596a7b for build errors on a CLOSED TREE.
2013-04-16 19:07:38 +02:00
Gabor Krizsanits
68aa3f8764
Bug 820170 - Wrapping nodes into documents compartment. r=bholley
2013-04-16 11:31:26 +02:00
Ryan VanderMeulen
f770eca455
Backed out changeset 76f7d7963692 (bug 861912) for debug mochitest b-c orange.
2013-04-16 11:51:49 -04:00
Jon Coppeard
7294227163
Bug 861912 - GC: Remove use of AUTO_MARK_JSVAL in XPConnect r=bholley
...
--HG--
extra : rebase_source : 5d279fe19c5dfc5812eaa2a241945c58a29dbe9d
2013-04-09 16:42:32 +01:00
Jon Coppeard
385efb584a
Bug 861281 - GC: Root the wrap object API r=terrence r=bholley
...
--HG--
extra : rebase_source : 1d3ed88299ad8e9ad6812fb41aa48f03cc7aabae
2013-04-15 18:32:55 +01:00
Nicholas Nethercote
500e72cfdf
Bug 859657 (part 2) - Remove nsIMemoryMultiReporter.explicitNonHeap because it's more trouble than it's worth; also remove the "explicit" single reporter. r=jlebar.
...
--HG--
extra : rebase_source : a146536a3dd0043082bcb1c26d980c4c6d4c0730
2013-04-11 20:52:32 -07:00
Steve Fink
335d42f16c
Backed out 2 changesets (bug 860572) for OSX build breakage
...
Backed out changeset d02e437f5b48 (bug 860572)
Backed out changeset c849d14e7f59 (bug 860572)
2013-04-15 16:26:06 -07:00
Jeff Walden
6539207aee
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
Trevor Saunders
89164c6c37
bug 860027 - remove XPTIInterfaceInfoManager::EnumerateInterfaces() r=bsmedberg, bholley
2013-04-09 16:00:21 -04:00
Trevor Saunders
fe13a2cd72
bug 860027 - remove nsXPConnect::mInterfaceInfoManager r=bholley
2013-03-10 20:14:14 -04:00
Trevor Saunders
6fa1ee8a4c
bug 860027 - remove nsXPConnect::GetInterfaceInfoManager() r=bholley
2013-03-08 22:05:08 -05:00
Trevor Saunders
84322cd450
bug 860027 - nuke the interface info super manager r=bsmedberg
2013-03-08 15:23:31 -05:00
Terrence Cole
52c05b18d4
Bug 860572 - Use Rooted<JSPropertyDescriptor> in XPCComponents; r=bholley
...
--HG--
extra : rebase_source : 696cf3ac61d431188d92440bbe506852ecf3c232
2013-04-12 17:42:59 -07:00
Olli Pettay
37bb065f35
Bug 856303 - Paris binding for MouseScrollEvent, r=peterv
...
--HG--
extra : rebase_source : 26aec7e5472d213615918f20168e3fd2277b0591
2013-04-15 23:37:52 +03:00
Olli Pettay
f9cfac1b16
Bug 856363 - Paris binding for TouchEvent, r=peterv
...
--HG--
extra : rebase_source : 09fc86b555febd5adfaeebdffeb685e37c1d0823
2013-04-15 23:33:46 +03:00