Josh Matthews
f16c05423c
Add more specification step comments and update to the latest specification.
2016-05-03 18:05:28 -04:00
Josh Matthews
99f6fb34fc
Tidy fixes.
2016-05-03 18:05:27 -04:00
Josh Matthews
f78d88acbe
Implement partial spec-recommended preload=none support.
2016-05-03 18:05:26 -04:00
Josh Matthews
ef10393ba6
Execute the failure steps for an empty src attribute.
2016-05-03 18:05:25 -04:00
Josh Matthews
a80320e24e
Add event handlers for media-related events.
2016-05-03 18:05:22 -04:00
Josh Matthews
d718da1c6a
Pause media elements when they're removed from the document.
2016-05-03 18:05:21 -04:00
Josh Matthews
e3db11fd8b
Implement play, pause, paused, and autoplay APIs.
2016-05-03 18:05:20 -04:00
Josh Matthews
5960fbe604
Implement load, canPlayType, and error APIs for media elements.
2016-05-03 18:05:18 -04:00
Josh Matthews
eae27adc4a
Implement basic media resource selection and fetching.
2016-05-03 16:25:24 -04:00
Josh Matthews
53f9307fb7
Add stubs for src and currentSrc for HTMLMediaElement.
2016-05-03 16:25:21 -04:00
Josh Matthews
b8b4be34c0
Stub out readyState and networkState attributes for HTMLMediaElement.
2016-04-28 17:35:29 -04:00
Patrick Walton
7bd257089c
script: Make iframes know their pipeline IDs at all times, even after
...
navigation.
Since WebRender uses the pipeline ID stored in the iframe element to
determine which pipeline to display, it had better be kept up to date!
Closes #9919 .
2016-04-28 10:53:13 -07:00
Keith Yeung
33acb1937c
Remove extraneous script_chan parameter from Trusted::new
2016-04-28 10:52:44 +02:00
bors-servo
311dd0f930
Auto merge of #10816 - SunyDays:errorevent_argument, r=frewsxcv
...
Implement the errorevent argument to Document::createEvent
new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs
close #10738
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10816 )
<!-- Reviewable:end -->
2016-04-27 10:52:41 -07:00
SunyDays
7d24426172
Implement the errorevent argument to Document::createEvent
2016-04-27 20:49:25 +03:00
bors-servo
daa1a2a0a8
Auto merge of #10647 - ConnorGBrewster:parse_xml, r=jdm
...
Finish hooking up XML parser
This is a work in progress PR for #10581 . I just want to make sure I am headed in the right direction.
cc @jdm
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10647 )
<!-- Reviewable:end -->
2016-04-27 07:50:54 -07:00
Connor Brewster
3389c497c0
Finish hooking up XML parser
...
added script integration with xml5ever
Updated test expectations
Removed timeout test expectation
Refactors
application/xhtml+xml is treated as HTML
Updated xml5ever
Updated Text Expectations
2016-04-27 08:44:13 -06:00
bors-servo
5fd93de7be
Auto merge of #10866 - broesamle:issue10856-a, r=Ms2ger
...
Move abstract parser infrastructure from servohtmlparser.rs to parse
Fixes #10856
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10866 )
<!-- Reviewable:end -->
2016-04-27 03:29:50 -07:00
Martin Broesamle
7c4489b193
Move abstract parser infrastructure from servohtmlparser.rs to parse
2016-04-27 10:32:59 +02:00
bors-servo
21c1773115
Auto merge of #10838 - bd339:iss9551, r=KiChjang
...
Implement step 3 according to spec
Goes towards fixing #9551
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10838 )
<!-- Reviewable:end -->
2016-04-27 00:16:08 -07:00
bd339
ac88c5e16b
Implement step 3 according to spec
2016-04-27 07:45:38 +02:00
SunyDays
e4f3a31caf
Implement the focusevent argument to Document::createEvent
2016-04-27 01:51:48 +03:00
bors-servo
ccba2d6841
Auto merge of #10608 - KiChjang:parse-double, r=nox
...
Add parsing of double values in style attributes
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10608 )
<!-- Reviewable:end -->
2016-04-26 11:59:25 -07:00
Ramana Venkata
f56bd3a6f3
Allow setting withCredentials in synchronous XMLHttpRequest
...
closes #10839
2016-04-26 17:08:39 +05:30
Stephen (Ziyun) Li
889579c6de
Implement the "progressevent" argument to Document::createEvent
2016-04-26 00:32:50 -04:00
bors-servo
34900814fc
Auto merge of #10696 - rebstar6:referrerPolicy, r=jdm
...
Referer header
PR1 for https://github.com/servo/servo/issues/10311
This puts the code and data structures in place to set the Referer header based on the Referrer Policy for a given document. Note that document:: get_referrer_policy() always returns the 'No Referrer' option, so for now, this should have no impact on production code, and that policy requires that the Referer header is not added.
Later PRs will determine the policy and edit that get_referrer_policy() accordingly.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10696 )
<!-- Reviewable:end -->
2016-04-25 13:52:01 -07:00
Rebecca
526525b835
Add referrer policy pass-through and referrer header logic
...
add pass-through from doc to http-loader for referrer_policy, ref_URL
add logic for setting referer header
add script pass-through for referrer
add unit tests for setting referer header
2016-04-25 16:41:06 -04:00
Bridget McErlean
d15495aade
Modify Worker constructor to use the document's base URL.
2016-04-25 09:24:16 -07:00
bors-servo
8bf732e633
Auto merge of #10831 - mskrzypkows:storageevent, r=Ms2ger
...
"storageevent" argument for Document::createEvent
Fixes #10736
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10831 )
<!-- Reviewable:end -->
2016-04-25 03:44:24 -07:00
Maciej Skrzypkowski
6187ee631b
"storageevent" argument for Document::createEvent
...
Fixes #10736
2016-04-25 12:02:05 +02:00
bors-servo
a92a6360cf
Auto merge of #10819 - nox:call-without-new, r=Ms2ger
...
Refactor the `call` hook on non-callback interface objects (fixes #10744 )
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10819 )
<!-- Reviewable:end -->
2016-04-25 02:45:29 -07:00
Anthony Ramine
4c2ca7a8c9
Refactor the call
hook on non-callback interface objects ( fixes #10744 )
...
It's now set through the intermediate InterfaceConstructorBehavior structure,
which lets us improve the abstraction around NonCallbackInterfaceObjectClass
a bit better.
When the interface's constructor is supposed to always throw, the error for
calling `Foo()` without new is "Illegal constructor.". when the interface
actually defines an interface, the error is instead
"This constructor needs to be called with `new`.".
2016-04-25 11:44:59 +02:00
Anthony Ramine
a45f117838
Make NonCallbackInterfaceObjectClass::new unsafe
2016-04-25 10:51:07 +02:00
bors-servo
59205323da
Auto merge of #10805 - tylersouthwick:webglcontextevent, r=Ms2ger
...
implement webglcontextevent
fixes #10742
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10805 )
<!-- Reviewable:end -->
2016-04-25 01:50:52 -07:00
bors-servo
4f05ea73fe
Auto merge of #10761 - amarant:Node-isSameNode, r=Ms2ger
...
Implements Node::isSameNode
Fixes #10746
I adapted the tests from dom/nodes/Node-isEqualNode.html
should I also add ones for xhtml too like here : dom/nodes/Node-isEqualNode-xhtml.xhtml ?
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10761 )
<!-- Reviewable:end -->
2016-04-25 01:04:47 -07:00
bors-servo
20dd8ba7ec
Auto merge of #10817 - danlrobertson:flex-basis, r=mbrubeck
...
Add style property for flex-basis
Add the style property for flex-basis. The property should allow all
values acceptable for `width` or `height` with the addition of `content`.
I also disabled the tests that I expect to pass. I am confused by [flexbox_computedstyle-flex-basis-0percent:20](https://github.com/servo/servo/blob/master/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-basis-0percent.htm#L20 ). Should that be `0%` instead of `0px`?
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10817 )
<!-- Reviewable:end -->
2016-04-24 23:34:37 -07:00
bors-servo
4b8f1260b9
Auto merge of #10814 - SunyDays:svgevents_argument, r=Ms2ger
...
Implement the svgevents argument to Document::createEvent
close #10741
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10814 )
<!-- Reviewable:end -->
2016-04-24 22:49:26 -07:00
Keith Yeung
48b2e9c055
Add parsing of double values in style attributes
2016-04-25 01:09:30 -04:00
Daniel Robertson
2d9d31ee04
Add style property for flex-basis
...
Add the style property for flex-basis. The property should allow all
values acceptable for `width`|`height` with the addition of `content`.
2016-04-24 14:04:40 -04:00
SunyDays
bb19e7d3ac
Implement the svgevents argument to Document::createEvent
2016-04-24 20:51:06 +03:00
Keith Yeung
2946fbef77
Implement stencil fns for WebGLRenderingContext
2016-04-24 02:40:22 -04:00
Arnaud Marant
ed42cc72a4
Implements Node::isSameNode
...
Fixes #10746
Adapted the tests from dom/nodes/Node-isEqualNode.html
2016-04-23 22:03:25 +02:00
Simon Sapin
eee317352c
Reset searchParam in URL.href setter
...
https://github.com/whatwg/url/issues/117
2016-04-23 20:28:00 +02:00
Simon Sapin
85de5ec743
Correctly initialize URL.searchParams
2016-04-23 20:27:59 +02:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
bors-servo
1b13ddcd8a
Auto merge of #10795 - yoava333:master, r=Ms2ger
...
updated Blob constructor to use optional
fixes https://github.com/servo/servo/issues/10779
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10795 )
<!-- Reviewable:end -->
2016-04-22 23:17:55 -07:00
bors-servo
abce9de233
Auto merge of #10799 - frewsxcv:no-clone, r=jdm
...
Complete 'inefficient' FIXME by remove unnecessary clone.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10799 )
<!-- Reviewable:end -->
2016-04-22 21:00:18 -07:00
Tyler Southwick
cba0267ed4
implement webglcontextevent
2016-04-22 19:54:13 -07:00
bors-servo
e12fc2a6f7
Auto merge of #10769 - saneyuki:keyevents, r=frewsxcv
...
Drop support for keyevents in Document::createEvent
Fix #10735
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10769 )
<!-- Reviewable:end -->
2016-04-22 15:56:49 -07:00
bors-servo
8163347e34
Auto merge of #10762 - canaltinova:has_attributes, r=nox
...
Implement Element::hasAttributes
Fixes #10748 .
Implement Element::hasAttributes. I'm not sure if tests are enough. I'm open to suggestion :)
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10762 )
<!-- Reviewable:end -->
2016-04-22 15:11:20 -07:00