aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Delegate permission prompt dialog formatting to embeddersIulian Gabriel Radu2020-02-281-15/+29
|
* Move tinyfiledialog out of script into embedder.gatowololo2020-02-273-43/+41
|
* Factored out permission_state_invocation_results API to GlobalScopegatowololo2020-02-273-17/+11
| | | | Instead of Window
* 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-249-7/+148
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-258-4/+134
| | | |
* | | | Auto merge of #25345 - jdm:drop-cleanup, r=asajeffreybors-servo2020-02-2415-78/+106
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-243-13/+42
| | | | |
| * | | | 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
| | | | |
* | | | | Auto merge of #25810 - Manishearth:xr-profile, r=jdmbors-servo2020-02-233-2/+33
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add profiling to WebXR Fixes https://github.com/servo/webxr/issues/128 Depends on https://github.com/servo/webxr/pull/131 r? @jdm
| * | | | | Add profiling for WebXRManish Goregaokar2020-02-223-2/+33
| | |/ / / | |/| | |
* / | | | Make Background Hang Monitor OptionalKunal Mohan2020-02-231-13/+20
|/ / / / | | | | | | | | | | | | | | | | | | | | This is done by wrapping all channels of communication and related objects inside Option which are configured using flag inside servo_config.
* | | | 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
| | | | |
* | | | | Add support for WebGL2 getFramebufferAttachmentParameterMátyás Mustoha2020-02-211-3/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements the WebGL2 variant of `getFramebufferAttachmentParameter` and the related parameter checks. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* | | | | Auto merge of #25784 - szeged:mmatyas__webgl_fns_framebuf_attachments, r=jdmbors-servo2020-02-214-120/+267
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 framebuffer attachments Adds an initial implementation for the framebuffer attachments introduced with WebGL2 and the related enums and constrains checks. <!-- Please describe your changes on the following line: --> Depends on #25765. 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 attachmentsMátyás Mustoha2020-02-214-120/+267
| |/ / / | | | | | | | | | | | | | | | | Adds an initial implementation for the framebuffer attachments introduced with WebGL2 and the related enums and constrains checks.
* / / / Update ipc-channel and crossbeam-channel.Josh Matthews2020-02-201-2/+2
|/ / /
* | | Auto merge of #25793 - szeged:wgpu_compute_pass_encoder_fns, r=jdmbors-servo2020-02-197-23/+93
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPUComputePassEncoder functions Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`. <!-- 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 GPUComputePassEncoder functionsIstvan Miklos2020-02-197-23/+93
| | | | | | | | | | | | | | | | Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.
* | | | Auto merge of #25777 - kunalmohan:24720-ImageCache, r=jdmbors-servo2020-02-191-1/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take origin from current window instead of creating a new one in event of reflow Everytime a new `LayoutContext` was created, it created a new origin which caused endless stream of image loads to occur in case of reflow. The reason for this was that the existing image, although cached successfully, was not used because the entry in hashmap did not match because of different(new) origin. This is solved by storing the origin of a window in enum `ScriptReflow` and used in creating new `LayoutContext` in case of reflow. <!-- Please describe your changes on the following line: --> 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 #24720 (GitHub issue number if applicable) <!-- 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. -->
| * | | | remove option for origin and mirror changes to layout_thread_2020Kunal Mohan2020-02-181-1/+5
| | | | |
| * | | | Take origin from window instead of creating a new one in case of reflowKunal Mohan2020-02-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Everytime a new LayoutContext was created, it created a new origin which caused endless stream of image loads to occur in case of reflow. The reason for this was that the existing image, although cached successfully, was not used because the entry in hashmap did not match because of different(new) origin. This is solved by storing the origin of a window in enum ScriptReflow and used in creating new LayoutContext in case of reflow.
* | | | | Auto merge of #25369 - CYBAI:nullable-global, r=jdmbors-servo2020-02-1916-61/+79
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always pass InRealm to GlobalScope::from_context to avoid getting a null global --- <!-- 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 #25348 - [x] 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. -->
| * | | | | Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-1616-61/+79
| | |_|_|/ | |/| | |
* | | | | Auto merge of #25765 - szeged:mmatyas__webgl_fns_framebuf_readslot, r=jdmbors-servo2020-02-184-83/+169
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add initial support for WebGL2 read framebuffer Adds support for binding to the read framebuffer slot and querying its status. <!-- Please describe your changes on the following line: --> Depends on #25752 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 initial support for WebGL2 read framebufferMátyás Mustoha2020-02-144-83/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for binding to the read framebuffer slot and querying its status.
* | | | | | Auto merge of #25752 - szeged:mmatyas__webgl_fns_framebuf_glparams, r=jdmbors-servo2020-02-181-0/+2
|\| | | | | | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 `MAX_COLOR_ATTACHMENTS` and `MAX_DRAW_BUFFERS` Adds support for using the WebGL2 enums `MAX_COLOR_ATTACHMENTS` and `MAX_DRAW_BUFFERS` with `GetParameter`. See https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 <!-- 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. -->