Commit Graph

3495 Commits

Author SHA1 Message Date
Bobby Holley
ce9c4ef5c4 Bug 975042 - Implement resolveOwnProperty and enumerateNames trap. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
b65a5d12b4 Bug 975042 - Make enumerateNames trap virtual. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
3ef7622033 Bug 975042 - Implement getPrototypeOf. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
6f32cdd540 Bug 975042 - Implement createHolder. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
867afa81f6 Bug 975042 - Implement the easy trait hooks. r=peterv 2014-03-20 23:47:23 -03:00
Bobby Holley
2b514f18c9 Bug 975042 - Basic Xray infrastructure and boilerplate. r=peterv
All of this machinery asserts if it actually get used. But it won't be used at
present, because we have an empty whitelist of JSProtoKeys.
2014-03-20 23:47:23 -03:00
Bobby Holley
ba01d93b50 Bug 975042 - Remove the special COW support for Date. r=peterv
As soon as Date is on Xrays, this stuff won't work anyway. Henceforth, content
access to chrome Date objects is forbidden, and APIs should use something like
|new contentWindow.Date()| for any Date object they wish to expose to content.
2014-03-20 23:47:23 -03:00
Gabor Krizsanits
b368adf53a Bug 985472 - cloneInto for sandbox. r=bholley 2014-03-25 16:21:56 +01:00
Gabor Krizsanits
6949913c28 Bug 985472 - Name fixup in ExportFunction. r=bholley 2014-03-25 16:21:51 +01:00
Nathan Froyd
bfa7382195 Bug 948445 - use different caching schemes for ProtoAndIfaceArray depending on the global kind; r=bz 2013-12-10 16:04:55 -05:00
Bobby Holley
311ff27b73 Bug 958326 - Remove same-compartment security wrapper machinery. r=mrbkap 2014-03-26 10:59:20 -03:00
Bobby Holley
655ad8ddf4 Bug 979481 - Make the SafeJSContext default to a null compartment, and have AutoSafeJSContext enter the compartment instead. r=bz 2014-03-26 10:59:03 -03:00
Bobby Holley
fd6d0d6aab Bug 979481 - Prepare the cx stack machinery for a world where a cx has no default compartment object. r=bz 2014-03-26 10:59:02 -03:00
Bobby Holley
d9cab97202 Bug 979481 - Separate the lifetime of the SafeJSContext global from that of the SafeJSContext itself. r=bz 2014-03-26 10:59:02 -03:00
Terrence Cole
99ff6a733e Bug 957723 - Followup fix for decommitted nursery reporting; r=njn 2014-03-19 14:43:44 -07:00
Bob Owen
3fbc188f5e Bug 978042 - Part 1: AutoPushJSContext in nsEventListenerManager::CompileEventHandlerInternal. r=bholley 2014-03-19 11:08:13 +00:00
Bobby Holley
8c3d899db2 Bug 825392 - Remove SOWs. r=bz 2014-03-19 13:35:45 -03:00
Bobby Holley
8e563284fb Bug 825392 - Add xpc::GetXBLScopeOrGlobal and Sprinkle some calls to it where necessary. r=bz 2014-03-19 13:35:45 -03:00
Nathan Froyd
5aa819df66 Bug 984985 - avoid a useless stat call when loading JS components; r=bholley 2014-03-18 12:49:00 -04:00
Nathan Froyd
0b75838310 Bug 983803 - cast to nsIDOMEvent directly for generated events, rather than calling CallQueryInterface; r=smaug 2014-03-14 15:31:09 -04:00
Bobby Holley
abb31827e1 Bug 976704 - Make opaque security wrappers non-callable. r=gabor,sr=mrbkap 2014-03-18 19:23:45 -03:00
Brian Hackett
ecdbf6f6c8 Bug 972817 - Enable type inference unconditionally, r=jandem. 2014-03-18 09:05:16 -06:00
Terrence Cole
ae5effd448 Bug 957723 - Decommit unused portions of the nursery; r=jonco 2014-01-08 13:43:55 -08:00
Terrence Cole
3c28d00cf9 Backout ed7130b21a68 (Bug 957723) for SM(r) orange on a CLOSED TREE. 2014-03-17 11:42:57 -07:00
Peter Van der Beken
ee76987bdb Bug 982114 - Deal with new DOM binding objects for Window in more places. r=bz. 2014-01-30 15:31:16 +01:00
Peter Van der Beken
f44da3849f Bug 982112 - Make accesscheck code deal with WebIDL bindings. r=bz. 2013-11-05 09:47:59 +01:00
Steve Fink
92095d3677 Bug 981809 - Postbarrier WeakMapPtr keys, r=terrence
--HG--
extra : rebase_source : 207e9ab48a03ec4fdfe314a8c2c6e6af95853d6b
2014-03-13 13:53:34 -07:00
Terrence Cole
f90244a4d8 Bug 957723 - Decommit unused portions of the nursery; r=jonco
--HG--
extra : rebase_source : b4e5a0b55d1817d3fc312b4aed2abb4e5273b145
2014-01-08 13:43:55 -08:00
Jon Coppeard
9adcde9134 Bug 959787 - Handlify some friend and debug APIs r=sfink r=bholley 2014-03-17 16:17:58 +00:00
Jon Coppeard
6ca748883c Bug 959787 - Handlify JS_ExecuteScript, JS_EvaluateScript and other JS APIs r=sfink r=bz 2014-03-17 16:17:58 +00:00
Phil Ringnalda
5cd379fb80 Back out db542ae460d9 (bug 983399) for b2g debug xpcshell bustage 2014-03-16 19:42:51 -07:00
Terrence Cole
0cd291344b Bug 983399 - Make mozComponentLoader work with moving GC; r=sfink
--HG--
extra : rebase_source : d5d04949c97be80bdf2212f82493686bd4a6cb28
2014-03-07 15:28:48 -08:00
Kyle Huey
7067fb5db1 Bug 345123: Remove nsGetterAddRefs<T>'s operator nsISupports**. r=bsmedberg 2014-03-15 12:00:17 -07:00
Kyle Huey
84360900b0 Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg 2014-03-15 12:00:17 -07:00
Kyle Huey
510a49016d Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
Jeff Walden
e0cac3428c Back out dd53db747a5e (bug 945152 part 2) to clear way for other fixing. Should reland in short order (before merge) after those other fixes land. r=backout 2014-03-14 16:38:07 -07:00
Jan de Mooij
72868bca23 Bug 981554 - Move allocator for optimized Baseline stubs from JitCompartment to JitZone. r=njn
--HG--
extra : rebase_source : 609881b6cf783805333454b876797ad5235bfecc
2014-03-14 19:13:08 +01:00
Vaibhav Agarwal
74d0d984a3 Bug 971132 - B2G mochitests should use the new manifest format for runtests; r=jmaher 2014-03-13 10:40:10 -04:00
Shian-Yow Wu
11e0058e9a Bug 945152 - Part 2: Report mapped array buffer statistics for about:memory. r=njn 2014-03-13 14:32:16 +08:00
Gabor Krizsanits
79c86a04cc Bug 980023 - Localstorage access with nsEp. r=bholley 2014-03-11 08:41:55 +01:00
Jason Orendorff
0b5b4fd344 Bug 980016 - Remove SpecialId. r=njn. 2014-03-10 16:32:21 -05:00
Jason Orendorff
c4905dda94 Bug 977287, part 1 - Rename the "operation callback" to "interrupt callback". r=luke. 2014-03-10 16:28:43 -05:00
Carsten "Tomcat" Book
bae5497c15 Backed out changeset 557c7be2fdb6 (bug 979481) for causing regression Bug 981202 2014-03-10 12:32:05 +01:00
Carsten "Tomcat" Book
6fff26dc1e Backed out changeset 5d9fb147f723 (bug 979481) 2014-03-10 12:31:35 +01:00
Carsten "Tomcat" Book
b8827464c5 Backed out changeset 670fb9adcd29 (bug 979481) 2014-03-10 12:31:32 +01:00
Bill McCloskey
6493a2ad3b Back out bug 940305 (too spammy) 2014-03-08 13:04:11 -08:00
Andrew McCreight
e91cb76669 Bug 977940, part 2 - Don't automatically trigger the ghost window detector during ICC. r=smaug 2014-03-08 05:38:53 -08:00
Masatoshi Kimura
5b26a9e31e Bug 978611 - Part 3: Get rid of legacy dictionaries: events and codegen. r=smaug,khuey 2014-03-07 20:51:51 +09:00
Masatoshi Kimura
811f1e846e Bug 978611 - Part 1: Stop using legacy dictionaries from MmsMessage. r=vicamo 2014-03-07 20:51:48 +09:00
Jan de Mooij
d64a9d454e Bug 939562 part 3 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke
--HG--
extra : rebase_source : cea8b4ab3024ed49e8be688f7cf4819bba0f5d29
2014-02-26 10:25:36 +01:00
Bill McCloskey
09e1cf2ed6 Bug 980558 - Enable extraWarnings on safe JS context (r=bholley) 2014-03-06 18:48:16 -08:00
Wes Kocher
b5aceae5af Backed out changeset 263b6c86c1be (bug 980558) for build bustage on a CLOSED TREE 2014-03-06 18:43:26 -08:00
Bill McCloskey
4b67940dca Bug 980558 - Enable extraWarnings on safe JS context (r=bholley) 2014-03-06 18:26:33 -08:00
Luke Wagner
b2189937c6 Bug 980180 - remove principals as an argument to compilation, part 2 (r=terrence)
--HG--
extra : rebase_source : 86791b50b4293ba5506f1e0f5c64730338f552e6
2014-03-06 16:28:07 -06:00
Luke Wagner
731533e709 Bug 980180 - remove principals as an argument to compilation, part 1 (r=terrence)
--HG--
extra : rebase_source : 8bf0ff6974870d6772021aafa88dd8fd5132fc70
2014-03-06 16:28:05 -06:00
Bobby Holley
8c2b8ca542 Bug 969441 - Check for recursion outside of the hairy transplant callsites. r=billm 2014-03-06 15:26:17 -08:00
Bobby Holley
9ad310839d Bug 979481 - Make the SafeJSContext default to a null compartment, and have AutoSafeJSContext enter the compartment instead. r=bz 2014-03-06 08:55:01 -08:00
Bobby Holley
eaf2b92fca Bug 979481 - Prepare the cx stack machinery for a world where a cx has no default compartment object. r=bz 2014-03-06 08:55:00 -08:00
Bobby Holley
c338f2025d Bug 979481 - Separate the lifetime of the SafeJSContext global from that of the SafeJSContext itself. r=bz 2014-03-06 08:55:00 -08:00
Bobby Holley
8e3b6aa7ec Bug 960108 - Ignore saved frame chains and contexts in JS::DescribeStack. r=bz 2014-03-05 20:15:35 -08:00
Nicholas Nethercote
f9cfc2b035 Backout 519787a56627 (bug 972712, part 6) and the follow-up 5c9a4a1f2c0b (bug 978227) because ASAN is complaining intermittently about the former. r=me.
--HG--
extra : rebase_source : 31e2b96c57703caf94f65fed1d0c007d6984421e
2014-03-05 14:19:28 -08:00
Bobby Holley
cb7d95a386 Bug 960820 - Ignore contexts and saved frame chains for exception stack, and rely on the principal check. r=luke,mrbkap sr=bz
It would be nice to update the JS shell tests to make sure the principal check
works, but we can't do that without bug 969273. So we add an XPConnect test that
verifies the filtering behavior.
2014-03-05 08:18:06 -08:00
Jed Davis
6a4c4691a0 Bug 946407 - Reimplement DumpMemoryInfoToTempDir in terms of GetReports. r=njn
This winds up exposing things in the nsIMemoryReporterManager interface
that arguably don't belong at that level of abstraction -- "minimize
memory usage first" and DMD -- in order to take advantage of the
infrastructure that GetReports already has for managing the child
processes.
2014-03-04 18:27:13 -08:00
Masayuki Nakano
d26caa0d74 Bug 975688 part.28 Rename nsDOMEvent to mozilla::dom::Event r=smaug
--HG--
rename : dom/events/nsDOMEvent.cpp => dom/events/Event.cpp
rename : dom/events/nsDOMEvent.h => dom/events/Event.h
2014-03-05 09:37:43 +09:00
Andrew McCreight
6d6e9c420b Bug 978203 - Don't include nsWindowMemoryReporter.h in nsINode.h. r=smaug 2014-03-04 15:39:42 -08:00
Wes Kocher
55ae71a452 Backed out changeset 3f8a7062ad8d (bug 978203) for build bustage on a CLOSED TREE 2014-03-04 14:15:33 -08:00
Andrew McCreight
dc81f67e51 Bug 978203 - Don't include nsWindowMemoryReporter.h in nsINode.h. r=smaug 2014-03-04 13:33:44 -08:00
Bobby Holley
be59b95518 Bug 977340 - Assert during compartment checking that we're using the stack-top cx. r=luke,gabor 2014-03-04 10:05:08 -08:00
Bobby Holley
43bec730b1 Bug 977340 - Do some gymnastics to avoid tripping cx assertions when cloning exceptions from evalInWindow calls. r=gabor 2014-03-04 10:05:08 -08:00
Bobby Holley
74a5406c5a Bug 977340 - Use an AutoJSContext when clearing modules. r=gabor 2014-03-04 10:05:08 -08:00
Bobby Holley
f25679417d Bug 976938 - Add a way to identify the Xray parent (if any) of a given function. r=bz 2014-03-04 10:05:07 -08:00
Ehsan Akhgari
daca2d2104 Bug 978995 - Stop exporting symbols from xpconnect; r=bholley 2014-03-03 20:51:27 -05:00
Jeff Walden
5a7db86560 Bug 972132 - Convert JS::EmptyValueArray to JS::HandleValueArray::empty(). r=terrence
--HG--
extra : rebase_source : 58b87df07373a7811136682b128aea67f04446cd
2014-02-12 23:38:36 -08:00
Ed Morley
19a755d4e4 Merge mozilla-central and inbound 2014-03-03 16:59:25 +00:00
Ed Morley
7d716105c8 Backed out changeset 508848ad378a (bug 939562) for causing bug 978450 2014-03-03 16:54:26 +00:00
Bobby Holley
08e9309de6 Bug 975419 - Used a TenuredHeap pointer for SandboxPrivate and BackstagePass. r=mccr8 2014-03-03 08:53:42 -08:00
Jan de Mooij
53c60cb160 Bug 939562 part 3 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke
--HG--
extra : rebase_source : e25c6f5f381a972c472fb8a845c737fb31617682
2014-02-26 10:25:36 +01:00
Masayuki Nakano
3d0ba958a1 Bug 975688 part.26 Rename nsDOMUIEvent to mozilla::dom::UIEvent r=smaug
--HG--
rename : dom/events/nsDOMUIEvent.cpp => dom/events/UIEvent.cpp
rename : dom/events/nsDOMUIEvent.h => dom/events/UIEvent.h
2014-02-28 23:58:43 +09:00
Nicholas Nethercote
c3a3e7dd12 Bug 972712 (part 6) - Report objects and shapes by their class. r=till.
--HG--
extra : rebase_source : aa42a16006a3ef180056836215d497dba0eae383
2014-02-26 18:35:48 -08:00
Nicholas Nethercote
0f9f39e3f1 Bug 972712 (part 4) - Report script sources in more detail. r=till.
--HG--
extra : rebase_source : b28fc8f4ff791966cb784e1c12def58927d3e3d3
2014-02-13 20:03:07 -08:00
Nicholas Nethercote
f1c7f4aeee Bug 972712 (part 3) - Rework notable string reporting. r=till.
--HG--
extra : rebase_source : 274c2ee9beafca5e464234f37e894967d20abb25
2014-02-26 18:11:01 -08:00
Nicholas Nethercote
29dab736f0 Bug 972712 (part 2) - Shorten JS memory report descriptions. r=till.
--HG--
extra : rebase_source : 5acec546db5b3f62d4a88c301af282c53f8abaf4
2014-02-26 17:59:50 -08:00
Nicholas Nethercote
bee7f6eba5 Bug 972712 (part 1) - Don't report short strings separately. r=till.
--HG--
extra : rebase_source : 631fe6137935cfb2fbfc3339406c5418d458ad38
2014-02-26 17:53:02 -08:00
Luke Wagner
73fe847fc6 Remove JS_ prefix from DescribeScriptedCaller in comments NPOTB (no bug, r=me) 2014-02-27 10:47:54 -06:00
Benjamin Bouvier
470398b6d7 Bug 939843: Required changes in the rest of the tree; r=froydnj
--HG--
extra : rebase_source : 5757eb2b73755c8da08112b91b025a8fa860d7e8
2014-02-27 16:23:16 +01:00
Peter Van der Beken
46ee609d7b Bug 803106 part 2. Convert DOMStringList to WebIDL bindings - add WebIDL API and switch. r=bzbarsky 2013-07-09 13:54:21 -04:00
Masayuki Nakano
01a476057d Bug 975688 part.15 Rename nsDOMMouseEvent to mozilla::dom::MouseEvent r=smaug
--HG--
rename : dom/events/nsDOMMouseEvent.cpp => dom/events/MouseEvent.cpp
rename : dom/events/nsDOMMouseEvent.h => dom/events/MouseEvent.h
2014-02-27 19:51:15 +09:00
Jan de Mooij
4fbee02ebe Bug 939562 part 2 - Increase kTrustedScriptBuffer from 40k to 50k on Windows. r=bholley 2014-02-27 09:41:24 +01:00
Carsten "Tomcat" Book
e428ad4fe3 Backed out changeset 802aa43ae8cc (bug 939562) for PGO mochitest regression on a CLOSED TREE 2014-02-26 16:02:15 +01:00
Jason Orendorff
57e0541753 Bug 972319, part 2 - Transition some code using JS_SaveExceptionState to JS::AutoSaveExceptionState. r=bholley. 2014-02-26 08:55:34 -06:00
Jan de Mooij
f8a1ec2850 Bug 939562 part 2 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke 2014-02-26 10:25:36 +01:00
Jan de Mooij
ecb70ddc4c Bug 939562 part 1 - Bump trusted script buffer size for ASAN builds. r=bholley 2014-02-26 10:19:45 +01:00
Luke Wagner
4c59cb92eb Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley)
--HG--
extra : rebase_source : 58387ce3e4c49d3140b92b84bf3577fc6584820e
2014-02-25 09:43:14 -06:00
Bobby Holley
992eba1b46 Bug 976151 - Anti eval/Function() check during wrapping should use |subsumes|. r=gabor 2014-02-25 08:38:33 -08:00
Ehsan Akhgari
f594359272 Bug 975740 - Port WIN32_EXE_LDFLAGS to moz.build; r=mshal 2014-02-24 08:30:25 -05:00
Bobby Holley
091ae7c290 Bug 975277 - Introduce a mechanism to identify instances of standard classes. r=luke 2014-02-21 16:03:11 -08:00
Bobby Holley
56357094c5 Bug 975277 - Move the wrappedJSObject getter out of getPropertyDescriptor. r=gabor
The current setup is kinda wrong, and doesn't work with HasPrototype Xrays.
This change requires us to manually munge the holder, but that's probably ok
for now.
2014-02-21 16:03:08 -08:00
Bobby Holley
2ec68b243f Bug 975277 - Clean up the XPCWN XrayHolder a bit. r=gabor 2014-02-21 15:55:31 -08:00
Peter Van der Beken
d9eb61589a Bug 975277 - Pass the real receiver when using HasPrototype. r=bholley 2014-02-21 15:55:31 -08:00
Peter Van der Beken
24f17f7f15 Bug 975277 - Add some machinery to allow Traits to specify whether they want to use hasPrototype or not. r=bholley,efaust 2014-02-21 15:55:30 -08:00
Bobby Holley
6c1bcb5e71 Bug 973780 - Remove Xray expando slot from WNs. r=bz 2014-02-21 11:35:49 -08:00
Bobby Holley
0cb2796466 Bug 973780 - Hook Xrays up to the new expando map. r=bz 2014-02-21 11:35:48 -08:00
Bobby Holley
37d0e443fd Bug 973780 - Implement an expando WeakMap on XPCWrappedNativeScope. r=mccr8 2014-02-21 11:35:48 -08:00
Luke Wagner
4eed36705e Bug 797126 - Remove tinyid/shortid/userid (r=terrence)
--HG--
extra : rebase_source : d3cee5e71ca02708e91419b209b5914ce9fd2f9f
2014-02-21 10:24:26 -06:00
Phil Ringnalda
a196f2815f Back out 0f5f58d5d410:8db4d719f5f8 (bug 973780) for debug WinXP mochitest-3 assertions
CLOSED TREE
2014-02-20 20:46:50 -08:00
Nicholas Nethercote
1a629c91d7 Bug 969415 (part 2) - Add a pref to enable memory report dumping on JS OOMs. r=luke.
--HG--
extra : rebase_source : 3971f809744869a2f2d77e435e95aca44bf7e9d7
2014-02-20 18:35:43 -08:00
Bobby Holley
732c715f1a Bug 973780 - Remove Xray expando slot from WNs. r=bz 2014-02-20 18:24:09 -08:00
Bobby Holley
a3477db1f4 Bug 973780 - Hook Xrays up to the new expando map. r=bz 2014-02-20 18:24:09 -08:00
Bobby Holley
1c941984e6 Bug 973780 - Implement an expando WeakMap on XPCWrappedNativeScope. r=mccr8 2014-02-20 18:24:09 -08:00
Andrew McCreight
38957cb028 Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug 2014-02-20 12:55:40 -08:00
Chris Peterson
41e56b2e41 Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke 2014-02-17 22:24:15 -08:00
Bobby Holley
8cca66b363 Bug 960828 - More diagnostics. r=mccr8 2014-02-19 18:23:48 -08:00
Andrew McCreight
7ca0781046 Backout bug 966762 for Valgrind leaks 2014-02-19 17:17:58 -08:00
Andrew McCreight
558195773a Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug 2014-02-19 13:27:15 -08:00
Brian Hackett
cae987d2a2 Bug 964059 - Share atoms compartment/zone between multiple runtimes, r=billm,bent. 2014-02-19 09:02:13 -07:00
Daniel Holbert
84283bddce back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage. 2014-02-19 00:15:51 -08:00
Chris Peterson
966ea39163 Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke 2014-02-17 22:24:15 -08:00
Phil Ringnalda
369e9f3db8 Merge b-i to m-c 2014-02-15 10:01:36 -08:00
Bobby Holley
bb7e5e5083 Bug 968003 - Return null for frameElement with a cross-origin parent. r=bz 2014-02-14 22:39:34 -08:00
Bobby Holley
263626e418 Bug 968335 - Tests. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
aa566f93a5 Bug 968335 - Implement Cu.getWebIDLCallerPrincipal. r=bz 2014-02-14 22:36:44 -08:00
Bobby Holley
d927d55f46 Bug 968335 - Add an API to determine if a given AutoCxPusher corresponds to the stack-top cx push. r=bz
This patch, and those following, are part of an epic quest to make this API
work properly despite the fact that we don't yet have GetEntryGlobal. See
the comment a few patches forward.
2014-02-14 22:36:43 -08:00
Mike Habicher
a28ebb99d1 Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus 2014-02-14 17:41:07 -05:00
Phil Ringnalda
d66d0a8ba2 Back out 4fc776ee6852:6a0ebe4ddd01 (bug 968335) and e7d697004921 (bug 923904) for b2g emulator build bustage
CLOSED TREE
2014-02-14 18:35:30 -08:00
Bobby Holley
11ba09a104 Bug 968335 - Tests. r=bz 2014-02-14 16:13:38 -08:00
Bobby Holley
6d16ee1449 Bug 968335 - Implement Cu.getWebIDLCallerPrincipal. r=bz 2014-02-14 16:13:38 -08:00
Bobby Holley
6f091ac9b4 Bug 968335 - Add an API to determine if a given AutoCxPusher corresponds to the stack-top cx push. r=bz
This patch, and those following, are part of an epic quest to make this API
work properly despite the fact that we don't yet have GetEntryGlobal. See
the comment a few patches forward.
2014-02-14 16:13:37 -08:00
Neil Rashbrook
581a903d05 Bug 966911 Part 4: Recreate the underlying nsAString when an an external string is passed back to C++ r=bholley 2014-02-14 19:44:55 +00:00
Michael Shuen
c489c0a6f2 Bug 934817 - Part 2: Remove 0-length check in XPCStringConvert::ReadableToJSVal and XPCConvert::NativeData2JS. r=bz 2014-02-14 11:15:42 -05:00
Bobby Holley
2fd8b7b977 Bug 956382 - Remove usage of explicit *IgnoringDomain variants. r=mrbkap 2014-02-13 18:57:36 -08:00
Bobby Holley
25cd8177a5 Bug 956382 - Consider document.domain when computing security wrappers. r=mrbkap 2014-02-13 18:57:35 -08:00
Bobby Holley
7a8e0ba5b9 Bug 956382 - Add AccessCheck::subsumesConsideringDomain and clean up other implementations. r=mrbkap
We now assert that we have a principal when we enter the wrap callback, and we
now have a convenient overload defined in nsIPrincipal.idl.
2014-02-13 18:57:34 -08:00
Bobby Holley
b73c1d8a7d Bug 972478 - Docshell scriptability should only affect non-immune principals. r=bz 2014-02-13 15:40:50 -08:00
Bobby Holley
ea5dbd35dc Bug 960828 - Diagnostics. r=mccr8 2014-02-13 11:54:59 -08:00
Bobby Holley
c5282f5045 Bug 965981 - Wrap ids in XPCWrappedNativeXrayTraits::enumerateNames. r=mccr8 2014-02-13 10:54:08 -08:00
Bobby Holley
1bb0b956eb Bug 965901 - Add an ENUMERATE policy action. r=gabor sr=mrbkap 2014-02-13 10:54:08 -08:00
Bobby Holley
cdd1b51376 Bug 965901 - Track and assert the policy action in AutoEnterPolicy/assertEnteredPolicy. r=gabor sr=mrbkap 2014-02-13 10:54:07 -08:00
Jon Coppeard
8136579d75 Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz 2014-02-13 15:33:04 +00:00
Jan de Mooij
811c597f28 Bug 931861 - Fix xpcshell to install breakpad signal handlers before AsmJS/Ion signal handlers. r=ted 2014-02-13 10:22:58 +01:00
Neil Rashbrook
df10f3f2af Bug 966911 Part 3: Passing undefined to an AString param should (like ACString) convert to null, not the empty string r=bholley 2014-02-13 00:26:28 +00:00
Neil Rashbrook
3d72becf33 Bug 966911 Part 2: An AString out param should use a short lived string instead of wastefully creating an nsAutoString on the heap r=bholley 2014-02-13 00:08:57 +00:00
Andrew McCreight
58c4c1b64c Bug 733636, part 2 - nsXPConnect::WrapNative should pass aAllowWrapping=true. r=bholley 2014-02-12 15:19:32 -08:00
Andrew McCreight
e42c89316b Bug 733636, part 1 - Change the nsContentUtils::WrapNative aAllowWrapping default to true. r=bholley 2014-02-12 15:19:32 -08:00
Neil Rashbrook
42055a8e06 Bug 966911 Part 1: Improve DOMString and AString conversion code paths r=bholley 2014-02-12 21:22:07 +00:00
Jon Coppeard
52381adba2 Bug 969812 - Convert JS_NewArrayObject to use HandleValueArray r=terrence r=bz 2014-02-12 10:50:46 +00:00
Andrew McCreight
25aced0427 Bug 967023, part 2 - Get rid of XPCWrappedJSClass::GetNewOrUsed out param. r=bholley 2014-02-11 14:56:46 -08:00
Andrew McCreight
1e54c3b0bc Bug 967023, part 1 - Rename clazz to clasp in XPCWrappedNative::GetNewOrUsed. r=bholley 2014-02-11 14:56:45 -08:00
Masatoshi Kimura
9306836991 Backed out changeset d7d447cac91b (bug 969762) for tp5 regression. 2014-02-12 06:01:29 +09:00
Jon Coppeard
60baf94ae8 Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug 2014-02-11 10:59:16 +00:00
Ehsan Akhgari
b870bb3fe9 Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Masatoshi Kimura
84b0ee5c63 Bug 969762 - Support non-ASCII dump() messages on Windows. r=jimm 2014-02-11 05:50:16 +09:00
Bobby Holley
32debe31bf Bug 965921 - Handle addons that expose JS-implemented XPCOM components to content. r=mrbkap 2014-02-10 10:27:24 -08:00
Bobby Holley
983a6bbd24 Bug 969156 - Don't fire onNewGlobalObject until the end of nsGlobalWindow::SetNewDocument. r=bz 2014-02-10 10:03:56 -08:00
Jon Coppeard
50cb1ea9e3 Bug 969798 - Convert JS_ConvertArguments APIs to take CallArgs rather than raw Value pointer r=terrence 2014-02-10 16:42:27 +00:00
Andrew McCreight
49737f8afc Bug 965920, part3b - Add mozilla namespace to StaticRefPtr on this CLOSED TREE. r=bustage 2014-02-04 20:09:26 -08:00
Andrew McCreight
c74c718a3c Bug 966766, part 4 - Smart pointerize clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:59 -08:00
Andrew McCreight
e71a246ee9 Bug 966766, part 3 - Rename clazz to clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
8f6860165e Bug 966766, part 2 - Move AddRef out of the ctor for XPCWrappedJSClass. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
44ed2b09c2 Bug 966766, part 1 - Remove null check in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
c84efa5515 Bug 966765 - Remove DumpHeap call in ReleaseXPConnectSingleton. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
125428116a Bug 965920, part 3 - Smart pointerize newVariant. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
bcb8940d58 Bug 965920, part 2 - Smart pointerize gSharedScriptableHelperForJSIID. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
54dd65eac8 Bug 965920, part 1 - Smart pointerize getters in XPConnect. r=bholley 2014-02-04 19:29:57 -08:00
Phil Ringnalda
e2ac58a84b Backed out 9 changesets (bug 965920, bug 966765, bug 966766)
CLOSED TREE

