Commit graph

483 commits

Author SHA1 Message Date
Tom Schuster
96e42feaa1 Implement the whole Attr interface 2014-11-07 14:36:57 +01:00
Guillaume Bort
8e2abb6ffc Close #84
Actually <img> elements in <noscript> are not prefetched anymore.

Probably because html5ever already parses the <noscript> content as raw
text data if `scripting_enabled` is activated.

See
https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#
L126

Also, added a test to the images cache.
2014-11-07 13:43:19 +01:00
Josh Matthews
711f4d5af9 Make content tests synchronous by default. Fixes #884. 2014-11-06 21:48:43 -08:00
bors-servo
338a9c3f05 auto merge of #3917 : mukilan/servo/xhr-status-async, r=jdm
Fixes #3877
2014-11-06 19:00:29 -07:00
Mukilan Thiyagarajan
504fdbfac4 Disable status-error.htm and status-async.htm due to #3596 2014-11-07 06:27:15 +05:30
bors-servo
cf0455a4ca auto merge of #3916 : mbrubeck/servo/disable-xhtml, r=Ms2ger
r? @Ms2ger
2014-11-06 14:15:30 -07:00
Bruno de Oliveira Abinader
5c76502b91 Implement DOMStringMap 2014-11-06 11:31:58 -08:00
Mukilan Thiyagarajan
dc02352564 XHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONE
Fixes #3877
2014-11-06 23:57:48 +05:30
bors-servo
c828e83604 auto merge of #3817 : nkdalmia/servo/master, r=jdm
We have completed the initial step for "Implement Window.sessionStorage and Window.localStorage"
- Create and stub the Storage WebIDL interface
2014-11-06 10:51:40 -07:00
Matt Brubeck
266970e2b2 Disable XHTML tests 2014-11-06 09:43:57 -08:00
bors-servo
ed22c9b35b auto merge of #3696 : pcwalton/servo/gradients, r=SimonSapin
This implements a subset of the CSS `linear-gradient` property per the
CSS-IMAGES specification:

    http://dev.w3.org/csswg/css-images-3/

The full syntax is parsed, but only the beginning and end color stops
are used, and gradients are clamped to the nearest 90 degrees. It should
not be architecturally difficult to add the remaining pieces, but in the
interests of bounding the size of this patch that work has been left to
follow-ups.

Improves GitHub.

r? @glennw
2014-11-06 10:00:42 -07:00
Patrick Walton
215c2a9d4c layout: Implement CSS linear gradients per the CSS-IMAGES specification.
This implements the CSS `linear-gradient` property per the CSS-IMAGES
specification:

    http://dev.w3.org/csswg/css-images-3/

Improves GitHub.
2014-11-06 08:26:47 -08:00
nkdalmia
bb76b0f3f2 Intial Commit for Storage.webidl, along with impl stub 2014-11-06 10:55:27 -05:00
Ms2ger
bb9cad938b Implement HTMLElement#lang. 2014-11-06 15:28:52 +01:00
bors-servo
45262ec9d2 auto merge of #3905 : Ms2ger/servo/prefix-create, r=jdm 2014-11-05 19:27:35 -07:00
Matt Brubeck
eee25d132c Disable flaky XHR test 2014-11-05 17:08:00 -08:00
Ms2ger
a5e9f97c8f Pass the prefix to Element::new in create_element. 2014-11-05 23:18:33 +01:00
bors-servo
c9857d49dd auto merge of #3901 : Ms2ger/servo/title, r=jdm 2014-11-05 14:33:36 -07:00
Ms2ger
45701002a3 Implement HTMLElement.title. 2014-11-05 22:08:36 +01:00
bors-servo
76cc006a40 auto merge of #3898 : Ms2ger/servo/prefix-clone, r=jdm
The current code calls as_slice() on the Option, yielding &[DOMString], and
then calls to_string, yielding "[prefix]".
2014-11-05 12:57:37 -07:00
Ms2ger
82ff32a710 Pass the correct argument to Element::create when cloning.
The current code calls as_slice() on the Option, yielding &[DOMString], and
then calls to_string, yielding "[prefix]".
2014-11-05 20:51:41 +01:00
bors-servo
fba6cb9c42 auto merge of #3897 : Ms2ger/servo/enable-reflection, r=Manishearth 2014-11-05 11:12:40 -07:00
Ms2ger
e1bb3c3b06 Parse the size attribute on input elements. 2014-11-05 19:07:01 +01:00
Ms2ger
f7407ee43d Re-enable reflection-forms.html. 2014-11-05 16:19:10 +01:00
Ms2ger
cdde96e989 Defer to GetAttribute in HasAttribute.
The semantics of has_attribute aren't anywhere close to the ones expected for
Element#hasAttribute, and it fails an assertion when passed non-lower-case
names.
2014-11-05 16:05:06 +01:00
Ms2ger
801c7a35be Update web-platform-tests. 2014-11-05 10:30:59 +01:00
bors-servo
e483a189a3 auto merge of #3879 : mrobinson/servo/debug-options, r=cgaebel
This should make help output a lot cleaner and simplify the way that
uncommon debug options are passed.
2014-11-04 11:36:30 -07:00
Martin Robinson
628cf9c0df Corral debug command-line options into a --debug/-Z flag
This should make help output a lot cleaner and simplify the way that
uncommon debug options are passed.
2014-11-04 10:32:06 -08:00
bors-servo
4e24e4d8e9 auto merge of #3732 : mukilan/servo/xhr-issue-3630, r=jdm
This fixes issue #3630
A short summary of the changes:
* Use atomic generation id to cancel inflight requests
* Handles nested calls to abort, open, send inside handlers
* Adds XHRReleaseMsg to delay freeing XHR object till all
  inflight events are processed
