Commit graph

49 commits

Author SHA1 Message Date
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
Pyfisch
9e92eb205a Reorder imports 2018-11-06 22:35:07 +01:00
Simon Sapin
45f7199eee cargo fix --edition 2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9 Format script component 2018-09-19 17:40:47 -04:00
Alan Jeffrey
74c1e00d81 Upgraded to SM 60 2018-08-20 18:22:29 -04:00
Marcin Mielniczuk
356c57e628 Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00
Simon Sapin
4d459bce32 Fix tyvar_behind_raw_pointer warnings
https://github.com/rust-lang/rust/issues/46906
2018-01-10 20:54:35 +01:00
Bastien Orivel
516857a15d Remove a workaround for https://github.com/rust-lang/rfcs/issues/718 2017-11-01 13:03:35 +01:00
Ms2ger
b57abc19da Make {get,ensure}_expando_object unsafe.
They trust the caller-provided raw pointers to be valid.
2017-02-07 11:44:38 +01:00
Ms2ger
bd431039b9 Properly root expando objects. 2017-02-07 11:35:55 +01:00
Ms2ger
558afe1786 Update js. 2016-11-02 13:25:49 +01:00
Ms2ger
6928fbfa31 Pass a MutableHandle to fill_property_descriptor. 2016-09-27 10:29:47 +02:00
UK992
93a103ba73 Reorder use statements 2016-09-09 04:55:19 +02:00
Josh Matthews
4961a513d4 Check for shadowing properties on DOM proxies. Fixes #12357. 2016-08-25 00:11:39 -04:00
Josh Matthews
2ad293ca64 Pass real values to the proxy handler setup. 2016-08-25 00:11:38 -04:00
Ms2ger
89efccc426 Update SpiderMonkey to m-c bcf4ff0c3eef.
This currently breaks Servo on Android, because there are a number of
interdependent changes that cannot easily land serially in a way that
keeps it working throughout. We expect to fix this in the near future.
2016-07-28 13:05:56 +02:00
Eduard Burtescu
0db1faf876 Switch to using the new rooted!/RootedGuard API for rooting. 2016-07-04 20:59:01 +03:00
Anthony Ramine
eb94f1a918 Update SpiderMonkey 2016-05-03 18:36:11 +02:00
Ms2ger
6f679c124c Update to Rust 2016-03-18. 2016-03-20 10:05:45 +01:00
Anthony Ramine
b783d96749 Make fill_property_descriptor take a flags argument 2016-02-23 17:14:27 +01:00
Ms2ger
0c61be7a57 Rustfmt some of script. 2015-11-18 11:14:05 +01:00
Michael Wu
e733a7c46a Support the updated spidermonkey bindings 2015-10-14 15:30:52 -04:00
Ravi Shankar
889eec364b sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401 Fix reported test-tidy errors for unmerged import blocks
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Manish Goregaokar
e94df1ed5c Remove needless returns 2015-09-04 09:13:48 +05:30
Corey Farwell
b11be4d253 Initial implementation of ownPropertyKeys proxy handler
Generates `SupportedPropertyNames` on DOM structs that should implement
it. Most of them are unimplemented now (which can be implemented in
later PRs), with the exception of `HTMLCollection`. Also added a couple
relevant WPT tests.

Closes #6390

Closes #2215
2015-08-20 11:58:42 -04:00
Johann Tuffe
ec07178b6f sort all uses 2015-08-20 20:47:12 +08:00
Adrián Arroyo Calle
68f6fdd8bc Removed unused object_to_string method 2015-08-09 11:26:15 +02:00
Michael Wu
b7301ca06c Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
Michael Wu
675267b782 Upgrade to SM 39 2015-06-19 18:42:48 -04:00
Ms2ger
009cc87b6a Rename getOwnPropertyNames_ and enumerate_ to get_own_property_names and enumerate. 2015-01-29 17:28:07 +01:00
Ms2ger
bcd9ca6081 Rename FillPropertyDescriptor to fill_property_descriptor. 2015-01-29 17:28:07 +01:00
Ms2ger
2592045ed4 Rename EnsureExpandoObject to ensure_expando_object. 2015-01-29 17:28:07 +01:00
Ms2ger
0b9549746b Rename GetExpandoObject to get_expando_object. 2015-01-29 17:28:07 +01:00
Ms2ger
f84cbd4025 Rename _obj_toString to object_to_string. 2015-01-29 17:28:06 +01:00
Ms2ger
6920aa970d Rename delete_ to delete. 2015-01-29 17:28:06 +01:00
Ms2ger
d7de6973c7 Rename defineProperty_ to define_property. 2015-01-29 17:28:06 +01:00
Ms2ger
4b0c4e5ba2 Rename getPropertyDescriptor to get_property_descriptor. 2015-01-29 17:28:05 +01:00
Ms2ger
1cf7441c61 Document proxyhandler.rs. 2015-01-25 21:42:10 +01:00
Ms2ger
46e4ac280f Panic if JS_NewObjectWithGivenProto fails. 2015-01-25 21:42:07 +01:00
Ms2ger
5f5381e4c1 Don't create an expando holder to delete an expando.
If there is no expando object, there will be no expando to delete.
2015-01-25 21:42:07 +01:00
Ms2ger
43eecf6e7a Stop using ptr.is_not_null() in script.
This method is deprecated in rust master; removing its users in advance will
make a future rust upgrade smoother.
2015-01-01 22:19:34 +01:00
Ms2ger
919f2217f0 Implement dummy getOwnPropertyNames and enumerate traps. 2014-12-24 17:17:40 +01:00
Ms2ger
8b3d64f8e3 Reindent _obj_toString. 2014-12-20 16:44:24 +01:00
Ms2ger
ef3901fceb Simplify _obj_toString by using JS_NewStringCopyN. 2014-12-20 16:40:20 +01:00
Ms2ger
96180ec3ad Move unwrap_jsmanaged and related machinery to conversions.rs. 2014-12-20 14:51:14 +01:00
Bruno de Oliveira Abinader
b50cfa56a9 Couple more fixes to handle 'setter' properties in WebIDL 2014-11-06 11:31:58 -08:00
Keegan McAllister
a640a7c5c3 Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000) 2014-09-20 13:00:06 -07:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00
Renamed from src/components/script/dom/bindings/proxyhandler.rs (Browse further)