servo/components/script/dom/bindings
Anthony Ramine 60976406cc Implement [Unforgeable]
This is mostly stolen from Gecko. As there, we define the unforgeable members
on an object stored in the slots of the prototype object. They are then copied
onto instance objects when they are instantiated. It should be noted that
proxy objects see their unforgeable memebers defined on their expando object.

Unforgeable attributes aren't properly inherited in codegen (in a similar
fashion as getters and setters as filed in #5875) and require to be redefined
in derived interfaces. Fortunately, there are currently no such interfaces.

No unforgeable members can be included into the TestBinding interfaces for good
measure because they are not compatible with setters.

Given the unforgeable holder object has the same prototype as actual instances
of the interface, the finalize hook needs to check its slot pointer for nullity
before dropping it.

The new failing test isn't related to Unforgeable attributes, but to the fact
that all Document instances currently have a Location, even if their window
isn't in a browsing context.
2015-12-02 22:15:11 +01:00
..
codegen Implement [Unforgeable] 2015-12-02 22:15:11 +01:00
callback.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
cell.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
conversions.rs Remove an unused trait. 2015-11-20 11:39:03 +01:00
error.rs Use throw_type_error and throw_range_error from js. 2015-11-12 10:20:19 +01:00
global.rs Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdm 2015-11-19 04:39:20 +05:30
inheritance.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
js.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
mod.rs Introduce trait WeakReferenceable 2015-11-12 12:51:50 +01:00
num.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
proxyhandler.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
refcounted.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
reflector.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
str.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
structuredclone.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
trace.rs Auto merge of #8599 - jdm:e10s-redux, r=metajack 2015-11-20 03:59:48 +05:30
utils.rs Implement [Unforgeable] 2015-12-02 22:15:11 +01:00
weakref.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
xmlname.rs Update string_cache to 0.2. 2015-11-25 10:13:21 -06:00