Commit Graph

30 Commits

Author SHA1 Message Date
Jack Moffitt
138a0480fe Implement matchMedia and MediaQueryList
Fixes #13376.
2016-11-02 13:40:22 -06:00
Ms2ger
ae38c53de7 Dispatch error events at the window object. 2016-09-02 11:44:44 +02:00
Anthony Ramine
dccf771e25 Implement [Replaceable] (fixes #13033) 2016-08-26 10:37:59 +02:00
Anthony Ramine
6da56f7e67 Define interface members on the global object directly (fixes #4593) 2016-08-25 14:29:16 +02:00
Jansen Jan
fda011923e Support WindowProxy return values in bindings
unscopable
2016-06-09 23:42:27 +02:00
Kosov Eugene
3bb093cc16 Make Document::DefaultView return a null value when there's no browsing context 2016-06-08 23:10:20 +03:00
Emilio Cobos Álvarez
e50d4b7624 codegen: Throw on an invalid enum value when appropiate 2016-05-13 11:44:38 +02:00
Ms2ger
a91433f0c8 Update web-platform-tests to revision 66c4613f823c4384c78ada77346eda17bb128947 2016-03-15 16:34:24 +01:00
Ms2ger
62a9bebeef Update web-platform-tests to revision 7ed49cff4d031720f829c01df837ed7a09ad5c60 2016-02-24 11:04:43 +01:00
bors-servo
20df7fb7c8 Auto merge of #7988 - nox:unforgeable, r=jdm
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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7988)
<!-- Reviewable:end -->
2015-12-03 11:03:05 +05:30
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
Josh Matthews
c23cbd4163 Dispatch load events for cross origin iframes. Resolves #6672. 2015-11-30 17:37:16 -05:00
James Graham
cdf0895665 Update web-platform-tests expected data to revision 7da6acfd668e66adae5ab4e2d389810d3b1460be 2015-10-06 12:16:41 +01:00
Ms2ger
538f8f0ef9 Update web-platform-tests to revision cf8340b5fae7b820788ffc31f8cc6b6b04978002 2015-09-02 11:52:24 +02:00
farodin91
f0987380dd Implement viewport functions for window #1718 2015-09-02 00:40:52 +02:00
Michael Wu
675267b782 Upgrade to SM 39 2015-06-19 18:42:48 -04:00
James Graham
291ac06c01 Update web-platform-tests expected data to revision 2a9fd810bb18610b422dbc3998ab74aa1bffae95 2015-04-24 18:31:05 +01:00
Ms2ger
2d49203b9c Update web-platform-tests to revision 000905d008db2538360020335bc2dbba16d322b5. 2015-04-16 18:58:53 +02:00
Adenilson Cavalcanti
4e9bb15ba7 Instead of panicking on broken url, break from the loop and return. 2015-04-01 15:30:33 +02:00
Ms2ger
a8553c3606 Update web-platform-tests. 2015-03-17 22:02:43 +01:00
Ms2ger
92a7fee296 Update web-platform-tests. 2015-02-16 19:57:47 +01:00
Glenn Watson
980b1efb72 Dispatch a load event at iframes. Fixes #4350. 2015-02-11 09:07:05 +10:00
Ms2ger
727f5c5797 Update web-platform-tests. 2015-01-28 23:29:16 +01:00
Ms2ger
29e250d4ac Update web-platform-tests and wptrunner. 2015-01-14 15:20:41 +01:00
Tom Schuster
d54a45a2b1 Implement most of the important WindowProxy traps 2015-01-12 17:41:48 +01:00
Ms2ger
8eeca573f7 Disable indexed-browsing-contexts-01.html for flakiness. 2014-10-29 21:43:44 +01:00
Ms2ger
da50824655 Update wptrunner to pick up crash-detection fixes. 2014-10-17 13:37:23 +02:00
Ms2ger
e3496be9dd Update web-platform-tests. 2014-09-22 12:13:52 +02:00
Sean McArthur
523445c865 create about_loader, handle about:blank 2014-09-11 08:55:54 -07:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00