Commit graph

14486 commits

Author SHA1 Message Date
Sam Gibson
732ae5714f Fix the parsing of the chromium HSTS preload list
Urg! The Chromium HSTS preload JSON file contains single line comments. Previously these were filtered out with a very simple regex that just looked for '//' and removed the line. Now the file has added a couple fields that have URLs in them that were erroneously removed and caused the JSON parsing to fail. This commit slightly complicates the regex to fix this specific problem.

If this happens again, it's likely worth it to figure out how to use a real parser to remove the comments.

servo/servo#8760
2015-12-02 15:36:38 +11:00
bors-servo
a8cbc28643 Auto merge of #8742 - jmr0:master, r=Ms2ger
adding wpt lint script to tidy checks

Fixes #8285.

Tidy check will fail, however, until we merge the latest https://github.com/w3c/web-platform-tests/blob/master/lint.whitelist

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8742)
<!-- Reviewable:end -->
2015-12-01 22:21:37 +05:30
bors-servo
65108348aa Auto merge of #8714 - frewsxcv:body-fgcolor, r=Ms2ger
Implement attribute 'fgColor' on 'document'

The 'text' attribute was implemented on `<body>` in #7841

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8714)
<!-- Reviewable:end -->
2015-12-01 21:40:58 +05:30
bors-servo
b4906aa008 Auto merge of #8755 - glennw:vsync, r=pcwalton
Add debug option to disable vsync for profiling.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8755)
<!-- Reviewable:end -->
2015-12-01 05:26:00 +05:30
Glenn Watson
6c8905126f Add debug option to disable vsync for profiling. 2015-12-01 09:52:13 +10:00
Corey Farwell
320263199f Implement attribute 'fgColor' on 'document'
The 'text' attribute was implemented on '<body>' in #7841
2015-11-30 18:19:07 -05:00
bors-servo
51c19fd733 Auto merge of #8558 - jdm:crossoriginiframeload, r=glennw
Dispatch load events for cross origin iframes. Resolves #6672.

Splitting it out from #6677.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8558)
<!-- Reviewable:end -->
2015-12-01 04:09:11 +05:30
Josh Matthews
c23cbd4163 Dispatch load events for cross origin iframes. Resolves #6672. 2015-11-30 17:37:16 -05:00
bors-servo
2a125b5613 Auto merge of #8731 - eefriedman:root-lint-pattern, r=Manishearth
Fix false positive in unrooted_must_root lint.

Encountered in #8725.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8731)
<!-- Reviewable:end -->
2015-12-01 00:24:03 +05:30
Eli Friedman
962c06e9da Fix false positive in unrooted_must_root lint.
Encountered in #8725.
2015-11-30 10:53:32 -08:00
bors-servo
595bda478e Auto merge of #8752 - Manishearth:om-nom, r=metajack
Make `path_matches` match the spec (fixes cookies)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8752)
<!-- Reviewable:end -->
2015-11-30 23:18:39 +05:30
Manish Goregaokar
d332557d69 Add path_match tests 2015-11-30 22:56:13 +05:30
Manish Goregaokar
f8d906be10 Make path_matches match the spec (fixes cookies) 2015-11-30 22:01:33 +05:30
jmr0
e301ff46b2 adding wpt lint script to tidy checks 2015-11-30 10:08:10 -05:00
bors-servo
29c42a9f78 Auto merge of #8751 - nox:rm-prototype-slot, r=Ms2ger
Remove unused slot in prototype object (fixes #8588)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8751)
<!-- Reviewable:end -->
2015-11-30 19:27:57 +05:30
Anthony Ramine
7547bcac24 Remove unused slot in prototype object (fixes #8588) 2015-11-30 14:48:24 +01:00
bors-servo
a27a15f94b Auto merge of #8736 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8736)
<!-- Reviewable:end -->
2015-11-30 18:56:26 +05:30
bors-servo
78a298bdba Auto merge of #8748 - Ms2ger:update-tests, r=Ms2ger
Update tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8748)
<!-- Reviewable:end -->
2015-11-30 18:14:56 +05:30
Ms2ger
3bbee99cdb Update web-platform-tests to revision a3b0fadc7f5001bbe52c65e0a354c454981423a3 2015-11-30 13:44:18 +01:00
Ms2ger
6bb495338b Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f 2015-11-30 12:21:03 +01:00
bors-servo
0f72049363 Auto merge of #8705 - jsanders:fix-sleep-ms-deprecations, r=metajack,Wafflespeanut
Use thread::sleep instead of deprecated sleep_ms

Similarly, change one instance of `thread::park_timeout_ms`.

Fixes #8694

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8705)
<!-- Reviewable:end -->
2015-11-30 09:20:15 +05:30
bors-servo
a877a56e0e Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgraham
Webdriver - GetWindowSize/IsEnabled/IsSelected

