aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Auto merge of #27282 - camelid:rc-domstring, r=jdmbors-servo2020-07-171-10/+14
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `Rc` instead of cloning the `DOMString` <!-- Please describe your changes on the following line: --> I changed the `text` field of `ScriptOrigin` from a `DOMString` to an `Rc<DOMString>`. Then I updated all the related code to work with an `Rc`. --- <!-- 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 #27254 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because this doesn't introduce new code and should only need to be checked by the compiler <!-- 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. -->
| * | | | One fewer `Rc::clone()`Camelid2020-07-161-1/+1
| | | | |
| * | | | Fewer clonesCamelid2020-07-161-2/+4
| | | | |
| * | | | Use `Rc` instead of cloning the `DOMString`Camelid2020-07-141-10/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, I changed the `text` field of `ScriptOrigin` from a `DOMString` to an `Rc<DOMString>`. Then I updated all the related code to work with an `Rc`. This is just a first pass to get the code to compile. There are probably more things I can do that will improve the code and further reduce cloning.
* | | | Auto merge of #27265 - jdm:hubs-stubs2, r=ferjmbors-servo2020-07-159-4/+236
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Add stubs for HTMLCanvasElement.captureStream and WebRTC transceiver APIs These stubs are hidden by default and only exist to allow getting past the relevant code that invokes them on hubs.mozilla.org.
| * | | | dom: Add WebRTC transceiver stubs.Josh Matthews2020-07-147-4/+216
| | | | |
| * | | | dom: Add stub implementation for HTMLCanvasElement.captureStream.Josh Matthews2020-07-142-0/+20
| | | | |
* | | | | Auto merge of #27266 - jdm:hubs-stubs3, r=Manishearthbors-servo2020-07-142-1/+21
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | Hide Window extension methods by default and add helper Window.js_backtrace method Fixes #26858.
| * | | | dom: Add Window.js_backtrace debugging extension method.Josh Matthews2020-07-142-1/+18
| | | | |
| * | | | dom: Hide debugging extension methods behind a pref.Josh Matthews2020-07-141-0/+3
| |/ / /
* | | | Auto merge of #27264 - jdm:hubs-stubs, r=Manishearthbors-servo2020-07-143-2/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Implement Navigator.languages Fixes #27210.
| * | | | dom: Implement Navigator.languages.Josh Matthews2020-07-143-2/+19
| |/ / /
* | | | Auto merge of #27255 - avr1254:master, r=jdmbors-servo2020-07-142-1/+33
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented HTMLFormElement.relList <!-- Please describe your changes on the following line: --> Updated the tests to reflect addition of rel and relList for HTMLFormElement, as well as porting those code snippets from HTMLAnchorElement. --- <!-- 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 #27252 (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. -->
| * | | Ported Rel, SetRel, and RelList from HTMLAnchorElement into HTMLForElementArjun Ramachandrula2020-07-142-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated tests to reflect rel and relList in HTMLFormElement Added AttrValue as style Added attr Updated outstanding test cases Fixed formatting. Hopefully this time works Implemented HTMLFormElement.relList
* | | | Unfocus input when virtual keyboard is dismissedPaul Rouget2020-07-131-0/+7
| |/ / |/| |
* | | Auto merge of #27232 - asajeffrey:webxr-depth-stencil, r=Manishearthbors-servo2020-07-101-1/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support depth and stencil in webxr <!-- Please describe your changes on the following line: --> Creates a `DEPTH_STENCIL` attachment if one is provided by the webxr device. --- <!-- 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 do not require tests because we don't reftest webxr <!-- 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. -->
| * | | Support depth and stencil in webxrAlan Jeffrey2020-07-101-1/+21
| | | |
* | | | Auto merge of #27235 - asajeffrey:webxr-sessionavailable, r=jdmbors-servo2020-07-102-0/+35
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a sessionavailable event that allows content to enter an XR session without a user gesture <!-- Please describe your changes on the following line: --> This allows servo to implement immersive web apps. https://immersive-web.github.io/webxr/#application-launch --- <!-- 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 do not require tests because I'm not sure we should have a WPT for something this non-standard. <!-- 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. -->
| * | | | Add a sessionavailable event that allows content to enter an XR session ↵Alan Jeffrey2020-07-102-0/+35
| |/ / / | | | | | | | | | | | | without a user gesture
* | | | Auto merge of #27152 - ferjm:mediadevices.enumeratedevices, r=Manishearthbors-servo2020-07-105-2/+147
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mediadevices.enumeratedevices - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #26877
| * | | | Implement MediaDevices.enumerateDevices()Fernando Jiménez Moreno2020-07-105-2/+147
| | |/ / | |/| |
* | | | dom: Generate iterator symbol for interfaces with indexed getters.Josh Matthews2020-07-092-2/+24
| | | |
* | | | dom: Use pref macro for IDL conditional guards.Josh Matthews2020-07-095-6/+6
| |/ / |/| |
* | | Add support for webxr cubemap and spherical 360 renderingAlan Jeffrey2020-07-091-0/+43
|/ /
* | Auto merge of #27088 - jdm:group, r=ferjmbors-servo2020-07-073-59/+75
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Console grouping APIs. These are used by Hubs and other sites we want to run. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #9274 - [x] These changes do not require tests because we can't test stdout content or devtools messages.
| * | Implement Console grouping APIs.Josh Matthews2020-07-063-59/+75
| | |
* | | Auto merge of #27180 - kunalmohan:segfault, r=kvarkbors-servo2020-07-061-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove segfaults in WebGPU threads <!-- Please describe your changes on the following line: --> I have also increased the number of staging buffers for presentation. Segfault occurred at 2 places- 1. RenderPipeline descriptor. 2. BufferMapAsync callback. r?@kvark --- <!-- 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: --> - [ ] 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. -->
| * | | Remove segfaults in WebGPU threadsKunal Mohan2020-07-071-3/+3
| | | |
* | | | Auto merge of #27168 - jdm:gl-fake-context-lost, r=Manishearthbors-servo2020-07-063-2/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add stub isContextLost API. We don't support losing contexts yet, so it's not lying to say that the context is never lost. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27116 - [x] There are tests for these changes
| * | | | webgl: Add stub isContextLost API.Josh Matthews2020-07-033-2/+11
| | | | |
* | | | | Auto merge of #26998 - gterzian:improve_task_cancelling, r=jdmbors-servo2020-07-061-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a stronger atomic guarantee when cancelling tasks <!-- Please describe your changes on the following line: --> In the context of https://github.com/servo/servo/issues/22507 Note that the "other side" of these operations is at https://github.com/servo/servo/blob/0b61cfc3ae803ac0f9deef937f890f83b24c9a35/components/script/task.rs#L102 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] 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. -->
| * | | | | use a stronger atomic guarantee when cancelling tasksGregory Terzian2020-06-201-3/+3
| | | | | |
* | | | | | Auto merge of #27174 - muodov:form-invalid-event-removal, r=gterzianbors-servo2020-07-051-2/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not fire `invalid` event on form elements This is a follow-up to my [previous PR](https://github.com/servo/servo/pull/27100) suggested by @gterzian. `invalid` event on the `<form>` element has been [recently removed](https://github.com/whatwg/html/issues/4626) from the spec. --- <!-- 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 #27133 <!-- Either: --> - [x] [WPT test](https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/historical.window.js) marked as passing
| * | | | | | Remove `invalid` event on a form elementMaxim Tsoy2020-07-051-2/+0
| | | | | | |
* | | | | | | Auto merge of #27173 - kunalmohan:gpu-queue-write, r=kvarkbors-servo2020-07-047-13/+157
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPUQueue write methods and update wgpu-core <!-- Please describe your changes on the following line: --> Implements `GPUQueue.writeBuffer` and `GPUQueue.writeTexture`. r?@kvark --- <!-- 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: --> - [ ] 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. -->
| * | | | | | Implement GPUQueue.writeBuffer and GPUQueue.writeTextureKunal Mohan2020-07-046-12/+156
| | | | | | |
| * | | | | | Update wgpu-core and wgpu-typesKunal Mohan2020-07-041-1/+1
| | |_|/ / / | |/| | | |
* | | | | | Auto merge of #27163 - ↵bors-servo2020-07-042-26/+41
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alarsyo:23053-layout-queries-disconnected-frames-panic, r=jdm Return Option for Window's layout channel <!-- Please describe your changes on the following line: --> `Window::layout_chan()` now returns an `Option<Sender<Msg>>`, returning `None` if the window is dead. FIX #26969 FIX #26429 FIX #21208 FIX #19092 FIX #22559 FIX #22584 FIX #22652 --- <!-- 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 #23053 <!-- 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. --> This is my first contribution, I'm trying to figure things out! This fix passes the test case shown in #23053, however I don't know what the behavior should be in `Document` and `ScriptThread` if `Window::is_alive()` is false : simply ignore it, don't do anything ? Or is this something that should not happen now that we return false in `Window::force_reflow()` ? I'm not sure about the directory where the test case should go, any advice?
| * | | | | Return Option for Window's layout channelAntoine Martin2020-07-032-26/+41
| | | | | |
* | | | | | Auto merge of #27154 - kunalmohan:async-presentation, r=kvarkbors-servo2020-07-032-10/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebGPU update presentation data asynchronously <!-- Please describe your changes on the following line: --> This PR aims to make updating Webrender presentation data non-blocking. A callback is passed to the `buffer_map_async()` fn wherein the data is read and a message sent to the server itself to write the data into the shared `PresentationData` struct object. r?@kvark --- <!-- 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: --> - [ ] 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. -->
| * | | | | | WebGPU update presentation data asynchronouslyKunal Mohan2020-07-032-10/+15
| |/ / / / /
* | | | | | Auto merge of #27104 - utsavoza:ugo/issue-27030/28-06-2020, r=gterzianbors-servo2020-07-031-2/+2
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update referrer computation The PR updates the request's referrer computation in consideration with the recent changes in [w3c/webappsec-referrer-policy#135](https://github.com/w3c/webappsec-referrer-policy/pull/135). --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27030 and fix #14505 - [x] There are tests for these changes
| * | | | | Update referrer computationUtsav Oza2020-07-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update unit tests for determine_requests_referrer Update wpt metadata Add missing spec links
* | | | | | Auto merge of #27143 - Manishearth:streamnodes, r=ferjmbors-servo2020-07-0312-6/+316
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement MediaStreamAudioDestinationNode, MediaStreamAudioSourceNode, MediaStreamTrackAudioSourceNode Progress in https://github.com/servo/servo/issues/26097 This is a draft since we need the data channels stuff to land first (also I need to make sure we're passing WPT)
| * | | | | | Add AudioContext constructors for media stream nodesManish Goregaokar2020-07-024-17/+48
| | | | | | |
| * | | | | | Unpref MediaStream and MediaStreamTrackManish Goregaokar2020-07-022-3/+2
| | | | | | |
| * | | | | | Add MediaStreamTrackAudioSourceNodeManish Goregaokar2020-07-023-0/+78
| | | | | | |
| * | | | | | Add MediaStreamAudioSourceNodeManish Goregaokar2020-07-023-0/+95
| | | | | | |
| * | | | | | Add MedaStreamAudioDestinationNode::streamManish Goregaokar2020-07-022-6/+20
| | | | | | |
| * | | | | | Add MediaStream::new_single()Manish Goregaokar2020-07-021-0/+12
| | | | | | |