bors-servo
f7db68eff7
Auto merge of #9816 - nox:node-replacechild, r=Ms2ger
...
Fix the Node.replaceChild tests
That method first does "if node is a host-including inclusive ancestor of parent,
throw a HierarchyRequestError" and only then "if child’s parent is not parent,
throw a NotFoundError exception".
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9816 )
<!-- Reviewable:end -->
2016-03-01 14:01:18 +05:30
bors-servo
00628704ca
Auto merge of #9763 - Tangresh:i9725, r=nox
...
Implement value for DOMTokenList
Fixes #9725
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9763 )
<!-- Reviewable:end -->
2016-03-01 08:34:21 +05:30
Anthony Ramine
186218b265
Fix the Node.replaceChild tests
...
That method first does "if node is a host-including inclusive ancestor of parent,
throw a HierarchyRequestError" and only then "if child’s parent is not parent,
throw a NotFoundError exception".
2016-03-01 03:14:15 +01:00
Greg Guthe
b408f840a0
test websocket origin set in worker
...
refs: https://github.com/servo/servo/issues/9535
2016-02-29 18:22:18 -05:00
bors-servo
4bcdbe6d56
Auto merge of #8932 - rilut:add-elementfrompoint, r=nox
...
Implement Document#elementFromPoint
Related to #8666 . I haven't implemented elementsFromPoint, because from my past discussion with jdm, [it's not good yet](dbfa25214b (commitcomment-14668959)
) to implement elementsFromPoint because it may cause GC hazards.
By the way, I also have to include the test for this, right? I've found this [1]. So, is all I have to do is just to put this into `tests/wpt/web-platform-tests/cssom-view/elementFromPoint.html`?
[1] http://test.csswg.org/suites/cssom-view-1_dev/nightly-unstable/html/elementFromPosition.htm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8932 )
<!-- Reviewable:end -->
2016-03-01 03:01:50 +05:30
bors-servo
2ba1709181
Auto merge of #9804 - nox:vengeful-disabling, r=KiChjang
...
Vindictively disable all intermittent tests that failed #9787
This disables the tests mentioned in #8120 , #9014 , #9033 , #9092 , #9148 , #9205 , #9772 and #9803 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9804 )
<!-- Reviewable:end -->
2016-03-01 01:32:48 +05:30
Rizky Luthfianto
76678bbdae
Implement Document#elementFromPoint
2016-03-01 02:23:07 +07:00
Anthony Ramine
ea1c169894
Vindictively disable all intermittent tests that failed #9787
...
This disables the tests mentioned in #8120 , #9014 , #9033 , #9092 , #9148 , #9205 , #9772 and #9803 .
2016-02-29 20:07:07 +01:00
Dominik Menzi
b29b2d6d73
Implement value for DOMTokenList
2016-02-29 16:07:03 +01:00
bors-servo
872ee19534
Auto merge of #9773 - notriddle:wpt_line_width, r=nox
...
Truncate long test names in WPT.
Makes the output readable on 100-character terminals.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9773 )
<!-- Reviewable:end -->
2016-02-29 19:19:49 +05:30
bors-servo
dfdeabf57d
Auto merge of #9799 - nox:range-extractcontents, r=KiChjang
...
Fix step 14.2 of Range::ExtractContents
We need the last inclusive ancestor of start node that is not an inclusive ancestor
of end node, not the first that is an inclusive ancestor of it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9799 )
<!-- Reviewable:end -->
2016-02-29 05:11:28 +05:30
Anthony Ramine
c0d79062b5
Fix step 14.2 of Range::ExtractContents
...
We need the last inclusive ancestor of start node that is not an inclusive ancestor
of end node, not the first that is an inclusive ancestor of it.
2016-02-29 00:19:18 +01:00
bors-servo
b3964a8958
Auto merge of #9797 - nox:range-insertnode, r=KiChjang
...
Fix step 1 of Range::InsertNode
The method needs to throw when trying to insert start node into range.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9797 )
<!-- Reviewable:end -->
2016-02-29 04:18:06 +05:30
Anthony Ramine
c713734b48
Fix step 1 of Range::InsertNode
...
The method needs to throw when trying to insert start node into range.
2016-02-28 22:54:08 +01:00
Emilio Cobos Álvarez
3e36739e38
script: Fix remaining bugs from Range.deleteContents
2016-02-28 19:27:42 +01:00
Anthony Ramine
0ac931a43e
Fix step 6 of Range::DeleteContents
2016-02-28 04:57:10 +01:00
Michael Howell
4170f20828
Truncate long test names in WPT.
...
Makes the output readable on 100-character terminals.
2016-02-27 18:52:53 -07:00
bors-servo
d5ce8f308f
Auto merge of #9734 - nox:finish-event-dispatch, r=Ms2ger
...
Fix the "get the parent" loop when dispatching event (fixes #6733 )
The DOM specification says:
> A document's get the parent algorithm, given an event, returns null
> if event's type attribute value is "load" or document does not have
> a browsing context, and the document's associated Window object
> otherwise.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9734 )
<!-- Reviewable:end -->
2016-02-27 23:03:25 +05:30
Anthony Ramine
e70b520c1f
Fix the "get the parent" loop when dispatching event ( fixes #6733 )
...
The DOM specification says:
A document's get the parent algorithm, given an event, returns null
if event's type attribute value is "load" or document does not have
a browsing context, and the document's associated Window object
otherwise.
2016-02-27 17:41:22 +01:00
bors-servo
4a7d234510
Auto merge of #9768 - jdm:add_disallowed_prefixes, r=jdm
...
disallow restricted XMLHttpRequest header prefixes
Rebased from #9376 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9768 )
<!-- Reviewable:end -->
2016-02-27 22:09:46 +05:30
Chandler Abraham
3a949b77b2
don't unconditionally override header
2016-02-27 10:47:13 -05:00
Bob
759099c78d
correctly send secure cookies after hsts url match
...
Fix for #8100 , where sites in the hsts list were not recieving secure
cookies if the site was originally loading using a plain http url.
2016-02-27 15:16:53 +00:00
bors-servo
4e244b16dd
Auto merge of #9675 - KiChjang:fetch-attributes, r=jdm
...
Update fetch attributes to match the new spec
This should make fetch match the spec more closely.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9675 )
<!-- Reviewable:end -->
2016-02-27 20:22:22 +05:30
bors-servo
5862675b82
Auto merge of #9766 - jdm:flexboxtests, r=Ms2ger
...
Enable flexbox for flexbox tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9766 )
<!-- Reviewable:end -->
2016-02-27 19:28:57 +05:30
Keith Yeung
96971244ac
Update fetch attributes to match the new spec
2016-02-27 08:40:09 -05:00
bors-servo
6c65e154f4
Auto merge of #9774 - nox:remove-attribute-node, r=nox
...
Implement removeAttributeNode
Supersedes #8727
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9774 )
<!-- Reviewable:end -->
2016-02-27 15:23:06 +05:30
bors-servo
8bdffa25f9
Auto merge of #9755 - jdm:handlerreturn, r=jdm
...
use return value of invoking event handlers to cancel the event
Rebased from #8707 . Fixes #8490 . We can modify the code and test as necessary whenever we make a decision about https://github.com/whatwg/html/issues/423 in the future.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9755 )
<!-- Reviewable:end -->
2016-02-27 07:10:50 +05:30
bors-servo
0d7a2eee2d
Auto merge of #9514 - g-k:html-input-value, r=KiChjang
...
HTML input value
Ready for review.
Fixes #9455 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9514 )
<!-- Reviewable:end -->
2016-02-27 04:36:46 +05:30
bors-servo
d424bd14e5
Auto merge of #9718 - Ms2ger:clean-sync, r=jgraham
...
Support syncing from a clean tree.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9718 )
<!-- Reviewable:end -->
2016-02-27 02:31:07 +05:30
Nick Fitzgerald
d28c9a1588
Implement removeAttributeNode
...
This commit implement removeAttributeNode, as described here:
https://dom.spec.whatwg.org/#dom-element-removeattributenode
See also #8724 and #8068 .
2016-02-26 21:18:24 +01:00
Anthony Ramine
b8ae5897f1
Implement Element.getAttributeNames
2016-02-26 19:15:11 +01:00
Josh Matthews
f9d197888e
Enable flexbox for flexbox tests.
2016-02-26 11:45:08 -05:00
Anthony Ramine
329a5b0c95
Remove a fat arrow from /dom/nodes/attributes.html
2016-02-26 17:18:16 +01:00
Chandler Abraham
c375ad5e95
disallow restricted XMLHttpRequest header prefixes
2016-02-26 11:04:33 -05:00
João Oliveira
b60d668908
use return value of invoking event handlers to cancel the event
2016-02-26 10:17:57 -05:00
Ms2ger
de119adcc2
Update web-platform-tests to revision efa05bfb3b338ef988f3ebf4523198512a248a99
2016-02-26 11:10:34 +01:00
Ms2ger
070d3ffa54
Include UpdateCheckout in SyncToUpstreamRunner.
...
This is necessary to support syncing from a clean tree.
2016-02-26 11:07:47 +01:00
bors-servo
26b40afe23
Auto merge of #9757 - jdm:websocket-errors-rebase, r=jdm
...
Trigger WebSocket error event
Trigger a WebSocket error after receiving an invalid message from the server. Rebased from #8868 . Fixes #7861 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9757 )
<!-- Reviewable:end -->
2016-02-26 14:14:06 +05:30
Sam Gibson
4f736e6f7c
Trigger WebSocket error event
...
Trigger a WebSocket error after receiving an invalid message from the server
2016-02-26 09:43:12 +01:00
Greg Guthe
e6c31e305d
Get input value IDL attribute matching spec
...
Refs: https://github.com/servo/servo/issues/9455
2016-02-25 18:59:34 -05:00
bors-servo
32c97b6c8d
Auto merge of #9631 - jongiddy:remove-extra-mask-byte, r=jdm
...
Validate MIME pattern checking
The MIME detector for a HTML file contains an additional byte in the mask. While it doesn't hurt, it is not used in the byte matching code (since it is zipped with the `pattern` iterator).
I'm not clear how to test this within the `servo` code. The fix doesn't change any externally visible behavior. A test to validate the `ByteMatcher` structures would require the private ByteMatcher structures to be visible to the test. I could use a sub-module, as described at https://doc.rust-lang.org/book/testing.html#the-tests-module but this pattern doesn't appear anywhere else in the `servo` code.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9631 )
<!-- Reviewable:end -->
2016-02-26 02:57:44 +05:30
bors-servo
6d8c018f6b
Auto merge of #9039 - askalski:tests_to_http_loader, r=jdm
...
added tests to http_loader, veryfing if redirects use correct cookies
this is second PR, following https://github.com/servo/servo/pull/7617 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9039 )
<!-- Reviewable:end -->
2016-02-26 02:04:01 +05:30
Eli Friedman
7b671d13a0
Use presentation hints correctly for the dimensions of <img>
.
...
Mostly straightforward; includes some extra fixes to make `<canvas>`
work the same way as `<img>` for reflow.
2016-02-25 14:04:06 -05:00
Anthony Ramine
1559f5a39f
Lazily define interface objects on globals ( fixes #6419 )
2016-02-25 15:56:47 +01:00
bors-servo
42f1712846
Auto merge of #9740 - paulrouget:mozbrowserconnected, r=jdm
...
Support Browser API event mozbrowserconnected
Fixes https://github.com/servo/servo/issues/9382
This new event is not yet documented. If this lands, I will add documentation to MDN.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9740 )
<!-- Reviewable:end -->
2016-02-25 15:56:24 +05:30
Paul Rouget
3ecc907767
Support Browser API event mozbrowserconnected
2016-02-24 18:45:07 +01:00
Anthony Ramine
50af73d1a2
Bump string_cache to 0.2.10
2016-02-24 16:47:10 +01:00
bors-servo
438b3a444b
Auto merge of #9722 - mbrubeck:slow-selector, r=nox
...
Dirty elements whose selectors are affected by sibling changes
This fixes incremental layout of nodes that match pseudo-class selectors such as :first-child, :nth-child, :last-child, :first-of-type, etc. Fixes #8191 and other intermittent layout bugs.
This code is based on the following flags from Gecko:
https://hg.mozilla.org/mozilla-central/file/e1cf617a1f28/dom/base/nsINode.h#l134
Depends on servo/rust-selectors#71 . r? @SimonSapin
There are a couple of TODO items in this commit, but I'd appreciate feedback on the general approach before I finish it up. (Also, if someone who knows more than I do could give some advice about atomic orderings...)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9722 )
<!-- Reviewable:end -->
2016-02-24 18:55:39 +05:30
Anthony Ramine
0455b0b301
Test event dispatching in documents without a browsing context
2016-02-24 12:50:58 +01:00
Ms2ger
62a9bebeef
Update web-platform-tests to revision 7ed49cff4d031720f829c01df837ed7a09ad5c60
2016-02-24 11:04:43 +01:00