Trevor Saunders
dd19f59774
bug 1021171 - don't return nulllptr in functions returning bool r=bz,waldo
2014-06-06 15:31:30 -04:00
Bobby Holley
9db935d49b
Bug 987111 - Flip on Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
42f7024f5e
Bug 987111 - Implement delete_ for Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
cad5e8f936
Bug 987111 - Implement defineProperty for Object Xrays. r=gabor
2014-06-05 22:32:39 -07:00
Bobby Holley
88e63325ae
Bug 987111 - Implement resolveOwnProperty and enumerateNames for Object instances. r=gabor
2014-06-05 22:32:38 -07:00
Bobby Holley
a2ee510ecb
Bug 987111 - Make JSProto_Object COWs take precedence over Xrays. r=gabor
2014-06-05 22:32:38 -07:00
Bobby Holley
bbc449149e
Bug 987111 - Handle the Object.prototype case in Xray getPrototypeOf. r=gabor
2014-06-05 22:32:38 -07:00
Bobby Holley
6bb5e95a97
Bug 987111 - Fill out existing_desc with all properties, not just |own| ones. r=gabor
...
This gives us strictly more information than we had before, which turns out to
be useful. We can still get the old behavior by testing the identity of
desc.object(), which I've done in one of the two existing uses for existing_desc.
The other (in DOMXrayTraits::defineProperty) is actually more correct with the
full (non-own) lookup.
2014-06-05 22:32:38 -07:00
Vivien Nicolas
bc803a18da
Bug 1015887 - Expose realFrameElement to Chrome JS. r=bholley
2014-06-04 20:11:05 +02:00
Wes Kocher
915f3c652a
Backed out 13 changesets (bug 987111) for disagreeing with some patch from b-i or fx-team in tonight's merge to hopefully fix a CLOSED TREE
...
Backed out changeset d4e390ceac27 (bug 987111)
Backed out changeset 5f88b5ef9496 (bug 987111)
Backed out changeset cdfd24ddf448 (bug 987111)
Backed out changeset 7883150e5471 (bug 987111)
Backed out changeset 407c7ca82ada (bug 987111)
Backed out changeset e7140ccf7e09 (bug 987111)
Backed out changeset 0a4d18d6306f (bug 987111)
Backed out changeset e7b7548867d9 (bug 987111)
Backed out changeset 944d128f135a (bug 987111)
Backed out changeset 33860f30fc4f (bug 987111)
Backed out changeset 518a915fb81b (bug 987111)
Backed out changeset 7576a51cf72e (bug 987111)
Backed out changeset 1a8dc1af9de6 (bug 987111)
2014-06-04 22:12:50 -07:00
Bobby Holley
c6742de97a
Bug 987111 - Flip on Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
a9aed971d9
Bug 987111 - Implement delete_ for Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
98b02626d5
Bug 987111 - Implement defineProperty for Object Xrays. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
6e9bc694e8
Bug 987111 - Implement resolveOwnProperty and enumerateNames for Object instances. r=gabor
2014-06-04 15:12:27 -07:00
Bobby Holley
5fce5dd4ab
Bug 987111 - Make JSProto_Object COWs take precedence over Xrays. r=gabor
2014-06-04 15:12:26 -07:00
Bobby Holley
6c6c52d3ec
Bug 987111 - Handle the Object.prototype case in Xray getPrototypeOf. r=gabor
2014-06-04 15:12:26 -07:00
Bobby Holley
ce6b82c251
Bug 987111 - Fill out existing_desc with all properties, not just |own| ones. r=gabor
...
This gives us strictly more information than we had before, which turns out to
be useful. We can still get the old behavior by testing the identity of
desc.object(), which I've done in one of the two existing uses for existing_desc.
The other (in DOMXrayTraits::defineProperty) is actually more correct with the
full (non-own) lookup.
2014-06-04 15:12:26 -07:00
Ryan VanderMeulen
3d3ce28f0f
Backed out 5 changesets (bug 1015871, bug 1020257, bug 1015887, bug 1005888, bug 1015894) for desktop B2G mochitest failures on a CLOSED TREE.
...
Backed out changeset dbcb9974b640 (bug 1020257)
Backed out changeset 3220b7b2efc9 (bug 1015894)
Backed out changeset 4e23647ae247 (bug 1015887)
Backed out changeset 59df0cdacc15 (bug 1015871)
Backed out changeset e7124b07804b (bug 1005888)
2014-06-04 16:07:06 -04:00
Vivien Nicolas
34a46b6121
Bug 1015887 - Expose realFrameElement to Chrome JS. r=bholley
2014-06-04 20:11:05 +02:00
Bill McCloskey
9157c8fd4d
Bug 1017310 - Rename *XBLScope to *ContentXBLScope in xpconnect (r=bholley)
2014-06-02 18:04:21 -07:00
Bobby Holley
13813ca2bf
Bug 972987 - Implement Xrays to self-hosted methods and properties. r=till,gabor
2014-06-02 13:55:20 -07:00
Bobby Holley
09f9f51b84
Bug 992958 - Add support for prototype JSPropertySpecs on ClassSpec. r=luke
2014-05-23 16:53:03 -07:00
Julien Levesy
38b0b1f449
Bug 1006692 - Replaced nsScriptSecurityManager::SubjectIsPrivileged and AccessCheck::IsCallerChrome by nsContentUtils::IsCallerChrome. r=bholley
2014-05-19 13:39:00 +02:00
Bobby Holley
2513cf740a
Bug 1001198 - Explicitly fire up the SSM from nsXPConnect. r=gabor
2014-05-06 23:17:43 -07:00
Bobby Holley
8ba3be8772
Bug 997987 - Cache the system principal on nsContentUtils and remove nsIScriptSecurityManager::SubjectPrincipalIsSystem. r=Ms2ger,sr=bz
2014-05-06 15:43:03 -07:00
Jon Coppeard
1216544376
Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley
2014-04-30 10:10:33 +01:00
Michael Shuen
e76fd87034
Bug 972385 - Make JS::AutoValueVector subscript operator return handles. r=jonco, smaug
2014-04-28 16:53:00 +02:00
Birunthan Mohanathas
c48b86b0c6
Bug 866289 - Make mode lines consistent in js/xpconnect/ for 4 space indented files. r=Ms2ger
2014-04-03 07:58:00 -04:00
Jason Orendorff
4740c9dea6
Bug 547140, part 4 - Remove flags argument from resolve hooks. r=Waldo.
2014-04-25 16:11:02 -05:00
Jason Orendorff
6e21c723d2
Bug 547140, part 2 - Remove flags argument from JS_GetPropertyDescriptor and friends. r=Waldo.
2014-04-25 16:11:01 -05:00
Jason Orendorff
e51a8c4a20
Bug 547140, part 1 - Remove JSRESOLVE_ASSIGNING. r=Waldo.
2014-04-25 16:11:00 -05:00
Jason Orendorff
f66a185e68
Bug 987007, part 2 - Handle assignment to named and indexed setters without using JSRESOLVE_ASSIGNING. r=bz, r=bholley.
...
--HG--
extra : rebase_source : a26eb85a086a18219a4d423cd7ad49a92cfd2584
2014-04-25 15:07:18 -05:00
Peter Van der Beken
4b64c1bee2
Bug 993057 - Fix Xrays to disallow indexed expando properties on Xrays for Window with a WebIDL binding. r=bholley.
...
--HG--
extra : rebase_source : a7762fc56b9ad1801be22aa3380f430b44082f9e
2014-02-15 22:12:35 +01:00
Bobby Holley
2ca3777187
Bug 958326 - Remove same-compartment security wrapper machinery. r=mrbkap
2014-03-26 10:59:20 -03:00
Bobby Holley
4146c05d55
Bug 975042 - Enable JS Xray for the Date object. r=peterv
2014-03-23 11:02:14 -03:00
Bobby Holley
56aac00a06
Bug 975042 - Implement resolveOwnProperty and enumerateNames trap. r=peterv
2014-03-23 11:02:13 -03:00
Bobby Holley
a9d3924c56
Bug 975042 - Make enumerateNames trap virtual. r=peterv
2014-03-23 11:02:13 -03:00
Bobby Holley
8eb80b2fd1
Bug 975042 - Implement getPrototypeOf. r=peterv
2014-03-23 11:02:13 -03:00
Bobby Holley
f08d932ce0
Bug 975042 - Implement createHolder. r=peterv
2014-03-23 11:02:13 -03:00
Bobby Holley
60e8547108
Bug 975042 - Implement the easy trait hooks. r=peterv
2014-03-23 11:02:13 -03:00
Bobby Holley
9c97f0b173
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-23 11:02:12 -03:00
Bobby Holley
c34dd9877d
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-23 11:02:12 -03:00
Carsten "Tomcat" Book
9099b263ed
Backed out changeset f787c0fa465e (bug 975042) for B2G ICS Emulator M7 Orange on a CLOSED TREE
2014-03-21 08:48:40 +01:00
Carsten "Tomcat" Book
0bc70db9d7
Backed out changeset 351371062c26 (bug 975042)
2014-03-21 08:47:48 +01:00
Carsten "Tomcat" Book
f816ce48b9
Backed out changeset 449ade4078c0 (bug 975042)
2014-03-21 08:47:47 +01:00
Carsten "Tomcat" Book
ac8230799d
Backed out changeset 59a38e0e27bb (bug 975042)
2014-03-21 08:47:45 +01:00
Carsten "Tomcat" Book
2c95000099
Backed out changeset 8ac7fa583164 (bug 975042)
2014-03-21 08:47:44 +01:00
Carsten "Tomcat" Book
5f92d5b6fa
Backed out changeset 6c25a4bfd449 (bug 975042)
2014-03-21 08:47:43 +01:00
Carsten "Tomcat" Book
9f22e17a78
Backed out changeset f7d97dc26289 (bug 975042)
2014-03-21 08:47:42 +01:00
Carsten "Tomcat" Book
239b34fee5
Backed out changeset 1b62c8f1c211 (bug 975042)
2014-03-21 08:47:41 +01:00
Bobby Holley
1973d9aa6a
Bug 975042 - Enable JS Xray for the Date object. r=peterv
2014-03-20 23:47:24 -03:00
Bobby Holley
838db9bb08
Bug 975042 - Implement resolveOwnProperty and enumerateNames trap. r=peterv
2014-03-20 23:47:24 -03:00
Bobby Holley
5cc38c0e83
Bug 975042 - Make enumerateNames trap virtual. r=peterv
2014-03-20 23:47:24 -03:00
Bobby Holley
3364cb667b
Bug 975042 - Implement getPrototypeOf. r=peterv
2014-03-20 23:47:24 -03:00
Bobby Holley
a00932c5e2
Bug 975042 - Implement createHolder. r=peterv
2014-03-20 23:47:24 -03:00
Bobby Holley
9115f9b416
Bug 975042 - Implement the easy trait hooks. r=peterv
2014-03-20 23:47:23 -03:00
Bobby Holley
eb2c3f8bbb
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
6567ce6262
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
Bobby Holley
fbb9b62de8
Bug 825392 - Remove SOWs. r=bz
2014-03-19 13:35:45 -03:00
Bobby Holley
8dee0c93c9
Bug 976704 - Make opaque security wrappers non-callable. r=gabor,sr=mrbkap
2014-03-18 19:23:45 -03:00
Peter Van der Beken
ae397a6658
Bug 982112 - Make accesscheck code deal with WebIDL bindings. r=bz.
2013-11-05 09:47:59 +01:00
Jon Coppeard
bafb7ba32f
Bug 959787 - Handlify some friend and debug APIs r=sfink r=bholley
2014-03-17 16:17:58 +00:00
Bobby Holley
46624f507a
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
Bobby Holley
5ebbbb4ebd
Bug 976151 - Anti eval/Function() check during wrapping should use |subsumes|. r=gabor
2014-02-25 08:38:33 -08:00
Bobby Holley
30907ef9cb
Bug 975277 - Introduce a mechanism to identify instances of standard classes. r=luke
2014-02-21 16:03:11 -08:00
Bobby Holley
97f387fd67
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
3fb149d9d7
Bug 975277 - Clean up the XPCWN XrayHolder a bit. r=gabor
2014-02-21 15:55:31 -08:00
Peter Van der Beken
6f7b80e5b5
Bug 975277 - Pass the real receiver when using HasPrototype. r=bholley
2014-02-21 15:55:31 -08:00
Peter Van der Beken
08d239ffd1
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
4b70a01ff8
Bug 973780 - Hook Xrays up to the new expando map. r=bz
2014-02-21 11:35:48 -08:00
Luke Wagner
b1325de739
Bug 797126 - Remove tinyid/shortid/userid (r=terrence)
...
--HG--
extra : rebase_source : d3cee5e71ca02708e91419b209b5914ce9fd2f9f
2014-02-21 10:24:26 -06:00
Phil Ringnalda
01ad150169
Back out 0f5f58d5d410:8db4d719f5f8 (bug 973780) for debug WinXP mochitest-3 assertions
...
CLOSED TREE
2014-02-20 20:46:50 -08:00
Bobby Holley
21ff903ba9
Bug 973780 - Hook Xrays up to the new expando map. r=bz
2014-02-20 18:24:09 -08:00
Bobby Holley
1c600e7056
Bug 956382 - Remove usage of explicit *IgnoringDomain variants. r=mrbkap
2014-02-13 18:57:36 -08:00
Bobby Holley
2b33b064b7
Bug 956382 - Consider document.domain when computing security wrappers. r=mrbkap
2014-02-13 18:57:35 -08:00
Bobby Holley
e0f33e6e2e
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
74dced0ef3
Bug 965981 - Wrap ids in XPCWrappedNativeXrayTraits::enumerateNames. r=mccr8
2014-02-13 10:54:08 -08:00
Bobby Holley
26295823eb
Bug 965901 - Add an ENUMERATE policy action. r=gabor sr=mrbkap
2014-02-13 10:54:08 -08:00
Bobby Holley
cab18b5855
Bug 965901 - Track and assert the policy action in AutoEnterPolicy/assertEnteredPolicy. r=gabor sr=mrbkap
2014-02-13 10:54:07 -08:00
Bobby Holley
331a1f6c7b
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
8b2a3c8d5b
Bug 959012 - Remove unused cx parameter from JS_IdentifyClassPrototype. r=jorendorff
2014-01-30 07:45:16 -08:00
Boris Zbarsky
0ec24be88b
Bug 965144. Make the Window-specific bits of XrayWrapper work with WebIDL windows. r=bholley
2014-01-29 22:34:25 -08:00
Bobby Holley
4261137095
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
6a1e0258a1
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
Tom Schuster
18397aa440
Bug 958119 - Some cleanup for XPConnect. r=gabor
2014-01-22 18:50:32 +01:00
Bobby Holley
44cd3fcb36
Bug 958324 - Remove same-compartment security wrappers for WNs. r=peterv,r=mrbkap
...
We've fixed Components, and SOWs are new-binding only. Youpie!
2014-01-21 08:26:40 -08:00
Bobby Holley
18dab24d3d
Bug 794943 - Followup bustage fix. r=me CLOSED TREE
2014-01-16 16:11:25 -08:00
Bobby Holley
aca56744a1
Bug 794943 - Make window.controllers [ChromeOnly], and remove nsISecurityCheckedComponent from nsXULControllers. r=bz
2014-01-16 15:45:40 -08:00
Terrence Cole
6beccf2363
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
...
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Terrence Cole
aa7ab27af5
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 2; r=sfink
...
--HG--
extra : rebase_source : e36c89af9c362e781d9ca9aceee42779258328b5
2014-01-14 17:19:07 -08:00
Tom Schuster
f39e81815a
Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence
2014-01-09 18:39:36 +01:00
Boris Zbarsky
1b7f303480
Bug 959695 part 3. Make ReportIsNotFunction take a Handle. r=terrence
2014-01-14 21:46:44 -05:00
Bobby Holley
78a5768df9
Bug 951948 - Remove Components wrappers. r=mrbkap
...
We fix up the tests here to test the new behavior, and fix some bugs in the test
while we're at it.
2014-01-14 18:49:30 -08:00
Andrew McCreight
194d76d7e9
Bug 956455, part 3 - Remove the holder argument to nsXPConnect::WrapNativeToJSVal. r=gabor
2014-01-06 11:54:43 -08:00
Ms2ger
561cae4a0e
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
2013-12-31 10:06:11 +01:00
Wes Kocher
51be634cd2
Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE
2013-12-16 18:27:43 -08:00
Sean Stangl
59305924cb
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Eric Faust
46a65bdd10
Bug 926012 - Part 3: Convert wrappers to using dynamic prototype hooks. (r=bholley)
2013-12-13 12:01:30 -08:00
Boris Zbarsky
abefb320a5
Bug 946067 part 2. Generate Window's access checks in XPConnect based on WebIDL access annotations. r=bholley,peterv
2013-12-09 10:34:03 -05:00
Boris Zbarsky
5a1836271c
Bug 946289. Make GetNativeForGlobal work for WebIDL globals. r=peterv
2013-12-09 10:34:03 -05:00
Jacek Caban
c9efa74885
Bug 944444 - Fix js/ compilation on mingw. r=Waldo
2013-12-05 10:56:22 +01:00
Ehsan Akhgari
656e1c1b05
Bug 939608 - Part 2: Build xpconnect in unified mode; r=bholley
2013-11-20 11:35:34 -05:00
Bobby Holley
76193870ea
Bug 933681 - Resolve canonical eval() onto Xrayed globals. r=jorendorff
2013-11-22 10:55:43 -08:00
Bobby Holley
bdc983a462
Bug 933681 - Add lookups for standard classes in XrayWrapper. r=jorendorff
2013-11-22 10:55:42 -08:00
Ehsan Akhgari
b86497683d
Backed out changeset 5993d8ad664c (bug 939608) because bug 941450 was backed out
...
Landed on a CLOSED TREE
2013-11-22 11:22:49 -05:00
Jon Coppeard
d8c217e468
Bug 941767 - Fix rooting hazard in GetNativeForGlobal() r=bholley
2013-11-22 06:58:32 -08:00
Ehsan Akhgari
64bc15535e
Bug 939608 - Part 2: Build xpconnect in unified mode; r=bholley
...
--HG--
extra : rebase_source : d4baf7ddb95bb0217357b9eb9fabd2e08d37548a
2013-11-20 11:35:34 -05:00
Terrence Cole
6936f37dc7
Bug 940505 - Handlify GetXrayWaiver; r=bholley
...
--HG--
extra : rebase_source : 1812e79207fccdcf479b14637b67b2510d2f317b
2013-11-19 10:12:10 -08:00
Ehsan Akhgari
69ecdab690
Bug 939608 - Part 1: Code changes required to build xpconnect in unified mode; r=bholley
...
--HG--
extra : rebase_source : e691b361737fbb233a0b33ed7fc6aa97ae172223
2013-11-19 15:03:40 -05:00
Carsten "Tomcat" Book
30de6cc6d3
Backed out changeset 161bfee3f57a (bug 939608) PGO build issue
2013-11-19 14:13:15 +01:00
Mike Hommey
2812d11fce
Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
...
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
e06d795c71
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps
2013-11-19 11:48:10 +09:00
Mike Hommey
e80e877ab7
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Mike Hommey
ffe0380912
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps
2013-11-19 11:47:14 +09:00
Ehsan Akhgari
e91814a204
Bug 939608 - Build xpconnect in unified mode; r=bholley
2013-11-18 00:47:30 -05:00
Tom Schuster
127ebf3721
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Mike Hommey
b000a846c2
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Steve Fink
700a8bf156
Bug 925916 - Handlify various things in XPConnect, r=bholley
...
--HG--
extra : rebase_source : d6b2697f043d56e6c96e5addc7e6192d067a068c
2013-10-11 22:02:39 -07:00
Bobby Holley
2dcd8b769e
Bug 922009 - MOZ_CRASH when trying to transplant objects with SCSWs. r=mrbkap
2013-10-17 10:00:02 +02:00
Tom Schuster
1faae39271
Bug 8844105 - Handlify JS_WrapObject. r=terrence
2013-10-15 20:02:23 -04:00
Birunthan Mohanathas
0b51035eb5
Bug 784739 - Switch from NULL to nullptr in js/xpconnect/; r=ehsan
2013-10-10 16:35:53 -04:00
Bobby Holley
d75591e16f
Bug 921454 - Invert faulty assertion. r=jonco
...
This assertion is pretty clearly bogus, and only exists because, as it turns
out, we never had any test coverage for transplanting SCSW objects with
waivers. Even in the world when this stuff landed (bug 773962, which was well
before the removal of Location SCSWs in bug 808608 and the conversion of Nodes
to new bindings), we apparently never tested the waiver path. :-(
2013-10-04 13:29:36 +02:00
Bobby Holley
b5e276f1c5
Bug 921454 - Skip unwrap safety assertion for cross-compartment SOWs. r=mrbkap
...
Currently this stuff just asserts when you pass NAC across compartments. And
the logic for this stuff is complicated enough that we don't gain a whole
lot from duplicating it.
2013-10-04 13:29:35 +02:00
Bobby Holley
63ad77a18f
Backed out changeset 86128d3eac88 (bug 916939) for breaking the web. r=me
2013-09-20 10:32:32 -07:00
Bobby Holley
75ca6697e7
Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz
2013-09-18 08:39:48 -07:00
Bobby Holley
a1adca6383
Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz
2013-09-17 09:46:30 -07:00
Bobby Holley
b2dcf6a05b
Bug 856437 - Remove same-compartment permissive Xray machinery. r=gabor
2013-09-11 11:28:21 -07:00
Dan Gohman
a50084b38d
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Ehsan Akhgari
4bfc25a75e
Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
...
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c
--HG--
extra : rebase_source : 1dfcc228f43c68efbbc74f639570c227c26ef025
2013-09-09 23:14:10 +02:00
Kyle Huey
888aba875b
Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8
2013-09-08 20:28:48 -07:00
Nicholas Nethercote
8129026433
Bug 912411 (part 2) - Move JSID_{VOID,EMPTY}HANDLE from jsapi.{h,cpp} to Id.{h,cpp}. r=luke.
...
--HG--
extra : rebase_source : 5fb68bf5079e3261fdca6cb99717d3a502c878f3
2013-09-05 16:08:57 -07:00
Nicholas Nethercote
6ae716adf2
Bug 912411 (part 1) - Removed some jsapi.h includes in Gecko. r=bz.
...
--HG--
extra : rebase_source : c0b73945bcd6978a616fd846e33e69fae9162d78
2013-09-05 16:08:06 -07:00
Mike Hommey
f8bc7fa754
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Nicholas Nethercote
cbd87e0b81
Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 2250064bdd316ffeb8126da749bdf94ab9da4418
2013-09-01 21:51:02 -07:00
Nicholas Nethercote
7fbc04343e
Bug 910109 (part 2) - Make jswrapper.h not depend on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 138e93b074691e9da0feab9cd24e149f4d5edf6a
2013-08-28 17:24:34 -07:00
Ms2ger
f805d8d6eb
Merge m-c to inbound
2013-08-22 10:38:48 +02:00
Ms2ger
bdfaa84f5b
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
1c4d224f0e
Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg
2013-08-22 08:56:00 +02:00
Ms2ger
4807f1c86c
Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps
2013-08-22 08:55:59 +02:00
Nicholas Nethercote
2585de9a07
Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
...
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Ms2ger
32b4cafc67
Bug 903849 - Use MOZ_ASSERT consistently in XPConnect; r=bholley
2013-08-14 09:00:34 +02:00
Ms2ger
1a5ae526d9
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
2013-08-14 08:56:21 +02:00
Jon Coppeard
e133b9b2a9
Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug
2013-08-12 12:09:14 +01:00
Nicholas Nethercote
50ebc50e02
Bug 898263 (part 7) - Remove jsprvtd.h from EXPORTS. r=jorendorff.
...
--HG--
extra : rebase_source : eca8164f8652587796a8283932d8ba8ec76c0b5b
2013-07-25 22:52:59 -07:00
Terrence Cole
09de524f1a
Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley
2013-04-30 10:29:40 -07:00
Nicholas Nethercote
d8f824e34e
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
9624be5713
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Jon Coppeard
7e34a56fc6
Bug 900979 - Change JS_DeleteProperty APIs to use a boolean out param rather than a value r=waldo r=bz
2013-08-05 14:01:53 +01:00
Jon Coppeard
a9d33996dd
Bug 899973 - GC: Convert the rest of the JS property API to use MutableHandleValue for out params - browser changes r=bz
2013-08-02 13:15:39 +01:00
Tom Schuster
dc4bd05cb5
Bug 884410 - Handlify JS_GetPrototype. r=terrence
2013-07-31 12:20:33 -04:00
Bobby Holley
d129f0e5cd
Bug 898939 - Loosen assertion. r=bz
...
This is just an overzealous assertion, rather than a security issue.
2013-07-30 08:43:46 -07:00
Trevor Saunders
f33ade0d68
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
Jeff Walden
6f242a6502
Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel
...
--HG--
extra : rebase_source : fe7345322f87dd214aa5122ea8704750e8b2375a
2013-06-28 14:01:09 -07:00
Terrence Cole
9ecda8d7ad
Bug 878160 - GC: post barrier weak references in the browser - part 2 browser r=terrence r=billm
...
--HG--
extra : rebase_source : a1856a7dce28da5086f6fbeaeda15596193aa7ad
2013-06-05 16:40:02 -07:00
Ms2ger
12bdf91609
Bug 888579 - Remove some code that handled WN Nodes; r=bholley
2013-07-01 09:14:36 +02:00
Justin Lebar
3da6ed220e
Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo
...
I'd meant to do this, but I only got as far as the comment in mfbt. Oops!
--HG--
extra : rebase_source : 3cfe3ef1bf401eb7d9a10fcabcfb39008e9553a4
2013-06-28 19:20:12 -07:00
Justin Lebar
3e059c7221
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Ms2ger
616079d107
Bug 884951 - Use XPCWrappedNative::Get more; r=bholley
2013-06-23 09:15:55 +02:00
Ms2ger
b7bef21f7f
Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug
2013-06-23 09:15:42 +02:00
Jon Coppeard
37b7b92c4c
Bug 885310 - 2 Rename JSHandleFoo in js directory r=bholley
2013-06-21 14:12:46 +01:00
Brian O'Keefe
11bcc1cd9e
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Terrence Cole
ecf0e80935
Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
...
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Jon Coppeard
d61000e77b
Bug 884371 - Remove JSMutableHandleXXX from the js directory r=bholley
2013-06-19 11:32:27 +01:00
Peter Van der Beken
08d68069d5
Bug 851465 - Remove slim wrappers - remove slim wrapper macros and rename WN macros. r=bholley.
2013-04-19 21:58:30 +02:00
Peter Van der Beken
e246f74b5d
Bug 851465 - Remove slim wrappers - remove various slim wrapper code and checks. r=bholley.
2013-04-19 21:57:18 +02:00
Peter Van der Beken
a6f9979ef0
Bug 851465 - Remove slim wrappers - stop morphing slim wrappers. r=bholley.
2013-04-19 21:57:15 +02:00
Ms2ger
e0918cb8dc
Bug 881358 - Kill build warnings in XPConnect; r=bholley
2013-06-12 09:00:09 +02:00
Bobby Holley
e5c61adafd
Bug 877261 - Stop using XPCCallContext for most stuff in XPCWrappedNative.cpp. r=Ms2ger
...
Starting with the above, this is the smallest unit change that will compile.
2013-06-04 21:11:18 -07:00
Bobby Holley
9b232e7840
Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap
2013-06-04 10:30:11 -07:00
Ryan VanderMeulen
e6e2873354
Backed out 3 changesets (bug 877862, bug 878325) for mochitest-other orange on a CLOSED TREE.
...
Backed out changeset 803586f0a297 (bug 878325)
Backed out changeset d4a39e18e5a7 (bug 878325)
Backed out changeset 08a29f18500a (bug 877862)
2013-06-03 15:50:59 -04:00
Bobby Holley
2879c7a400
Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap
2013-06-03 11:27:41 -07:00
Trevor Saunders
744e454eb1
bug 873622 - remove some useless xpconnect getters r=bholley
2013-05-17 13:28:08 -04:00
Trevor Saunders
efd48bef1e
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
6452f0c3f0
Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz
2013-06-01 08:56:02 +02:00
Bobby Holley
72af799499
Bug 858101 - Run the DefaultValue algorithm directly on the wrapper for Xrays. r=mrbkap
2013-05-31 10:36:01 -07:00
Peter Van der Beken
3402cab97c
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
Mike Shal
5169c0a913
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
Bobby Holley
b433ae35b8
Bug 874318 - Don't allow CALL on XOWs. r=mrbkap
2013-05-22 22:27:16 -06:00
Bobby Holley
89be72dd4e
Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap
2013-05-22 22:27:15 -06:00
Bobby Holley
2fbd8f4d5c
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
a76f725f9c
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
0906eb3ba9
Bug 874083 - Ignore domain in PrepareForWrapping prototype remapping. r=gabor, billm
2013-05-21 07:53:35 -06:00
Bobby Holley
047d3c3c1e
Bug 872772 - Fix up lost Xray waivers when wrapping into the content compartment. r=gabor
2013-05-17 10:44:25 -07:00
Nathan Froyd
a2aebddd70
Bug 871595 - don't include WrapperFactory.h in AccessCheck.h; r=bholley
2013-05-13 12:04:23 -04:00
David Zbarsky
9c18b7ec0d
Remove some unused code due to bug 871189, r=bz over irc
2013-05-16 12:29:03 -07:00
David Zbarsky
680b9b7951
Bug 871189 - Remove Document classinfo r=bz
2013-05-16 11:06:21 -07:00
Ted Mielczarek
3cfd62c3d2
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
Bobby Holley
7c5384c4e9
Bug 866823 - Handle standard prototype remapping in PrepareForWrapping. r=gabor,mrbkap
2013-05-15 21:13:12 -07:00
Bobby Holley
a7596f01a7
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
cc5157a913
Bug 857356 - Remove XBL field auto-waiving. r=bz
2013-05-09 09:16:01 -07:00
Jon Coppeard
068a876f84
Bug 869526 - GC: Fix more rooting hazards in xpconnect r=bholley
2013-05-09 10:39:21 +01:00
Bobby Holley
75723ecffd
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
b47f593e23
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
9b428f8e67
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
Phil Ringnalda
1a57cd403b
Merge m-c to m-i
2013-05-05 12:17:07 -07:00
Ms2ger
bb6fd0a4ee
Bug 868727 - Pass an nsAString to nsGlobalWindow::GetChildWindow; r=bz
2013-05-05 09:03:19 +02:00
Ms2ger
4a6390f03d
Bug 868411 - Handlify js::GetObjectProto; r=bz
2013-05-05 09:03:14 +02:00
Boris Zbarsky
7640b170ac
Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug
2013-05-03 19:29:08 -04:00
Tom Schuster
79e64357e4
Bug 865410 - Use CallArgs for XPConnect Call and Construct hooks. r=bholley.
2013-05-04 19:25:15 +02:00
Jon Coppeard
c1714595b9
Bug 866762 - GC: A few more XPConnect rooting hazards r=bholley
2013-04-30 15:27:48 +01:00