* Handles both timeout, errors and abort/open in a symmetric fashion
  i.e All inflight events will be cancelled for timeouts, aborts,
    errors and on calling open.
* Change the ErroredMsg enum to be more symmetric with the returned
  Error enum

I noticed a few possible changes that could make the code for fetch task simpler:
* We can remove the additional timer task and let the fetch task manage 
  its own timer (or maybe the resource loader can do this.)
* The CORS related steps could also be moved into the resource loader.
* Right now upload events are not support. This requires some support 
  from resource loader.
2014-11-04 05:06:34 -07:00
Mukilan Thiyagarajan
9bafd5f28a Update expectations for wpt tests under /XMLHttpRequest
Following tests are re-enabled:
* /XMLHttpRequest/send-network-error-async-events.sub.htm
* /XMLHttpRequest/send-network-error-sync-events.sub.htm
* /XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html
* /XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html
* /XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html
* /XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html

Following tests are disabled:
* /XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html

The following tests are expected to timeout since window.postMessage is
not implemented yet:

* /XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html
* /XMLHttpRequest/xmlhttprequest-timeout-overrides.html
* /XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html
2014-11-04 08:20:46 +05:30
Clark Gaebel
d22a64884d Implements case insensitive font family names.
One part (of 8!) of css font family disambiguation is that font families should
be matched case-insensitively.

This patch implements that. Once it lands, a bug needs to be filed to do lowercasing
properly (as a string, instead of char-by-char -- it's a unicode thing).

r? @gw
2014-11-03 17:15:51 -08:00
Mitchell Van Der Hoeff
128f162b92 Remove ./dom/nodes/Document-createEvent.html.ini in tests/wpt/metadata because we expect all tests to pass now. Fixes #3855 2014-11-02 15:19:32 -05:00
Patrick Walton
7712052e13 test: Mark the inline element in inline_hypothetical_box_a.html as
`vertical-align: top`.

We actually don't support the other values correctly, and so this test
was relying on a bug in incremental reflow.
2014-10-31 12:24:40 -07:00
Ms2ger
671a487145 Format Element#tagName correctly when there's a prefix.
format!("{}", atom) yields strings like "Atom('span' type=Inline)", which is
not intended here.
2014-10-30 11:51:27 +01:00
bors-servo
272ae0cc1b auto merge of #3721 : mbrubeck/servo/script-sync, r=Ms2ger
Fixes #3356.  This makes script elements fetch their source synchronously and execute immediately by default.  It also lays some groundwork for future deferred or async script loading.

(Depends on #3716 to fix a content test failure caused by running script during parsing.)
2014-10-29 15:51:41 -06:00
Matt Brubeck
b2c211ef86 Test for sync script loading 2014-10-29 14:31:47 -07:00
Matt Brubeck
fe123ad07c Switch to synchronous script loading
This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.

Fixes #3356.
2014-10-29 14:31:47 -07:00
Ms2ger
8eeca573f7 Disable indexed-browsing-contexts-01.html for flakiness. 2014-10-29 21:43:44 +01:00
Mukilan Thiyagarajan
75d41c2146 Disable Document interface attribute onreadystatechange test
idlharness.js does not understand [LenientThis] yet
2014-10-25 23:01:59 +05:30
Mukilan Thiyagarajan
9653965380 Add content test for [LenientThis] attribute Document.onreadystatechange 2014-10-25 17:55:08 +05:30
Josh Matthews
c4e9a42110 Mark the append_style reftest as flaky until we get better reliability. Fixes #3805. 2014-10-24 16:50:05 -04:00
Josh Matthews
225ec3ed4e Really fix #3738 by only processing iframe src attributes during parsing. 2014-10-23 18:58:34 -04:00
Josh Matthews
539c21f380 Implement Document.readyState. Prevent iframes from notifying the compositor after the initial parse. Fixes #1720. Fixes #3738. 2014-10-23 10:55:59 -04:00
bors-servo
97762205ab auto merge of #3768 : glennw/servo/fix-1576, r=jdm 2014-10-22 02:48:36 -06:00
Glenn Watson
d736a5ef82 Reenable visibilty ref test. Fixes #1576. 2014-10-22 13:21:17 +10:00
Patrick Walton
32e34663cd gfx: Switch the default to CPU painting.
We've discussed this some and I think there's consensus to do it as a
pragmatic decision for now. CPU painting is more stable, especially with
buggy drivers, and faster (because we aren't caching the necessary
OpenGL objects yet and possibly for other reasons), so it provides a
better "out of the box" experience for newcomers to Servo who don't know
to pass the `-c` option. This patch continues to reftest both Skia and
Skia-GL out of a desire to keep options open. Skia-GL remains a
first-class citizen.
2014-10-21 11:13:21 -07:00
Ms2ger
7cc8ff93ec Enable Opera's script scheduling tests. 2014-10-21 14:08:19 +02:00
Ms2ger
b9d8533760 Don't crash on invalid utf-8 in the HTML parser.
This was regressed by the html5ever landing.
2014-10-19 13:18:25 +02:00
Gilles Leblanc
8b727e3680 Edits dom/bindings/DESIGN.md
This corrects and improves the dom/bindings/DESIGN.md document and also
corrects a grammatical error in a tests/reftest.rs message.
2014-10-17 23:12:58 -04:00
Clark Gaebel
2faf5b270f Fix image_dynamic_remove reftest with incremental layout turned out
This also adds some extra debugging infrastructure which I found useful tracking
this bug down. A regression in the br reftests is also uncovered by this patch,
which I'll work on fixing next.

r? @pcwalton
2014-10-17 11:11:14 -07:00