aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* style: Fix servo build.Emilio Cobos Álvarez2019-11-301-0/+8
|
* Auto merge of #24670 - glowe:add-crlf-to-boundary, r=Manishearthbors-servo2019-11-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add CRLF to encoded multipart form data <!-- Please describe your changes on the following line: --> Some (3) WPT tests were failing because they expected the body for a multipart form data response to end with a CRLF. So I updated encode_multipart_form_data to add the missing terminator. Looking at the corresponding spec (https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#multipart%2Fform-data-encoding-algorithm) and RFC (https://tools.ietf.org/html/rfc7578), I couldn't find anything mentioned about this detail. --- <!-- 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 <!-- 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. -->
| * Add CRLF to encoded multipart form dataglowe2019-11-291-1/+1
| | | | | | | | | | | | Some WPT tests were failing because they expected the body for a multipart form data response to end with a CRLF. So I updated encode_multipart_form_data to add the missing terminator.
* | Auto merge of #24883 - szeged:id_management, r=jdmbors-servo2019-11-285-0/+65
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WebGPU identity management <!-- 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 @jdm, @kvark, @zakorgy <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * | Add WebGPU identity managementIstvan Miklos2019-11-285-0/+65
| | | | | | | | | | | | Issue: https://github.com/servo/servo/issues/24706#issuecomment-557891841
* | | Auto merge of #24875 - jdm:wr-no-ipc, r=asajeffreybors-servo2019-11-273-14/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | Extract IPC out of webrender Fixes #20172. Fixes #13480.
| * | | Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-273-14/+14
| | | |
* | | | Handle u32 property indicesKagami Sascha Rosylight2019-11-271-22/+40
|/ / /
* | | Auto merge of #24758 - gterzian:impl_timer_task_source, r=noxbors-servo2019-11-268-132/+149
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement timer-task-source, time-out service worker <!-- Please describe your changes on the following line: --> Implements the timer task-source, and folds the IPC glue-code into a single route set by the globalscope. Also switches service worker to using a dedicated "time-out" mechanism, which previously relied on the timer mechanism(and I think didn't actually implement script timers). --- <!-- 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 #24747 (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. -->
| * | | impl timer-task-source, dedicated time-out mechanism for service-workerGregory Terzian2019-11-198-132/+149
| | | |
* | | | Auto merge of #24783 - mmatyas:webgl_fns_readpixels, r=noxbors-servo2019-11-263-13/+370
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 ReadPixels functions Adds support for the new ReadPixels functions introduced with WebGL2 and the relevant PixelStorei parameters.. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.10 <!-- Please describe your changes on the following line: --> --- This is a work in progress patch, but I think it might be ready for comments. There are a few issues left: - When the target is the pixel pack buffer, the GL function expects a byte offset as a pointer. In Sparkle the `read_pixels` functions return/work on top of arrays, so for now I've made a [workaround patch](https://github.com/mmatyas/sparkle/commit/45d8bb263d87edcf6c2608fe14d717430025fdc2). I wonder if that's okay or should we do it somehow differently? - When writing to the pixel pack buffer, padding bytes on the destination are properly ignored. When writing to client buffers, Sparkle `read_pixels` returns a buffer with 1 byte alignment, which I think is fine (less stuff to move between threads), but requires positioning the rows manually (see the bottom of `read_pixels_into` vs. `ReadPixels_`). - There are some duplicated code between the array buffer and pixel pack buffer variants, eg. the detection of intersection with the framebuffer. This could be refactored, but that results in a function with `Result<Option<Rect<u32>>, WebGLError>`, which I'm not sure is readable enough to help. - There is a duplication with the WebGL1 code. WebGL2 introduces row length, skip pixels and skip rows as pixel pack parameters which affect the ReadPixels operation. The helper functions could be moved to be usable in WebGL1, but then these new modifiers would also need to be passed as a function parameter, which is somewhat ugly (but would work). What's your opinion about this? 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 ReadPixels functionsMátyás Mustoha2019-11-263-13/+370
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Adds support for the new ReadPixels functions introduced with WebGL2 and the relevant PixelStorei parameters. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.10
* | | | Auto merge of #24842 - servo:jdm-patch-34, r=noxbors-servo2019-11-261-4/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make JS runnables for workers execute on correct event loop - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24812
| * | | | Ensure JS runnables are dispatched to a worker's event loop instead of its ↵Josh Matthews2019-11-221-4/+8
| | | | | | | | | | | | | | | | | | | | parent.
* | | | | Fix iterator invalidation in our forEach implementation.Manish Goregaokar2019-11-251-1/+12
| |/ / / |/| | |
* | | | Auto merge of #24708 - szeged:webgpu-base, r=gterzian,kvarkbors-servo2019-11-2512-1/+302
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of WebGPU API <!-- Please describe your changes on the following line: --> - Added the WebIDL bindings for GPU and GPUadapter interfaces. - Created a background thread for WebGPU api calls. - Established the async communication between the background thread and the WebGPU interfaces. - Implemented the `requesAdapter` function of `navigator.gpu` `./mach test-tidy` reports an error due to the different `arrayvec` version used in `servo` and `webgpu`, so added it to the ignore list in `servo-tidy.toml` --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors - [ ] These changes addresses a part of #https://github.com/servo/servo/issues/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.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> cc @jdm, cc @kvark <!-- 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/24708) <!-- Reviewable:end -->
| * | | | Initial implementation of WebGPU APIZakor Gyula2019-11-2112-1/+302
| | | | |
* | | | | Require FormDataEventInit dictionaryKagami Sascha Rosylight2019-11-242-13/+4
| | | | |
* | | | | Add support for squeeze eventsManish Goregaokar2019-11-222-7/+26
| |/ / / |/| | |
* | | | Auto merge of #24789 - gterzian:fix_unloading, r=jdmbors-servo2019-11-221-1/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix unloading, active BC, and clearing js runtime <!-- Please describe your changes on the following line: --> Do not set the window to be the currently active one for the windowproxy as part of `load`, as it will be done later when the document activity is set. And doing it later means that when unload runs, it is with the unloaded pipeline as the active window. Only nullify the window proxy if it's not used by another (currently-active) window. --- <!-- 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 #24591 (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. -->
| * | | | ensure unload run with old pipeline as currently-active, do not nullify ↵Gregory Terzian2019-11-211-1/+12
| | |/ / | |/| | | | | | | | | | proxy unless currently-active
* | | | Auto merge of #24816 - saschanaz:promiserejection, r=jdmbors-servo2019-11-213-20/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Require PromiseRejectionEventInit dictionary <!-- 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 #22670 <!-- 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. -->
| * | | | Require PromiseRejectionEventInit dictionaryKagami Sascha Rosylight2019-11-223-20/+12
| | |/ / | |/| |
* / | | dom: Unindent Document::set_activity.Josh Matthews2019-11-211-54/+61
|/ / /
* | | Auto merge of #24757 - Akash-Pateria:async-wasm-compilation-subsequent, r=jdmbors-servo2019-11-203-3/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Async wasm compilation event loop integration The PR contains changes related to binding the runnable dispatching in script_runtime and is part of the Asynchronous WebAssembly Compilation fix. This is the first step in the subsequent steps mentioned in the [wiki](https://github.com/servo/servo/wiki/Asynchronous-WebAssembly-compilation-project). --- <!-- 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 are part of #21476 fix
| * | | Bind runnable dispatching in script_runtimeAkash-Pateria2019-11-193-3/+13
| | | |
* | | | Fix metadata updateFernando Jiménez Moreno2019-11-203-25/+48
| | | |
* | | | Fallback to current url as metadata titleFernando Jiménez Moreno2019-11-201-2/+7
| | | |
* | | | Update media session metadata according to media playerFernando Jiménez Moreno2019-11-202-5/+33
| | | |
* | | | Remove prev and next track action buttons for nowFernando Jiménez Moreno2019-11-201-1/+0
| | | |
* | | | Fix media session action handlingFernando Jiménez Moreno2019-11-202-27/+11
| | | |
* | | | Default media session actionsFernando Jiménez Moreno2019-11-202-2/+36
| | | |
* | | | Format code and fix rebase errorsFernando Jiménez Moreno2019-11-201-1/+1
| | | |
* | | | Move active media session logic to constellationFernando Jiménez Moreno2019-11-202-11/+10
| | | |
* | | | Send MediaSessionAction from AndroidFernando Jiménez Moreno2019-11-202-6/+1
| | | |
* | | | Adapt MediaMetadata interface to new way of declaring constructorsFernando Jiménez Moreno2019-11-201-2/+2
| | | |
* | | | MediaSession show media controls on AndroidFernando Jiménez Moreno2019-11-201-1/+7
| | | |
* | | | Send MediaSessionEvent::PlaybackStateChange when neededFernando Jiménez Moreno2019-11-201-8/+22
| | | |
* | | | Introduce embedder MediaSessionEvent and move active session to ServoFernando Jiménez Moreno2019-11-202-10/+13
| | | |
* | | | Register media instance with session and prepare communication with embedderFernando Jiménez Moreno2019-11-203-4/+47
| | | |
* | | | Handle media session action, no default handling yetFernando Jiménez Moreno2019-11-202-2/+9
| | | |
* | | | MediaSession: update action handler algorithmFernando Jiménez Moreno2019-11-202-4/+36
| | | |
* | | | Make MediaSession handle embedder requested actionFernando Jiménez Moreno2019-11-201-0/+5
| | | |
* | | | Use BrowsingContextId for MediaSession registrationFernando Jiménez Moreno2019-11-201-11/+9
| | | |
* | | | MediaSession registrationFernando Jiménez Moreno2019-11-201-7/+26
| | | |
* | | | Set MediaMetadata MediaSession ownerFernando Jiménez Moreno2019-11-202-5/+11
| | | |
* | | | MediaSession API DOM bindingsFernando Jiménez Moreno2019-11-206-0/+262
|/ / /
* | | Auto merge of #24687 - ferjm:mediaelementaudionode, r=Manishearthbors-servo2019-11-198-27/+165
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebAudio MediaElementAudioSourceNode implementation - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22370 - [X] There are tests for these changes Depends on https://github.com/servo/media/pull/321 Tested with https://ferjm.github.io/webaudio-examples/media-source-buffer/ I am still investigating why it is playing back with a low rate.
| * | Implement AudioContext.createMediaElementAudioSourceNode()Fernando Jiménez Moreno2019-11-183-7/+20
| | |
| * | MediaElementAudioSourceNode: set audio rendererFernando Jiménez Moreno2019-11-183-8/+29
| | |