aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #13461 - servo:media, r=Manishearthbors-servo2016-09-301-1/+3
|\ | | | | | | | | | | | | | | Pass the correct attribute to handle_stylesheet_url. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13461) <!-- Reviewable:end -->
| * Pass the correct attribute to handle_stylesheet_url.Ms2ger2016-09-271-1/+3
| |
* | Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emiliobors-servo2016-09-291-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix codegen for iterable's forEach method <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13451 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13508) <!-- Reviewable:end -->
| * | Fix codegen for iterable's forEach methodTill Schneidereit2016-09-291-1/+1
| | | | | | | | | | | | | | | | | | The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451
* | | Implement the Fetch methodJeena Lee2016-09-297-1/+93
| | |
* | | Auto merge of #13345 - malisas:malisa-bodyAPI, r=jdmbors-servo2016-09-295-24/+155
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement Body for dom::Response and dom::Request <!-- Please describe your changes on the following line: --> This PR adds dom::Response and dom::Request's `Text()`, `Blob()`, `Json()`, and (part of the) `FormData()` functions, part of the [Body mixin](https://fetch.spec.whatwg.org/#body). The corresponding tests have also been updated as passing. @jeenalee also contributed to this PR, primarily the `Blob()`, `Json()`, and `FormData()` implementations. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13345) <!-- Reviewable:end -->
| * | | impl Body mixin for dom::Response and dom::RequestMalisa Smith2016-09-285-24/+155
| | | |
* | | | Auto merge of #13475 - servo:disable-eventsource, r=Manishearthbors-servo2016-09-281-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable EventSource until it is fully implemented. This also causes a number of tests that currently time out to fail quickly. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13475) <!-- Reviewable:end -->
| * | | | Disable EventSource until it is fully implemented.Ms2ger2016-09-281-1/+2
| | | | | | | | | | | | | | | | | | | | This also causes a number of tests that currently time out to fail quickly.
* | | | | Auto merge of #13431 - nox:webidl, r=Ms2gerbors-servo2016-09-2814-531/+150
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the WebIDL parser <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13431) <!-- Reviewable:end -->
| * | | | Update the WebIDL parserAnthony Ramine2016-09-2613-531/+127
| | | | |
| * | | | Properly keep track of our union typedef support in WebIDL.pyAnthony Ramine2016-09-262-0/+23
| |/ / /
* | | | Auto merge of #13382 - glennw:headless, r=larsbergstrombors-servo2016-09-272-14/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add OSMesa headless mode, run WPT against Webrender. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13382) <!-- Reviewable:end -->
| * | | | Add OSMesa headless mode, run WPT against Webrender, update tests.Glenn Watson2016-09-282-14/+0
| | |/ / | |/| |
* | | | Auto merge of #13358 - rjgoldsborough:form-action-url-11219, r=mbrubeckbors-servo2016-09-272-2/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Form action url 11219 First pass at fixing #10580. I've added a new macro that returns a DomString with either the attr val or the doc url. I then made the form element use that macro on the action attribute. I also added a test that contains an iframe with a form and base url that submits to a page in a resources directory. I made all these changes based on https://github.com/servo/servo/pull/11219#issuecomment-223318881. The only thing I'm confused on is how to change step 8. It looks to just be getting the action so I'm wondering if I need to change either step 9 or 10 instead? --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10580 (github issue number if applicable). - [X] There are tests for these changes OR using that macro with the form action, making the form submit process use base url, adding tests. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13358) <!-- Reviewable:end -->
| * | | | adding macro to return string or url,Jake Goldsborough2016-09-272-2/+22
| | |_|/ | |/| | | | | | | | | | | | | | | | | | using that macro with the form action, making the form submit process use base url, adding tests.
* | | | Auto merge of #13412 - gterzian:failure_if_no_metadata, r=jdmbors-servo2016-09-271-1/+6
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invoke failure steps if there's no metadata Media element network response processing code should invoke failure steps if there's no metadata. Fixes #13375. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13412) <!-- Reviewable:end -->
| * | | checking for metadata in htmlmediaelement::response_completeGregory2016-09-271-1/+6
| |/ / | | | | | | | | | | | | | | | updated test expectations reverting changes to webgl test
* | | Auto merge of #13406 - Mylainos:issue-13377, r=jdmbors-servo2016-09-272-12/+18
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract panic-catching for JS engine callbacks into a separate function All of our generated code for script contains inline code like this: ``` let result = panic::catch_unwind(AssertUnwindSafe(|| { ... }; match result { Ok(result) => result, Err(error) => { store_panic_result(error); return false; } } ``` This PR change it to something like this: ``` wrap_panic(|| { ... }, false) ``` --- - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #13377 - [ ] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13406) <!-- Reviewable:end -->
| * | Issue #13377 Extract panic-catching for JS engine callbacks into aHugo Thiessard2016-09-262-12/+18
| | | | | | | | | | | | separate function
* | | Auto merge of #13422 - SecurityInsanity:master, r=KiChjangbors-servo2016-09-272-1/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Assign throw error on invalid url Step 2 of: https://html.spec.whatwg.org/multipage/browsers.html#dom-location-assign says we should throw an error. This makes it do that. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13420 (github issue number if applicable). - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13422) <!-- Reviewable:end -->
| * | | Make Assign throw error on invalid urlEric Coan2016-09-262-1/+6
| | |/ | |/|
* | | Auto merge of #13405 - ashrko619:textencoder-encoding, r=Ms2gerbors-servo2016-09-262-32/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed support for UTF-16 in TextEncoder <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13231 (github issue number if applicable). <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13405) <!-- Reviewable:end -->
| * | | removed support for UTF-16 in TextEncoderAshwin R2016-09-272-32/+11
| | | |
* | | | implement HTMLOptionsCollection and add related items to HTMLSelectElementAlexandrov Sergey2016-09-266-38/+277
| | | |
* | | | remove link to #5876 due to everything has been fixed in PR #13333Alexandrov Sergey2016-09-261-1/+0
| | | |
* | | | Auto merge of #13397 - aochagavia:dispatch-event, r=Ms2gerbors-servo2016-09-267-17/+45
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return an enum instead of a boolean from dispatch_event Fixes #13196 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13196. - [X] These changes do not require tests because the functionality hasn't changed <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13397) <!-- Reviewable:end -->
| * | | Return an enum instead of a boolean from dispatch_eventAdolfo Ochagavía2016-09-267-17/+45
| | | | | | | | | | | | | | | | Fixes #13196
* | | | Auto merge of #13416 - vigneshsarma:issue-13408, r=jdmbors-servo2016-09-2512-22/+22
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace instances of old ServiceWorker specification URL with new one <!-- Please describe your changes on the following line: --> The old specification URL is https://slightlyoff.github.io/ServiceWorker/spec/service_worker/, which has been replaced by the new one at https://w3c.github.io/ServiceWorker/. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13408 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because all the changes are in commented parts of the code. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> The old specification URL is https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ has been replaced by the new one at https://w3c.github.io/ServiceWorker/. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13416) <!-- Reviewable:end -->
| * | | Replace instances of old ServiceWorker specification URL with new oneVignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ)2016-09-2512-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | The old specification URL is https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ has been replaced by the new one at https://w3c.github.io/ServiceWorker/.
* | | | Auto merge of #13396 - jdm:FormData_iterable, r=jdmbors-servo2016-09-242-7/+38
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added FormData Iterable Implement FormData's iterator Rebased from #13104. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13020 - [X] There are tests for these changes (It adds `./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest/formdata-foreach.html`) Notice: Our `FormData` is implemented by `HashMap` , which is different from [Gecko's array implementation](https://github.com/mozilla/gecko-dev/blob/3c6ff93c8f92d822ab6a2ae42f55a9f837d62fe9/dom/base/FormData.h#L160). So our `FormData`'s iterator order is different from Gecko's, as there is no way to keep our key's original insertion order. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13396) <!-- Reviewable:end -->
| * | | Added FormData IterableChiu-Hsiang Hsu2016-09-232-7/+38
| |/ /
* | | Auto merge of #13361 - Mylainos:issue-13350, r=Wafflespeanutbors-servo2016-09-231-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report tidy error for space after ( <!-- Please describe your changes on the following line: --> Add report in tidy for code which have a space after the `(` like `some_function( argument)` --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13350 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13361) <!-- Reviewable:end -->
| * | Issue #13350 Report tidy error for space after (Hugo Thiessard2016-09-231-1/+1
| | |
* | | use .set_tokenlist_attribute to set rel content attribute in SetRelNikhil Shagrithaya2016-09-231-1/+3
| | | | | | | | | | | | Removed .ini files expecting crashes
* | | Enable OpenEndedDictionary in HeadersJeena Lee2016-09-224-20/+26
| | | | | | | | | | | | Expected wpt results are updated as well.
* | | Auto merge of #12830 - jdm:promises, r=Ms2gerbors-servo2016-09-2216-38/+761
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement promise bindings This implements support for using Promises in WebIDL, executing promise callbacks in batches (equivalent to running all enqueued jobs from a setTimeout(0)), and attaching native callbacks to promise objects. This is the combined work of myself, @dati91, and @mmatyas based on the following prior work in Gecko: * Codegen.py * Promise.webidl * Promise.cpp/Promise.h * PromiseNativeHandler.h This does not implement microtasks per #4283. This allows us to make progress on testing code that requires the use of Promises right now; the microtasks work is more complicated, but also largely orthogonal to implement. Requires https://github.com/servo/mozjs/pull/89, https://github.com/servo/rust-mozjs/pull/287, and https://github.com/servo/rust-mozjs/pull/294. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #4282 - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12830) <!-- Reviewable:end -->
| * | | Remove maybe_ prefix from Promise methods.Josh Matthews2016-09-222-17/+15
| | | |
| * | | Support an equivalent of Trusted<T> for Rc<Promise> objects named ↵Josh Matthews2016-09-225-10/+129
| | | | | | | | | | | | | | | | TrustedPromise.
| * | | Add a simple API to reject promises with DOM error values.Josh Matthews2016-09-224-2/+28
| | | |
| * | | Create meaningful tests for native promise handlers.Josh Matthews2016-09-222-0/+10
| | | |
| * | | Support promises in workers.Josh Matthews2016-09-222-3/+55
| | | |
| * | | Ensure Promise "reflector" is not GCed before the Rust object.Josh Matthews2016-09-223-10/+65
| | | |
| * | | Add integration tests for interacting with promises from native code.Josh Matthews2016-09-222-5/+49
| | | |
| * | | Support native promise callbacks.Josh Matthews2016-09-225-3/+138
| | | |
| * | | Useful APIs for resolving/rejecting from native code.Josh Matthews2016-09-221-0/+18
| | | |
| * | | Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵Mátyás Mustoha2016-09-223-17/+87
| | | | | | | | | | | | | | | | | | | | | | | | batches. Implement native Promise APIs. Add SpiderMonkey hooks for enqueuing promise jobs. Start porting various native Promise APIs.
| * | | Implement binding support for returning and accepting Promises in WebIDL.Josh Matthews2016-09-2210-20/+216
| | | |
* | | | Auto merge of #13066 - mskrzypkows:htmlselect_index, r=KiChjangbors-servo2016-09-222-3/+48
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement indexed access on select elements <!-- Please describe your changes on the following line: --> Added methods for indexed access on select: SetLength, Length, Item, IndexedGetter --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11763 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13066) <!-- Reviewable:end -->
| * | | | Implement indexed access on select elementsMaciej Skrzypkowski2016-09-222-3/+48
| | | | | | | | | | | | | | | refs #11763