aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #25903 - mmatyas:webgl_fns_framebuf_render_validation_fix, r=jdmbors-servo2020-03-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved the WebGL2 framebuffer render validation It seems `MissingColorAttachment` should be returned only when all of the color attachments are missing. <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy --- <!-- 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] 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. -->
| * Improved the WebGL2 framebuffer render validationMátyás Mustoha2020-03-051-1/+1
| | | | | | | | | | It seems `MissingColorAttachment` should be returned only when all of the color attachments are missing.
* | Auto merge of #25863 - servo:synup, r=jdmbors-servo2020-03-052-4/+4
|\ \ | |/ |/| | | Remove syn 0.15 from our crate graph
| * Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-052-4/+4
| | | | | | | | | | | | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* | Update to 3/4 nightly rustc.Josh Matthews2020-03-045-21/+21
| |
* | Add support for WebGL2 FramebufferTextureLayerMátyás Mustoha2020-03-043-2/+87
| | | | | | | | | | | | Adds support for `FramebufferTextureLayer` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* | Auto merge of #25852 - szeged:mmatyas__webgl_fns_renderbuf_enums, r=jdmbors-servo2020-03-032-25/+126
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow more WebGL2 FBO attachment formats Add support for most of the framebuffer attachment formats introduced in WebGL2 for textures and renderbuffers. Related format tables: - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glRenderbufferStorage.xhtml <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy --- <!-- 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] 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. -->
| * | Allow more WebGL2 FBO attachment formatsMátyás Mustoha2020-03-032-25/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for most of the framebuffer attachment formats introduced in WebGL2 for textures and renderbuffers. Related format tables: - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glRenderbufferStorage.xhtml
* | | Auto merge of #25798 - szeged:mmatyas__webgl_fns_framebuf_invalidate, r=jdmbors-servo2020-03-032-3/+87
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 framebuffer invalidation Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 <!-- Please describe your changes on the following line: --> Depends on #25785. cc @jdm @zakorgy --- <!-- 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] 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. -->
| * | | Add support for WebGL2 framebuffer invalidationMátyás Mustoha2020-03-032-3/+87
| |/ / | | | | | | | | | | | | | | | | | | Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* | | Auto merge of #25781 - nox:fixzeal, r=jdmbors-servo2020-03-026-79/+118
|\ \ \ | |/ / |/| | | | | Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)
| * | Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-176-79/+118
| | |
* | | Auto merge of #25869 - iulianR:issue-23057-tinifiledialogs, r=jdmbors-servo2020-02-293-61/+70
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move tinyfiledialog call from script to embedder <!-- Please describe your changes on the following line: --> PR is based on work started in #23651. I rebased on top of master and addressed review comments. Handling the `PromptPermission` message in `libsimpleservo` is probably not ideal. Looking forward to make more changes, just let me know how I should proceed. --- <!-- 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 #23057 (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. -->
| * | | Delegate permission prompt dialog formatting to embeddersIulian Gabriel Radu2020-02-281-15/+29
| | | |
| * | | Move tinyfiledialog out of script into embedder.gatowololo2020-02-272-40/+41
| | | |
| * | | Factored out permission_state_invocation_results API to GlobalScopegatowololo2020-02-273-17/+11
| | | | | | | | | | | | | | | | Instead of Window
* | | | Auto merge of #25428 - pshaughn:livebyname, r=jdmbors-servo2020-02-282-14/+89
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make Document.getElementsByName a live collection Another new case for NodeList; this and the labels live collection in #25424 are in the pipeline simultaneously, so one of them will need a merge resolution when the other one lands. Iterating over many same-named elements is potentially slower than it has to be, since getting the nth element from the live view always starts from the start of the tree. --- <!-- 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 #25147 <!-- 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. -->
| * | | make Document.getElementsByName a live collectionPatrick Shaughnessy2020-02-152-14/+89
| | |/ | |/|
* | | Fixing some style related issues in WebGPU.Istvan Miklos2020-02-278-134/+120
| |/ |/| | | | | | | | | Changed the Requests/Response from tuples to named struct variants and also sorted in alphabetical order. Replaced the ID generator functions from `globalscope` with a single function, which returns a `RefMut` and can call the appropriate method to generate resource IDs.
* | Auto merge of #25831 - szeged:wgpu_read_map_async, r=jdmbors-servo2020-02-254-48/+195
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement mapReadAsync function of GPUBuffer Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`. Added `mapped` internal slot for tracking the ArrayBuffer/Promise. Added more states to the `GPUBufferState` enum. <!-- 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 addresses a part of #24706 <!-- 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.--> cc @kvark @jdm @zakorgy <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * | Implement mapReadAsync function of GPUBufferIstvan Miklos2020-02-254-48/+195
| | | | | | | | | | | | | | | | | | Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`. Added `mapped` internal slot for tracking the ArrayBuffer/Promise. Added more states to the `GPUBufferState` enum.
* | | Auto merge of #25740 - gterzian:per_fetch_filemanager_handle, r=Manishearthbors-servo2020-02-251-2/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per fetch file token for blob url <!-- Please describe your changes on the following line: --> Depends on https://github.com/servo/servo/pull/25724 First step of https://github.com/servo/servo/issues/25226 --- <!-- 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. -->
| * | | add a fetch token for blob urlsGregory Terzian2020-02-211-2/+1
| | | |
* | | | implement broadcastchannelGregory Terzian2020-02-256-7/+409
| | | |
* | | | Auto merge of #25499 - NeverHappened:implement-form-dirname, r=jdmbors-servo2020-02-248-7/+147
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement dirname support for form element Added support for dirname in input on form submit Added Dir getter / setter for HTMLElement NOT YET Added get directionality according to https://html.spec.whatwg.org/multipage/dom.html#the-directionality - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25379 (GitHub issue number if applicable)
| * | | | Use map_or and fix manifestDmitry Kolupaev2020-02-253-8/+10
| | | | |
| * | | | Implement step 5.13 for dirname correctlyDmitry Kolupaev2020-02-252-24/+23
| | | | |
| * | | | Add special case directionality of phone inputDmitry Kolupaev2020-02-252-1/+6
| | | | |
| * | | | Simplify code for directionalityDmitry Kolupaev2020-02-252-14/+9
| | | | |
| * | | | Remove recursiveness from directionality searchDmitry Kolupaev2020-02-254-26/+35
| | | | |
| * | | | Simplify node#parent_directionalityDmitry Kolupaev2020-02-252-9/+6
| | | | |
| * | | | Rearrange directionality algorithm functionsDmitry Kolupaev2020-02-257-94/+102
| | | | |
| * | | | Move dirname collection to inputDmitry Kolupaev2020-02-253-20/+16
| | | | |
| * | | | Implement dirname for form submit and directionality for elementDmitry Kolupaev2020-02-257-4/+133
| | | | |
* | | | | Auto merge of #25345 - jdm:drop-cleanup, r=asajeffreybors-servo2020-02-2414-78/+89
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid accessing global objects from DOM destructors This removes all instances that I could find of DOM objects accessing `self.global()` in code that runs as part of a Drop method. This is unsafe because the GC could destroy objects in any order when doing a big sweep. Instead, these types should store the data they need as members so they can run in isolation without accessing the rest of the GC graph as part of their destructors. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25258 and fix #23986 - [x] There are tests for these changes
| * | | | | Avoid accessing node global during Node's destructor.Josh Matthews2020-02-242-13/+25
| | | | | |
| * | | | | Avoid accessing DOM global from XR's destructor.Josh Matthews2020-02-242-15/+21
| | | | | |
| * | | | | Avoid accessing DOM global from VRDisplay's destructor.Josh Matthews2020-02-246-28/+27
| | | | | |
| * | | | | Avoid fetching node global from HTMLMediaElement's destructor.Josh Matthews2020-02-241-4/+6
| | | | | |
| * | | | | Remove unnecessary Option.Josh Matthews2020-02-246-18/+10
| | | | | |
* | | | | | Auto merge of #25668 - pshaughn:iframerecursion, r=jdmbors-servo2020-02-241-1/+24
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop iframes from including their ancestors An iframe that included itself would just keep loading until running out of resources; the spec includes protection against that, and now Servo follows (some of) the spec about it. --- <!-- 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 the same-origin case presented in #3931 but not a case in which an intermediate cross-origin iframe is hiding a same-origin ancestor further up. <!-- Either: --> - [X] There is a manual test for these changes in #3931 <!-- 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. -->
| * | | | | Iframes can't include an ancestor they know aboutPatrick Shaughnessy2020-02-121-1/+24
| | | | | |
* | | | | | Add support for WebGL2 clear buffer operationsMátyás Mustoha2020-02-242-8/+140
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for the following WebGL2 methods: - `clearBufferfv` - `clearBufferiv` - `clearBufferuiv` - `clearBufferfi` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
* | | | | Auto merge of #25738 - jsjoeio:jsjoeio/issue-25732-rename-xr, r=Manishearth,jdmbors-servo2020-02-246-24/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refactor: rename XR to XRSystem <!-- Please describe your changes on the following line: --> This PR renames XR to XRSystem. --- <!-- 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 #25732 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's the changing of a name (XR -> XRSystem) <!-- 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. -->
| * | | | | refactor: rename XR to XRSystemJavaScript Joe2020-02-236-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chore: fix formatting refactor: change filename and ref to xrsystem refactor: change filename XRSystem.webidl refactor: update crate in navigator refactor: use XRSystem instead of XR in navigator refactor: update Bindings.conf refactor: use XRSystemMethods fix: update assertions for XRSystem fix: update manifest json
* | | | | | Auto merge of #25771 - gterzian:leak_message_ports, r=jdmbors-servo2020-02-231-105/+125
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leak message ports in Dom, until they are closed <!-- Please describe your changes on the following line: --> FIX #25461 FIX #24810 FIX #24488 --- <!-- 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. -->
| * | | | | leak message ports in dom, until they are closedGregory Terzian2020-02-221-105/+125
| | | | | |
* | | | | | Add profiling for WebXRManish Goregaokar2020-02-222-2/+32
| |/ / / / |/| | | |
* | | | | Auto merge of #25821 - gterzian:fix_messagechannel_constructor_idiom, ↵bors-servo2020-02-222-14/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=Manishearth Use new and new_inherited in messagechannel <!-- Please describe your changes on the following line: --> Use common DOM constructor idioms in `MessageChannel`. Also, remove the falliable from the result, since that seems to match the spec better https://html.spec.whatwg.org/multipage/web-messaging.html#dom-messagechannel --- <!-- 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 new and new_inherited in messagechannelGregory Terzian2020-02-212-14/+17
| |/ / / /