Added handlers for https://github.com/servo/servo/issues/8623:
GetWindowSize
IsEnabled(WebElement)
IsSelected(WebElement)

I am not sure how to actually verify my webdriver code works, if someone can give advice I would make the necessary changes.

Thanks!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8661)
<!-- Reviewable:end -->
2015-11-30 03:42:54 +05:30
David Raifaizen
8d451076e1 Removed duplicate webdriver_traits file and added webdriver handler for GetWindowSize, IsSelected and IsEnabled 2015-11-29 15:48:23 -05:00
James Sanders
3659218c59 Use thread::sleep instead of deprecated sleep_ms
Similarly, change one instance of `thread::park_timeout_ms`.

Fixes #8694
2015-11-29 13:41:04 -07:00
Ms2ger
ae6585da88 Move overconstrained_block.html to wpt reftests. 2015-11-29 10:57:16 +01:00
Ms2ger
facee849c2 Move link_style_dynamic_addition.html to wpt reftests. 2015-11-29 10:57:15 +01:00
Ms2ger
27e3ca61ec Move linebreak_simple_a.html to wpt reftests. 2015-11-29 10:57:14 +01:00
Ms2ger
7641d5b1e3 Remove inline_border_a.html.
It compares to a screenshot that doesn't match.
2015-11-29 10:57:13 +01:00
Ms2ger
51af73d872 Fix the metadata file for size_attributes_vertical_writing_mode.html. 2015-11-29 10:57:12 +01:00
bors-servo
b737e4e0fa Auto merge of #8735 - echochamber:OnErrorEventHandlerNonNull-return-any, r=KiChjang
Make OnErrorEventHandlerNonNull return 'any' instead of 'boolean'.

PR to fix #8710

> I think the specification must have changed since this was first added to Servo: https://html.spec.whatwg.org/multipage/webappapis.html#onerroreventhandler

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8735)
<!-- Reviewable:end -->
2015-11-29 15:00:19 +05:30
Jason Schein
ccb8d070ad Make OnErrorEventHandlerNonNull return 'any' instead of 'boolean'. 2015-11-29 00:10:32 -08:00
bors-servo
2d164f2beb Auto merge of #8729 - dzbarsky:canvas_webidl, r=dzbarsky
Update Canvas webIDL to spec

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8729)
<!-- Reviewable:end -->
2015-11-29 09:32:28 +05:30
David Zbarsky
ee3f7ad451 Update Canvas webIDL to spec 2015-11-28 20:03:48 -08:00
bors-servo
1f732cfbb4 Auto merge of #8669 - bholley:generalize_layout, r=pcwalton
Generalize layout to operate on arbitrary DOMs

This gets us to where we need to be in order to write a Gecko implementation of the layout wrapper and have things Just Work.

Note that this is somewhat more than we need for just running the style system. But there wasn't a clean place to cut, and I thought it was a good idea to just do a complete job on it now, which may save us effort and mismatches in the long run.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8669)
<!-- Reviewable:end -->
2015-11-29 07:47:33 +05:30
Bobby Holley
cf33f00018 Generalize the rest of layout to operate on generic Layout*.
There wasn't a good way to split this up, unfortunately.

