aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Auto merge of #13351 - servo:rustup, r=Ms2gerbors-servo2016-09-221-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Cargo and Rust <!-- 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/13351) <!-- Reviewable:end -->
| * | | Silence a warning in ExtendableEvent::WaitUntilAnthony Ramine2016-09-211-1/+1
| | | |
* | | | implement WebGLRenderingContext::isEnabledOfek2016-09-222-17/+36
| |_|/ |/| |
* | | Auto merge of #13333 - splav:JS-setters-fix#13327, r=jdmbors-servo2016-09-221-13/+7
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix JS IndexedGetter and NamedSetter bindings generation <!-- Please describe your changes on the following line: --> Fix JS IndexedGetter and NamedSetter bindings generation. --- <!-- 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 #13327 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the test will be in PR for #13129 as currently these setters are used by nobody. <!-- 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/13333) <!-- Reviewable:end -->
| * | fix JS IndexedGetter and NamedSetter bindings generationAlexandrov Sergey2016-09-201-13/+7
| | |
* | | Add FetchMetadata and update corresponding methodsKeith Yeung2016-09-212-10/+20
| | |
* | | Use fetch infrastructure to load external scriptsKeith Yeung2016-09-211-18/+55
| | |
* | | Add fetch_async to PendingAsyncLoad, DocumentLoader and DocumentKeith Yeung2016-09-211-1/+10
| | |
* | | Implement default values for RequestInitKeith Yeung2016-09-211-0/+1
| | |
* | | Fix incorrect indentationKeith Yeung2016-09-211-27/+33
| | |
* | | Add crossorigin attribute and implement step 14 of prepare a scriptKeith Yeung2016-09-212-1/+30
| | | | | | | | | | | | Add WPT test for HTMLScriptElement crossOrigin IDL attribute
* | | Update step annotations for prepare a scriptKeith Yeung2016-09-211-1/+1
| | |
* | | Auto merge of #13332 - servo:mozmap, r=jdmbors-servo2016-09-216-54/+254
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the MozMap type. Fixes #13144. <!-- 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/13332) <!-- Reviewable:end -->
| * | | Implement the MozMap type.Ms2ger2016-09-216-7/+207
| | | | | | | | | | | | | | | | Fixes #13144.
| * | | Introduce wrapInNativeContainerType.Ms2ger2016-09-211-3/+12
| | | |
| * | | Use innerContainerType in getConversionConfigForType.Ms2ger2016-09-211-1/+1
| | | |
| * | | Rename innerSequenceType to innerContainerType.Ms2ger2016-09-211-4/+4
| | | |
| * | | Handle unsupported types better in getUnionTypeTemplateVars.Ms2ger2016-09-211-13/+1
| | | |
| * | | Improve handling of ConversionResult::Failure in unions.Ms2ger2016-09-211-21/+19
| | | |
| * | | Improve jsid_to_str's name and documentation.Ms2ger2016-09-212-5/+10
| | |/ | |/|
* / | Implement minlength for text inputsTaryn Hill2016-09-213-4/+32
|/ /
* | Auto merge of #13309 - anholt:webgl-fbo-prep, r=emiliobors-servo2016-09-202-1/+68
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: FBO support preparation <!-- Please describe your changes on the following line: --> Sending this PR now so that we can get the webrender patches merged. This is prep for the webgl-fbo series, with one small fix for some conformance tests. --- <!-- 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/13309) <!-- Reviewable:end -->
| * | webgl: Do validation that the framebuffer is complete for FBO operations.Eric Anholt2016-09-212-0/+63
| | | | | | | | | | | | | | | Given that we can't make a complete FBO yet, just return false from the status check.
| * | webgl: Don't forget update WebGL's texture binding on unbind.Eric Anholt2016-09-211-0/+1
| | | | | | | | | | | | | | | This doesn't appear to fix any testcases, but I noticed it when fixing renderbuffers.
| * | webgl: Don't forget to update the WebGL context's RB binding.Eric Anholt2016-09-211-1/+3
| | | | | | | | | | | | | | | We need to track the RB in the DOM context for getParameter(gl.RENDERBUFFER_BINDING), among others.
| * | webgl: Update the match for WebGLError's new InvalidFramebufferOperation.Eric Anholt2016-09-211-0/+1
| | |
* | | Bring referrer policy delivery to <a> and <link> via rel attributeYing-Ruei Liang(KK)2016-09-207-28/+38
|/ /
* | Replace current session entry for reloadsConnor Brewster2016-09-195-11/+13
| |
* | Auto merge of #13306 - Jenselme:13247-decode-utf8-with-utf8-lossy, r=Ms2gerbors-servo2016-09-191-7/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode UTF-8 with from_utf8_lossy in DedicatedWorkerGlobalScope <!-- 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 #13247 <!-- Either: --> - [X] There are tests for these changes: `./mach test-wpt /workers/semantics/encodings/004.worker` passes <!-- 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/13306) <!-- Reviewable:end -->
| * | Decode UTF-8 with from_utf8_lossy in DedicatedWorkerGlobalScopeJulien Enselme2016-09-191-7/+7
| | |
* | | Fix my typo on commit. Rest of the fixes will be here soon.Arthur Marble2016-09-181-4/+4
| | |
* | | Made fixes for PR.Arthur Marble2016-09-1812-108/+108
| | |
* | | One last refactoring before fixingArthur Marble2016-09-181-1/+1
| | |
* | | Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-1885-467/+467
| | |