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
Anthony Ramine
eb94f1a918
Update SpiderMonkey
2016-05-03 18:36:11 +02:00
fokinv
c8672ed0af
Refactor IPC-message sending
2016-05-03 11:35:34 +02:00
zakorgy
ef296b86e8
Refactor scan filter
2016-05-03 11:35:32 +02:00
zakorgy
402bc552ca
Replace the union types with the correct typedefs in the webidl files and the API classes.
2016-05-03 11:35:30 +02:00
fokinv
f47f8d1a5c
Style fix
2016-05-03 11:35:28 +02:00
zakorgy
27ad1437a1
Error handling
2016-05-03 11:35:26 +02:00
zakorgy
66fbc4ac46
requestDevice options (filters and optionalServices)
2016-05-03 11:35:18 +02:00
fokinv
b01c52c18f
Implementation of the getPrimaryService(s), the getCharacteristic(s) and the getDescriptor(s) functions.
2016-05-03 10:17:42 +02:00
fokinv
9825ea41b4
Add Bluetooth IPC support
2016-05-03 10:17:41 +02:00
zakorgyula
9d55748de2
Update assigned services, characteristics and descriptors
2016-05-03 10:17:39 +02:00
Attila Dusnoki
9e57364795
Fix value types
2016-05-03 10:17:38 +02:00
bors-servo
8255e74a61
Auto merge of #10081 - jdm:interfacepref, r=nox
...
Support controlling interface and member visibility via preferences
This was easier to throw together than per-attribute/method support, and it gets rid of some nonstandard properties from our globals.
Fixes #7626 .
r? @Ms2ger
<!-- 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/10081 )
<!-- Reviewable:end -->
2016-05-02 11:35:38 -07:00
Josh Matthews
a03fc5e2fd
Hide nonstandard interface members of standard interfaces behind appropriate prefs.
2016-05-02 14:32:58 -04:00
Josh Matthews
cb5bad63dc
Implement hiding of interface members via Pref annotations.
2016-05-02 14:32:56 -04:00
Josh Matthews
88059acd7e
Start generating arrays of specs for easier implementation of preference checks.
2016-05-02 14:32:55 -04:00
Josh Matthews
f4c1529f56
Forbid unconditionally-exposed interfaces that inherit from conditionally-exposed ones.
2016-05-02 14:32:53 -04:00
Josh Matthews
91a78ed109
Disable nonstandard interfaces via prefs.
2016-05-02 14:32:52 -04:00
bors-servo
a54dedac1f
Auto merge of #10946 - bd339:iss10940, r=nox
...
Disable scripting for documents created without a browsing context
Goes towards closing #10940 .
<!-- 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/10946 )
<!-- Reviewable:end -->
2016-05-02 08:48:02 -07:00
Ms2ger
eba74554f3
Add and update some FIXME comments about origin handling with iframes.
2016-05-02 12:34:08 +02:00
Ms2ger
68076fbd7b
Return a Url from HTMLIFrameElement::get_url.
...
Since Url::origin() always returns an opaque origin for about: urls, I don't
believe this changes behaviour.
2016-05-02 12:32:44 +02:00
bors-servo
5358df5a16
Auto merge of #10958 - izgzhen:fixes, r=nox
...
Minor fixes to documentation
1. Looks like getters and setters are specified here already. 0385f60310/components/script/dom/bindings/mod.rs (L62)
2. The `MutNullableJS` and `Unrooted` looks obsolete
<!-- 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/10958 )
<!-- Reviewable:end -->
2016-05-02 00:59:37 -07:00
Zhen Zhang
e0f3cdafe1
Fixes related to file input and File API
2016-05-02 12:52:28 +08:00
Zhen Zhang
0385f60310
fix docs
2016-05-02 11:17:35 +08:00
bd339
0c92e19e84
make scripting_enabled
depend on a browsing context
2016-05-01 14:06:02 +02:00
Keith Yeung
3110647852
Make IFrameLoadInfo take an Option<LoadData> instead of Option<Url>
2016-04-30 21:43:01 -04:00
Keith Yeung
16361086d9
Add planned navigation to submit as entity body ( fixes #9829 )
2016-04-30 21:42:57 -04:00
Prabhjyot Singh Sodhi
cfde40e225
Support form submission of multipart/form-data
2016-04-30 21:42:50 -04:00
Matt Brubeck
1e23d90631
Upgrade to bitflags 0.6.0 and selectors 0.5.6
...
Types generated by `bitflags!` are now private by default. This PR marks them
`pub` where necessary.
2016-04-30 10:14:03 -07:00
bors-servo
990dd72da7
Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearth
...
Add detail to mozbrowsererror events.
Part of #10334 . Once #10824 lands, we can include the panic reason and backtrace in the error report.
<!-- 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/10837 )
<!-- Reviewable:end -->
2016-04-29 09:18:39 -07:00
bors-servo
ac8406f4ae
Auto merge of #10834 - yoava333:master, r=SimonSapin
...
added support for :read-only and :read-write pseudo-classes
partial fix for https://github.com/servo/servo/issues/10732
It's not a full fix because:
1. there's a bug in wpt-test https://github.com/w3c/web-platform-tests/issues/2889#issuecomment-214144420
2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
3. we don't support contenteditable, which is also possibly :read-write
<!-- 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/10834 )
<!-- Reviewable:end -->
2016-04-29 08:12:18 -07:00
Josh Matthews
bb47f72f25
Support controlling the visibility of WebIDL interfaces via the Pref annotation.
2016-04-29 11:03:15 -04:00
Ms2ger
897be5f6ee
Reduce channel cloning.
2016-04-29 14:55:52 +02:00
Ms2ger
703d018f23
Avoid some clones.
2016-04-29 14:55:49 +02:00
bors-servo
408f9abb7a
Auto merge of #10830 - cjkenn:10743, r=Ms2ger
...
DOMImplementation::createDocument should set content type based on namespace
Set document content type based on the namespace.
Standard: https://dom.spec.whatwg.org/#dom-domimplementation-createdocument
Fixes #10743 .
<!-- 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/10830 )
<!-- Reviewable:end -->
2016-04-28 21:31:30 -07:00
bors-servo
cf121ad8df
Auto merge of #10895 - mbrubeck:byteindex, r=pcwalton
...
Use byte indices instead of char indices for text runs
Replace character indices with UTF-8 byte offsets throughout all code dealing with text runs. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem.
For most code this is just a simple replacement of char indices with byte indices. In a few places like glyph storage and text fragment scanning, it also lets us get rid of code that existed only to map between bytes and chars.
Also includes some related fixes to text shaping, discovered while working on this conversion. See the commit messages for details.
r? @pcwalton
<!-- 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/10895 )
<!-- Reviewable:end -->
2016-04-28 20:22:09 -07:00
cjkenned
d9128fba07
[10743] Add content type to XmlDocument constructor based on namespace
...
[10743] Fix namespace in createDocument test
[10743] Remove test ini file, match returns static strings instead of DOMString.
[10743] Fix arguments to XMLDocument::new
Update failing test
[10743] Add content type to XmlDocument constructor based on namespace
[10743] Fix namespace in createDocument test
[10743] Remove test ini file, match returns static strings instead of DOMString.
[10743] Fix arguments to XMLDocument::new
Update failing test
2016-04-28 20:26:54 -06:00
Matt Brubeck
c4872d9544
Replace range::Range with std::ops::Range in script
2016-04-28 14:54:07 -07:00
Josh Matthews
b8b4be34c0
Stub out readyState and networkState attributes for HTMLMediaElement.
2016-04-28 17:35:29 -04:00
Matt Brubeck
659305fe0a
Use byte indices instead of char indices for text runs
...
Replace character indices with UTF-8 byte offsets throughout the code dealing
with text shaping and breaking. This eliminates a lot of complexity when
converting from one to the other, and interoperates better with the rest of
the Rust ecosystem.
2016-04-28 14:32:14 -07:00
bors-servo
210803b4b2
Auto merge of #10887 - askeing:fix_10374, r=KiChjang
...
Dispatch error event when link elements get invalid response
fix #10374
<!-- 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/10887 )
<!-- Reviewable:end -->
2016-04-28 14:30:04 -07:00