With this change, the only remaining usage of the Servo-specific structures is
in layout_task, where the root node is received from the script task. \o/
2015-11-28 18:01:02 -08:00
Bobby Holley
77a8091996 Generalize css/matching.rs to operate on generic Layout*. 2015-11-28 18:01:02 -08:00
Bobby Holley
3aeaff35de Switch ChildrenIterator to be an associated type.
If we use ThreadsafeLayoutNodeChildrenIterator directly as the return type of children(),
we need to export the DangerousThreadSafeLayoutNode which the iterator implementation
relies upon.
2015-11-28 18:01:02 -08:00
Bobby Holley
2cfe4de09b Constrain the ConcreteLayoutFoo associated types to provide full tri-ality among the types.
Otherwise we end up with this problem: http://is.gd/ACBLAU
2015-11-28 18:01:02 -08:00
bors-servo
2dab0e1584 Auto merge of #8722 - frewsxcv:tracking-issues, r=nox
Add tracking issues for body/document attributes

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8722)
<!-- Reviewable:end -->
2015-11-29 04:36:17 +05:30
Corey Farwell
feb16463ef Add tracking issues for body/document attributes 2015-11-28 17:53:59 -05:00
bors-servo
d48d8b3ea1 Auto merge of #8713 - GuillaumeGomez:features, r=Manishearth
Remove stabilized features

Fixes #8706.

cc @KiChjang

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8713)
<!-- Reviewable:end -->
2015-11-28 21:58:43 +05:30
bors-servo
eadaf30af3 Auto merge of #8703 - eefriedman:dom-getter-setter-atom, r=frewsxcv
Compute attribute name atoms at compile-time.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8703)
<!-- Reviewable:end -->
2015-11-28 20:40:07 +05:30
bors-servo
dbff1ab336 Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanut
Ensure crate are alphabetically sorted

cc @nox

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692)
<!-- Reviewable:end -->
2015-11-28 19:34:11 +05:30
bors-servo
9f3d6e77b8 Auto merge of #8708 - Ms2ger:stray-ini, r=jdm
Remove an expectation file for a test that doesn't exist.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8708)
<!-- Reviewable:end -->
2015-11-28 18:31:00 +05:30
Ms2ger
0eee538826 Remove an expectation file for a test that doesn't exist. 2015-11-28 10:43:54 +01:00
bors-servo
b4213e6d8e Auto merge of #8698 - servo:rustup_2015-11-26, r=Manishearth
Upgrade to rustc 1.6.0-nightly (1805bba39 2015-11-26)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8698)
<!-- Reviewable:end -->
2015-11-28 12:11:52 +05:30
Guillaume Gomez
e1e2b61049 Remove stabilized features 2015-11-28 05:48:03 +01:00
bors-servo
d50b87edec Auto merge of #8702 - mrobinson:fragments, r=pcwalton
Build Fragments without the RECONSTRUCT_FLOW bit

The RECONSTRUCT_FLOW restyle damage bit shouldn't apply to newly
constructed flow tree elements. It is explicitly removed for Flows, but
not for Fragments. This causes RECONSTRUCT_FLOW to bubble up to Flows
that contain any Fragments at all. Instead explicitly remove the
RECONSTRUCT_FLOW bit when creating a new Fragment.

There isn't a good way to test this currently, but all tests should
continue to pass.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8702)
<!-- Reviewable:end -->
2015-11-28 10:04:28 +05:30
Guillaume Gomez
6e7de62b38 Add check up on extern crate order and sort extern crates alphabetically 2015-11-28 03:11:08 +01:00
bors-servo
fa7e1d07ff Auto merge of #8688 - Ms2ger:compositing, r=pcwalton
Some compositing cleanup.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8688)
<!-- Reviewable:end -->
2015-11-28 07:26:14 +05:30