aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Add proof parameter to Promise::new_in_current_compartmentAron Zwaan2019-04-2425-95/+263
|
* Add proof that code is executed in compartmentAron Zwaan2019-04-242-0/+34
|
* Auto merge of #23115 - pylbrecht:measure.blocked.layout.queries, r=jdmbors-servo2019-04-222-2/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | measure blocked layout queries <!-- 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 #19797 <!-- Either: --> - [ ] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23115) <!-- Reviewable:end -->
| * fixup! Measure layout queries blocked by ongoing layoutpylbrecht2019-04-171-1/+1
| |
| * Measure layout queries blocked by ongoing layoutPhilipp Albrecht2019-04-132-2/+26
| |
* | Auto merge of #23006 - aditj:aditj-patch-7, r=jdmbors-servo2019-04-192-1/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added WebDriver DeleteCookies Function <!-- Please describe your changes on the following line: --> This change adds DeleteCookies function of the webdriver crate to the servo webdriver server. See [spec](https://w3c.github.io/webdriver/#delete-all-cookies) --- <!-- 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 part of #8623 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23006) <!-- Reviewable:end -->
| * | Add webdriver deletecookies functionaditj2019-04-192-1/+25
| | |
* | | Auto merge of #23215 - ferjm:decoder.channels, r=jdmbors-servo2019-04-181-1/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep a map between channel position and channel index for decoded audio - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are WPTs for these changes. This should help fixing #22842 (along with https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/183). I couldn't reproduce it locally, so I cannot tell for sure. <!-- 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/23215) <!-- Reviewable:end -->
| * | | Keep a map between channel position and channel index for decoded audioFernando Jiménez Moreno2019-04-171-1/+12
| | | |
* | | | Remove :-servo-case-sensitive-type-attr()Ian Moody2019-04-181-4/+0
| |/ / |/| | | | | | | | | | | | | | | | | | | | No longer needed now that the case-sensitive flag for attributes selectors is supported. Update user-agent CSS sheet to use the standard flag. Fixes #23227
* | | Auto merge of #23216 - ferjm:replay, r=ceyusabors-servo2019-04-171-2/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow replaying media - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] 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/23216) <!-- Reviewable:end -->
| * | | Allow replaying mediaFernando Jiménez Moreno2019-04-171-2/+6
| | | |
* | | | Auto merge of #23187 - krk:nopanic-unminifyjs, r=jdmbors-servo2019-04-161-1/+9
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not unwrap empty unminified_js_dir in HTMLScriptElement.unminify_js. Calling unwrap caused a panic when a directory could not be created. --- <!-- 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 #23031 <!-- 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/23187) <!-- Reviewable:end -->
| * | | Clarify warning.Josh Matthews2019-04-161-1/+1
| | | |
| * | | Do not unwrap empty unminified_js_dir in HTMLScriptElement.unminify_js.krk2019-04-101-1/+9
| |/ /
* | | Auto merge of #23153 - 5h1rU:xmlserializer-serializetostring-panics, r=jdmbors-servo2019-04-151-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make serializeToString serialize document nodes correctly <!-- Please describe your changes on the following line: --> This is the fix for ScriptThread panic when `new XMLSerializer().serializeToString(document);` is called. r?@jdm --- <!-- 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 #23130 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23153) <!-- Reviewable:end -->
| * | | Add new XMLSerializer().serializeToString functionalityFelipe Janer2019-04-151-1/+1
| | | |
* | | | Auto merge of #23169 - Manishearth:more-pose, r=jdmbors-servo2019-04-153-12/+70
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some more pose fixes Based on https://github.com/servo/servo/pull/23164 This: - Adds support for position-disabled - Adds approximate support for floor-level - Makes transform.inverse.inverse return the original transform (https://github.com/immersive-web/webxr/issues/576) To support floor-level *properly* we have to decompose the `sitting_to_standing_transform` matrix. I'll have to add decomposition to euclid to do this, sadly. It may be possible to reuse the decomposition code in servo's style crate, but there's a chance that that's written with column vector style, given that it reflects the CSS transforms spec, which is also written in column vector style. Ugh. r? @asajeffrey <!-- 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/23169) <!-- Reviewable:end -->
| * | | | Add some math verifying relationship between get_viewer_pose and get_poseManish Goregaokar2019-04-082-6/+28
| | | | |
| * | | | Add rough support for floor-level spaceManish Goregaokar2019-04-081-8/+14
| | | | |
| * | | | Support position-disabled spacesManish Goregaokar2019-04-051-8/+35
| | | | |
| * | | | Set transform.inverse.inverse == transformManish Goregaokar2019-04-051-2/+5
| | | | | | | | | | | | | | | | | | | | https://github.com/immersive-web/webxr/issues/576
* | | | | Move media backend initialization to process startup.Josh Matthews2019-04-155-10/+0
| | | | |
* | | | | Auto merge of #23157 - ferjm:gum.playback, r=Manishearthbors-servo2019-04-134-53/+95
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MediaStream playback through audio and video elements - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] 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/23157) <!-- Reviewable:end -->
| * | | | Do not tie media element 'muted' state change to player availabilityFernando Jiménez Moreno2019-04-111-9/+11
| | | | |
| * | | | MediaStream playback through audio and video elementsFernando Jiménez Moreno2019-04-104-61/+101
| | | | |
* | | | | Auto merge of #23192 - jackxbritton:issue-23134, r=jdmbors-servo2019-04-121-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement DocumentFragment XML serialization. When serializing a DocumentFragment node, we should follow [this guy](https://w3c.github.io/DOM-Parsing/#dfn-xml-serializing-a-documentfragment-node) and serialize the node's immediate children. This commit makes that change. --- <!-- 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 #23134 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ well, they probably do, but I don't know how to do that and could use some help. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23192) <!-- Reviewable:end -->
| * | | | | Implement DocumentFragment XML serialization.Jack Britton2019-04-121-1/+2
| | |_|/ / | |/| | |
* | | | | Make use of RefCell::try_borrow_unguardedAnthony Ramine2019-04-123-3/+4
| |_|_|/ |/| | |
* | | | style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-121-0/+1
| | | |
* | | | Auto merge of #23183 - krk:fix-23144, r=asajeffreybors-servo2019-04-111-2/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace panic with warn in DocumentLoader.finish_load. Fix panic on broken script URL with an onerror handler that rewrites the document. <!-- 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 #23144 <!-- 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/23183) <!-- Reviewable:end -->
| * | | | Replace panic with warn in DocumentLoader.finish_load.krk2019-04-091-2/+6
| |/ / / | | | | | | | | | | | | | | | | Fix panic on broken script URL with an onerror handler that rewrites the document.
* / / / Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-1018-182/+151
|/ / /
* | | Auto merge of #23158 - BartGitHub:promise-constructor, r=jdmbors-servo2019-04-0625-51/+98
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Promise constructor In this PR, measures are taken that prevent the ```Promise::new``` constructor from being used outside a compartment. --- <!-- 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 #22982 (GitHub issue number if applicable) <!-- Either: --> - [x] These changes do not require tests because no new functionality is added. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23158) <!-- Reviewable:end -->
| * | Fix formatting issuesAron Zwaan2019-04-032-2/+2
| | |
| * | Add new consructor with &JSAutoCompartment parameterAron Zwaan2019-04-031-0/+5
| | |
| * | Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-0325-51/+93
| | |
* | | Auto merge of #23164 - Manishearth:getpose, r=asajeffreybors-servo2019-04-057-39/+125
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add XRFrame.getPose() I think I've figured out the model of poses, waiting on Nell for confirmation. Basically, `getViewerPose(p)` is equivalent to `getPose(source=viewerSpace, relative_to=p)` The eye-level space, for example, is stationary and stuck to the origin. The position-disabled and identity spaces somewhat counterintuitively follow you around (and appear to be stationary from `getViewerPose()` but not `getPose()`. The incorrect mental model kinda "works" when looking at only `getViewerPose()`, but we need to figure it out for `getPose()`. Todo (may add to this PR, but probably not) - implement `XRSession.viewerSpace` - implement position-disabled - implement floor-level (hard to test without a 6dof device) r? @asajeffrey <!-- 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/23164) <!-- Reviewable:end -->
| * | | Add XRSession.viewerSpaceManish Goregaokar2019-04-043-3/+21
| | | |
| * | | Add XRFrame.getPose()Manish Goregaokar2019-04-042-0/+18
| | | |
| * | | Validate spaces passed to getViewerPose()Manish Goregaokar2019-04-043-5/+16
| | | |
| * | | Add proper get_pose for XRSpacesManish Goregaokar2019-04-043-25/+53
| | | |
| * | | Rename incorrectly-named get_pose methodsManish Goregaokar2019-04-043-10/+21
| | | |
* | | | Auto merge of #23143 - CYBAI:remove-compound-microtasks, r=jdmbors-servo2019-04-052-15/+11
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove compound microtasks We handled compound microtasks as microtasks so, basically, we only need to remove the naming of `compound`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23140 - [x] These changes do not require tests because the updated spec is more about editorial. <!-- 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/23143) <!-- Reviewable:end -->
| * | | Remove compound microtasksCYBAI2019-03-312-15/+11
| | | | | | | | | | | | | | | | | | | | We handled compound microtasks as microtasks so, basically, we only need to remove the naming of `compound`.
* | | | Auto merge of #23145 - pylbrecht:performance.resource.timing, r=jdmbors-servo2019-04-042-2/+7
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add connectEnd attribute to PerformanceResourceTiming interface <!-- 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 #21262 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23145) <!-- Reviewable:end -->
| * | | Add connectEnd attribute to PerformanceResourceTiming interfacepylbrecht2019-04-042-2/+7
| | | |
* | | | Remove viewMatrixManish Goregaokar2019-04-032-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | Users are supposed to use `view.transform.inverse.matrix` The view matrix was incorrect anyway, we had forgotten to invert it, but that was okay since we transposed it by accident (due to euclid's use of the row-vector convention), and for 3DOF devices these transforms are mostly rotations so transposing instead of inverting doesn't lead to visible effects.
* | | | Add XRRigidTransform.matrixManish Goregaokar2019-04-032-1/+18
| | | |
* | | | Add XRView.transformManish Goregaokar2019-04-033-16/+21
| | | |