Commit Graph

307 Commits

Author SHA1 Message Date
Brandon Fairchild
f43aa653b1 servo: Merge #9193 - Rename fire_simple_event_params to fire_event in eventtarget.rs (from nerith:fire_event); r=KiChjang
Fixes #9180.

Source-Repo: https://github.com/servo/servo
Source-Revision: 083d3e0201772918d040a6eb12e87c03fd443587
2016-01-08 22:04:14 +05:00
Keith Yeung
2ea7bf07be servo: Merge #9029 - Implement EventSource and update test expectations (from KiChjang:event-source); r=jdm
Partial #8925.

Most of the processing model for `EventSource` are unimplemented because we currently don't have a fetch implementation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 238a8786de66344d2dd6855dca25a4d4be6fa949
2016-01-07 00:08:25 +05:00
Corey Farwell
c30e6eaa9c servo: Merge #9136 - HTMLBodyElement 'background' attribute improvements (from frewsxcv:htmlbodyelement-background); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b0053f8b1d26d16fa8bf8eb906a947a8fa291da
2016-01-03 10:30:49 +05:00
Nikki
9b1d41f865 servo: Merge #9082 - Updated WebSocket buffered_amount to match change to html specification (from nikkisquared:websocket_bufferedamount); r=eefriedman
The size of WebSocket's buffered_amount was changed[1] after an issue I opened, which I found while working on WebSocket previously[2]. @jdm suggested I make a PR updating Servo reflecting this, and so I have! As always, I'd like to hear any feedback on anything I can do to improve this.

[1] https://github.com/whatwg/html/issues/296
[2] https://github.com/servo/servo/pull/8218#issuecomment-152021737 point 5)

Source-Repo: https://github.com/servo/servo
Source-Revision: 6844adbe2dd2730cbc13df0a78736386501cad02
2016-01-03 08:13:55 +05:00
Keith Yeung
a5f4cc4154 servo: Merge #9049 - Refactor FormData code to match updated spec (from KiChjang:form-data-refactor); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 7a5522a26346f530c24a80ab241f0ece5df1e4d1
2016-01-01 21:07:09 +05:00
Josh Matthews
324bba3382 servo: Merge #9105 - Implement support for modifying the type attribute of <button> (from jdm:buttoneventsintermittent); r=nox
https://github.com/servo/servo/pull/9100

Source-Repo: https://github.com/servo/servo
Source-Revision: 77b23d1bb97555b08e6bf0cc7a12482fd84c0a43
2015-12-31 15:26:16 +05:00
Corey Farwell
5996c2a440 servo: Merge #9054 - Implement non-zero dimension attribute parsing (from frewsxcv:parse-non-zero-dimension); r=eefriedman
Fixes #8445

The only attributes I found that we have implemented that uses non-zero
dimenion attributes:

* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`

I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d52170f351e46718c5ea1a811a7d4461eaa3751
2015-12-30 04:56:56 +05:00
vectorijk
a0ecf14a5e servo: Merge #9036 - Implement Document charset (from KiChjang:document-charset); r=Ms2ger
Rebase of #7966.

Fixes #7718.

Source-Repo: https://github.com/servo/servo
Source-Revision: df087cc6cf4d97c5cc93befec922b38b56e6def7
2015-12-21 21:35:02 +05:00
Simon Martin
ad7cf2f6d6 servo: Merge #8863 - Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert() (from simartin:issue_8352); r=jdm
Fixes https://github.com/servo/servo/issues/8352

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057
2015-12-21 01:58:32 +05:00
k-cross
df09ef49a0 servo: Merge #9025 - touchlist dom api #8225 (from k-cross:master); r=nox
Sorry for the wait, I just finished my finals.

Fixes #8225

Source-Repo: https://github.com/servo/servo
Source-Revision: 5b91daa92378d3b9fe80b2fc8f8072085d4949b3
2015-12-21 00:49:41 +05:00
Guillaume Gomez
7cfdfc72a2 servo: Merge #8882 - Add DOMQuad element (from GuillaumeGomez:dom_quad); r=nox
cc  @nox

Part of #8821

Source-Repo: https://github.com/servo/servo
Source-Revision: 6ba4ef22fa00616dc530f6b84e05416fb6d3477e
2015-12-18 23:07:12 +05:00
Anthony Ramine
1ec127f5ff servo: Merge #8993 - Slightly reduce the output of codegen (from nox:small-codegen-slimming); r=Ms2ger
Interfaces which we know are never instantiated can generate less code.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8dc4b8dcb927ba8f61b99d869efb688903504c07
2015-12-18 06:05:15 +05:00
jmr0
78d7bb6514 servo: Merge #8825 - adding initial support for websocket subprotocol negotation (from jmr0:master); r=jdm
Addresses #8177

I also noticed some bugs/gaps (and at least one of my TODO's can be an E-Easy)

cc @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 63923bc7c923587652fb966f1f45009e483b1ebf
2015-12-18 04:53:15 +05:00
Keith Yeung
e720bfaf7d servo: Merge #8747 - Implement basic framework for static and interactive validation on forms (from KiChjang:form-interactive-validation); r=Manishearth
This came along when I was trying to do #3648. I was about to do form validation as well, but then I saw it was actually intended to be a student project. Hopefully I didn't step on too many toes on this one; I did leave most of the important bits out (the fun bits I believe, e.g. interactive validation doesn't actually interactively validate anything right now).

Source-Repo: https://github.com/servo/servo
Source-Revision: d9bf1ba616b6b30f800aaa388745c2fcda9e784e
2015-12-17 05:11:45 +05:00
David Zbarsky
b87f0bbe9a servo: Merge #8997 - Implement WebGL scissor method (from dzbarsky:scissor); r=dzbarsky
Source-Repo: https://github.com/servo/servo
Source-Revision: 1695c0ad27e4c9c062e26a5db154521e400ecbd9
2015-12-16 10:35:32 +05:00
Guillaume Gomez
19241a1d95 servo: Merge #8986 - Fix invalid returned value for dictionary types (from GuillaumeGomez:patch-2); r=nox
part of #8882

cc @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 432087c0ea6a5a419273b448eec62eb7549ba242
2015-12-15 22:27:58 +05:00
John DeSilva
2d0ab8c0d7 servo: Merge #8963 - Make Event's isTrusted attribute unforgeable (from Aesthetikx:unforgeable-istrusted); r=jdm
Three failure expectations were able to be removed from `tests/wpt/web-platform-tests/dom/interfaces.html`. This is my first commit to servo and my first time with rust, hopefully I didn't overlook anything.

Fixes #8956.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6032f8225b765dd5a0645118d7b43fa5913f9431
2015-12-14 17:13:15 +05:00
David Zbarsky
e8b98cf1e6 servo: Merge #8761 - Implement some more WebGL functions (from dzbarsky:gl_functions); r=dzbarsky
r? @ecoal95

Source-Repo: https://github.com/servo/servo
Source-Revision: 89d9aad1e1e3cd93b12088f09aad1193e7298ba4
2015-12-14 07:55:20 +05:00
Jitendra Jain
0664f69e71 servo: Merge #8828 - M1503/M1504 : Support for missing XMLHttpRequestAPIs and Document response handling (from Ronak6892:docResp); r=eefriedman
Hi,
This is for NCSU Fall 15 project M1503 and M1504:
M1503: Integrate XML Parser (Step 3 of 4): Support for Document response handling and calling the appropriate parser.
M1504: Support for missing XMLHttpRequest APIs
https://github.com/servo/servo/wiki/Integrate-xml5ever
It includes changes to handle document response for XMLHttpRequest.
Kindly review.

Source-Repo: https://github.com/servo/servo
Source-Revision: bd8af8e2349c0cc379ba958ef322d41e1de1f668
2015-12-10 08:30:19 +05:00
David Zbarsky
114af9bcc3 servo: Merge #8740 - Implement IsPointInPath for Canvas (from dzbarsky:ispointinpath); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 98972d04342602610a7465de7b0639e2b9c1dcf3
2015-12-06 06:49:23 +05:00
Corey Farwell
3d1c907319 servo: Merge #8810 - Fix broken WebIDL spec link (from frewsxcv:webidl-spec-link); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 261ce112972d5bb881513a94237be87bbbf4a212
2015-12-04 06:45:46 +05:00
Simon Martin
6f3f4b1f6f servo: Merge #8712 - Issue #8462: Add support for BufferSubData, CompressedTexImage2D and CompressedSubTexImage2D and reenable individual webgl WPT tests (from simartin:issue_8462); r=ecoal95
Fixes https://github.com/servo/servo/issues/8462

Source-Repo: https://github.com/servo/servo
Source-Revision: 5ee6fe120d43506e263cb4482b3a468d967a8386
2015-12-04 00:37:14 +05:00
Anthony Ramine
2671537828 servo: Merge #7988 - Implement [Unforgeable] (from nox:unforgeable); r=jdm
This is mostly stolen from Gecko. As there, we define the unforgeable members
on an object stored in the slots of the prototype object. They are then copied
onto instance objects when they are instantiated. It should be noted that
proxy objects see their unforgeable memebers defined on their expando object.

Unforgeable attributes aren't properly inherited in codegen (in a similar
fashion as getters and setters as filed in #5875) and require to be redefined
in derived interfaces. Fortunately, there are currently no such interfaces.

No unforgeable members can be included into the TestBinding interfaces for good
measure because they are not compatible with setters.

Source-Repo: https://github.com/servo/servo
Source-Revision: 20df7fb7c82a5501342ac85278294e4bcb5b1ab7
2015-12-03 10:33:05 +05:00
Sam Gibson
b846355dca servo: Merge #7323 - Adds support for input element's maxlength attr (from samfoo:input-maxlength); r=jdm
This implements maxlength [as described by whatwg](https://html.spec.whatwg.org/multipage/forms.html#dom-input-maxlength) for input elements.

Remaining work:
* WPT test - I have no idea how to write a WPT for simulating user input. Webdriver? Open to suggestions here.
* Support for textarea (should be trivial, probably worth filing another issue)

servo/servo#7320
servo/servo#7004

Source-Repo: https://github.com/servo/servo
Source-Revision: fc3e950052b6cc580dc32fc03d978fad97b49ba8
2015-12-03 09:58:24 +05:00
Corey Farwell
1fdbae2718 servo: Merge #8714 - Implement attribute 'fgColor' on 'document' (from frewsxcv:body-fgcolor); r=Ms2ger
The 'text' attribute was implemented on `<body>` in #7841

Source-Repo: https://github.com/servo/servo
Source-Revision: 65108348aa543774ade163b25836018fa8f6c00f
2015-12-01 21:10:58 +05:00
Jason Schein
ce64d78802 servo: Merge #8735 - Make OnErrorEventHandlerNonNull return 'any' instead of 'boolean' (from echochamber:OnErrorEventHandlerNonNull-return-any); r=KiChjang
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

Source-Repo: https://github.com/servo/servo
Source-Revision: b737e4e0fa10d3afc87f5217852caee1bfda4f5e
2015-11-29 14:30:19 +05:00
David Zbarsky
150bf1ff8a servo: Merge #8729 - Update Canvas webIDL to spec (from dzbarsky:canvas_webidl); r=dzbarsky
Source-Repo: https://github.com/servo/servo
Source-Revision: 2d164f2bebb63aa35269a4c3355beea3bbdcff01
2015-11-29 09:02:28 +05:00
Corey Farwell
8fbe575b22 servo: Merge #8722 - Add tracking issues for body/document attributes (from frewsxcv:tracking-issues); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 2dab0e15845f3ae625ca4b89facd62c2f2adb8b3
2015-11-29 04:06:17 +05:00
Guillaume Gomez
ffbd83be65 servo: Merge #8675 - Add XMLDocument object (from GuillaumeGomez:master); r=nox
Fixes #8000

(Still working on it)

Source-Repo: https://github.com/servo/servo
Source-Revision: 99223656fbf6cade8c41d161a9e61a39f58ec796
2015-11-27 18:59:04 +05:00
David Zbarsky
bb672ef870 servo: Merge #6826 - Implement Range#deleteContents (from dzbarsky:deletecontents); r=jdm
Sadly calling ExtractContents and discarding the result doesn't do the right thing.
It may be worth having a CutContents method that takes an `Option<DocumentFragment>` and switch the behavior based on it, to share the code between DeleteContents and ExtractContents, like what Gecko does.  Maybe a followup.

Source-Repo: https://github.com/servo/servo
Source-Revision: e7b19249489eff7a7fd49bf458ee7bd681f8ad13
2015-11-25 19:25:02 +05:00
Tom Schuster
8a65c3f959 servo: Merge #8655 - Implement document.domain getter (from jdm:domain); r=jdm
Rebased from #6840 + test fixes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0905088e83819ada426ee6124f8c7e2d8978ea8b
2015-11-24 05:31:13 +05:00
Corey Farwell
2dee8beb62 servo: Merge #8567 - Add tracking issue for HTMLFormControlsCollection (from frewsxcv:tracking-issue-HTMLFormControlsCollection); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 71dbf99e4e4cb9e43554b9a00f76d2c61995888b
2015-11-18 02:12:56 +05:00
Corey Farwell
ce9719cac4 servo: Merge #8526 - Fix parse_length 0 values, implement <hr> 'width' (from frewsxcv:parse-length); r=eefriedman
Follow-up to https://github.com/servo/servo/issues/8424

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ef0a9a79dffcde41cdd6081ef79a0f0593b5104
2015-11-15 03:00:46 +05:00
Paul Rouget
0a62891bdd servo: Merge #8449 - mozbrowsericonchange event (Browser API) (from paulrouget:favicon); r=jdm
fixes #8347

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f076c628bffa9d95dca61e003adb9ab3ab0a316
2015-11-14 19:24:03 +05:00
Greg Guthe
3b37407de6 servo: Merge #7242 - Perf timing dom props (from g-k:perf-timing-dom-props); r=jdm
I think this is closer to what https://github.com/servo/servo/issues/7045 describes, but it panics trying to load a page (trace: https://gist.github.com/g-k/a9911467889cdb6fdbf9) and all reftests fail.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7de8b0a7ff2038f9fb643141d8759f40fb6ef093
2015-11-14 10:56:23 +05:00
Corey Farwell
43a8a7f7fa servo: Merge #8505 - Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement' (from frewsxcv:html-table-cell-element-bgcolor-idl-attribute); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f078f8fdf4157b4e57cef35eba00419c9c15464d
2015-11-13 14:37:53 +05:00
Anthony Ramine
aa95b1efa2 servo: Merge #8147 - Implement weak-referenceable JS-managed objects (from nox:weakref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e63b1e83d4acd272cdf293292f2a496455405098
2015-11-13 05:52:40 +05:00
Anthony Ramine
de9439de24 servo: Merge #8498 - Properly handle variadic arguments preceded by default values (from nox:fix-variadic-and-default-arguments); r=jdm
I broke that in #8197.

Source-Repo: https://github.com/servo/servo
Source-Revision: c44c73aa00ced6235266bd692833e22018f31138
2015-11-13 03:52:11 +05:00
Josh Matthews
bd9c531662 servo: Merge #8430 - Invoke specialized callback behaviour for OnErrorEventHandler (from jdm:errorhandler); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: fafc280179ddafab878dd261121cee17ba3b921c
2015-11-13 03:24:00 +05:00
Emilio Cobos Álvarez
bb37511847 servo: Merge #8412 - Add WebIDL sequence return values (from emilio:webidl-sequence-return); r=jdm
And use it for `WebGLRenderingContext::getSupportedExtensions`.
Part of #544

Source-Repo: https://github.com/servo/servo
Source-Revision: 12f6ba29a74029fa8c83cc7274181d441e1e52dd
2015-11-11 22:45:15 +05:00
Anthony Ramine
3ab3bf76c2 servo: Merge #8197 - Support variadic interface arguments (fixes #8159) (from nox:variadic-interface-argument); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: f03a8261c58f650eda789b1f9f5363af6e15f59c
2015-11-11 19:02:26 +05:00
Corey Farwell
7a69d816ad servo: Merge #8447 - Implement 'width' IDL attribute on <table> (from frewsxcv:htmltableelement-width-idl-attribute); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 81f094b129f4df5f8287eb6613108b673211a546
2015-11-10 12:24:30 +05:00
Corey Farwell
4dddf85b6a servo: Merge #8419 - Implement <hr> 'color' attribute (from frewsxcv:html-hr-element-color-attribute); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 3780fb7fe02ed66bd391421a0c5506b5635279dd
2015-11-09 04:58:51 +05:00
Corey Farwell
f0750533d8 servo: Merge #8389 - Add ElementContentEditable WebIDL interface (from frewsxcv:ElementContentEditable); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 440d5b5d9b043bf1964e0a0f4b8a2404cac97a2f
2015-11-07 15:13:30 +05:00
Jitendra Jain
ec0396fea1 servo: Merge #8182 - M1504: Implement support for missing XMLHttpRequest APIs (from jitendra29:overrideMimeType); r=eefriedman
We have completed the initial steps for "Implement support for missing XMLHttpRequest APIs"

* Implemented overrideMimeType according to XHR specifications
* Updated the test expectations

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fea6d2e46dd917f16a5f1ec0f6484e8164c7a3a
2015-11-06 08:31:33 +05:00
Nikki
7808254b4d servo: Merge #8218 - #8213: Implement Blob variant of WebSocket.send (from nikkisquared:master); r=eefriedman
I'm working on resolving https://github.com/servo/servo/issues/8213 as per the spec online and feedback in the servo channel. Note that currently I cannot build (and thus test) my code, so this is a bit of a rough first draft. I'd still like feedback on my progress, and I hope that there is another way for my code to be tested.

Source-Repo: https://github.com/servo/servo
Source-Revision: 021f441d24893861d45fec0cef7ed88dc9e6543a
2015-11-05 09:54:27 +05:00
jsharda
81f97290d9 servo: Merge #8278 - M1503: Integrate XML5 parser (from Ronak6892:master); r=eefriedman
Hi,

This is for NCSU fall 15 project for Mozilla.

We have included changes for initial steps in this pull request.
https://github.com/servo/servo/wiki/Integrate-xml5ever

Kindly review !

Source-Repo: https://github.com/servo/servo
Source-Revision: 65a1a28860ac8858a02be6d26b262a61d040beb1
2015-11-05 08:42:44 +05:00
Corey Farwell
86eaa55e95 servo: Merge #7965 - Implement 'labels' attribute on 'labelable elements' (from frewsxcv:labelable-elements-label-attribute); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 0e70a1f8a88fb1962e4ada447479b4228d09d724
2015-11-01 20:21:18 +05:00
Ms2ger
d7ec52bd66 servo: Merge #8267 - Various improvements (from Ms2ger:cleanup); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 1dfc0481efd4687658ab34e68c883caeadd8b20f
2015-10-30 23:25:34 +05:00
David Zbarsky
edecb76454 servo: Merge #8200 - Implement HTMLCanvasElement#toDataURL (from dzbarsky:canvas_todata); r=glennw
Confirmed that dumping the output of toDataUrl on toDataURL.png.primarycolours.html gives the same results as Firefox (including padding)

Source-Repo: https://github.com/servo/servo
Source-Revision: 4a4dda38969d5f7efdfc1e28e04721302552195a
2015-10-26 23:29:04 -05:00