Backed out changeset 6c2bba06ed58 (bug 965920)
Backed out changeset e01c94498760 (bug 966766)
Backed out changeset e2585386f84e (bug 966766)
Backed out changeset d1db5d2a417f (bug 966766)
Backed out changeset f114c97660c6 (bug 966766)
Backed out changeset 2dd7d47a1e8c (bug 966765)
Backed out changeset 0f26c4b3eab7 (bug 965920)
Backed out changeset ca0b05e7155f (bug 965920)
Backed out changeset 55dcd2a5362e (bug 965920)
2014-02-04 21:01:19 -08:00
Andrew McCreight
8e4f22985b Bug 965920, part3b - Add mozilla namespace to StaticRefPtr on this CLOSED TREE. r=bustage 2014-02-04 20:09:26 -08:00
Andrew McCreight
dea57666c2 Bug 966766, part 4 - Smart pointerize clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:59 -08:00
Andrew McCreight
efabfc8b21 Bug 966766, part 3 - Rename clazz to clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
b05f7817b5 Bug 966766, part 2 - Move AddRef out of the ctor for XPCWrappedJSClass. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
fa0ef480d3 Bug 966766, part 1 - Remove null check in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
69f3ca8723 Bug 966765 - Remove DumpHeap call in ReleaseXPConnectSingleton. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
5c52f65c1f Bug 965920, part 3 - Smart pointerize newVariant. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
65a3d26078 Bug 965920, part 2 - Smart pointerize gSharedScriptableHelperForJSIID. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
fa05df2e35 Bug 965920, part 1 - Smart pointerize getters in XPConnect. r=bholley 2014-02-04 19:29:57 -08:00
Bobby Holley
9e65275dc6 Bug 959013 - Create storage for declarative class bootstrapping information on js::Class. r=luke 2014-02-04 07:51:54 -08:00
Jon Coppeard
50e1f34d5a Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Carsten "Tomcat" Book
2a6caad1f0 Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE 2014-01-31 12:11:23 +01:00
Jon Coppeard
20b4926e22 Bug 965904 - Fix some rooting hazards in the browser r=terrence 2014-01-31 09:56:40 +00:00
Jon Coppeard
858370c616 Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Chris Peterson
91f7b1bbc7 Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc 2014-01-29 20:40:34 -08:00
Eric Faust
750b2c708c Bug 924720 - Followup: Add better comments to window convert stub change.(r=bholley over IRC)
DONTBUILD because comment-only.
2014-01-30 12:36:37 -08:00
Andrew McCreight
2d4fb597e8 Bug 963192, part 4 - Smart pointerize nsXPConnect::mDefaultSecurityManager. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
bbdab5550f Bug 963192, part 3 - Smart pointerize XPCContext::mException. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
b470f2686e Bug 963192, part 2 - Smart pointerize IID2ThisTranslatorMap. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
acb5312bd5 Bug 963192, part 1 - Smart pointerize XPCWrappedJSClass::mInfo. r=bholley 2014-01-30 11:20:41 -08:00
Bobby Holley
5c45296ed8 Bug 872273 - Remove non-cx variant of ErrorFromException, and make it take a HandleObject. r=Waldo
We're going to need to start doing more work in js_ErrorFromException, which
will require a |cx| and may GC.
2014-01-30 09:30:29 -08:00
Bobby Holley
2b75bbbe71 Bug 959012 - Clean up and separate the semantics of js_{Get,Find}Class{Prototype,Object}. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
062a629dac Bug 959012 - Remove unused cx parameter from JS_IdentifyClassPrototype. r=jorendorff 2014-01-30 07:45:16 -08:00
Andrea Marchesini
7184ae68ee Bug 964293 - Implement Cu.cloneInto() method, r=bholley 2014-01-30 04:45:48 -08:00
Boris Zbarsky
e8d170691e Bug 965144. Make the Window-specific bits of XrayWrapper work with WebIDL windows. r=bholley 2014-01-29 22:34:25 -08:00
Boris Zbarsky
e5abd9db16 Bug 963895. Add threadsafe versions of AutoJSContext/AutoSafeJSContext. r=bholley 2014-01-29 22:33:03 -08:00
Eric Faust
d24a35e290 Bug 924720 - Part 5: Allow callers of NewProxyObject() to specify a Proxy JSClass. (r=jwalden) 2014-01-29 17:20:16 -08:00
Eric Faust
fdd24700fe Bug 924720 - Part 2: Make OuterWindowProxy use the proxy HasInstance and Convert stubs. (r=bholley) 2014-01-29 17:20:15 -08:00
Bobby Holley
a204c95cc9 Bug 965082 - Tests. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
731ce0363f Bug 965082 - Only run the {get,set}PrototypeOf override for non-SecurityWrappers. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
2a555922c2 Bug 965082 - Unify duplicate bits of state of proxies. r=mrbkap,r=gabor
Conceptually, these all boil down to "is this a security wrapper?"
2014-01-29 13:07:13 -08:00
Ed Morley
92aa154f50 Merge mozilla-central and inbound 2014-01-29 10:39:41 +00:00
Jon Coppeard
d77eb96fa7 Bug 959787 - Handlify some JS friend APIs r=sfink 2014-01-29 10:01:33 +00:00
Jon Coppeard
e5c29b7f9d Bug 959787 - Handlify some misc JS APIs r=sfink r=smaug 2014-01-29 10:00:40 +00:00
Henry Chang
c0e64a6d2c Bug 811635 - Part 2: Implementation of WebIDLs/IDLs for WifiP2pManager and WifiP2pStatusChangeEvent. r=vchang 2014-01-27 15:48:10 +08:00
Chris Peterson
6fcb2b7947 Bug 964016 - Part 4: Replace JS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE. r=luke 2014-01-24 20:14:56 -08:00