servo/components/script
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
..
docs Move the DOM memory management blog post into the tree. 2015-10-29 17:25:00 +01:00
dom Implement [Unforgeable] 2015-12-02 22:15:11 +01:00
parse Add XMLDocument object 2015-11-27 14:55:41 +01:00
build.rs Fix build scripts warnings. 2015-03-18 21:53:48 +01:00
Cargo.toml Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12) 2015-11-27 00:15:29 -05:00
clipboard_provider.rs Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdm 2015-11-19 04:39:20 +05:30
cors.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
devtools.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
document_loader.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
layout_interface.rs compositing: Split Servo up into multiple sandboxed processes. 2015-11-19 16:38:04 -05:00
lib.rs Add check up on extern crate order and sort extern crates alphabetically 2015-11-28 03:11:08 +01:00
makefile.cargo Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
mem.rs more refactoring 2015-10-30 20:26:29 +09:00
network_listener.rs Make AsyncResponseListener methods take &mut self. 2015-10-15 16:44:39 -07:00
page.rs Auto merge of #8481 - frewsxcv:iterablepage-iter, r=Ms2ger 2015-11-12 18:29:12 +05:30
reporter.rs Defined new trait ParseErrorReporter and added error_reporter member to ParserContext 2015-11-25 18:28:30 -05:00
script_task.rs Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgraham 2015-11-30 03:42:54 +05:30
textinput.rs Added in-place mutation to DOMString. 2015-11-12 17:53:01 -06:00
timers.rs Correct undisciplined rebase. (Closes #8583.) 2015-11-18 21:10:20 +01:00
unpremultiplytable.rs add un-premultiply table for GetImageData 2015-10-20 04:51:29 -04:00
webdriver_handlers.rs Removed duplicate webdriver_traits file and added webdriver handler for GetWindowSize, IsSelected and IsEnabled 2015-11-29 15:48:23 -05:00