aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmediaelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)"revert-webrenderMukilan Thiyagarajan2023-09-141-8/+7
| | | | This reverts commit a9d37cb85ac2c55fc630fccffe1ba60ff00f555b.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-39/+44
| | | | | * strict imports formatting * Reformat all imports
* Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)Martin Robinson2023-09-101-5/+5
| | | | | | | | | | | | | | | | | | * Upgrade vendored version of WebRender * Patch WebRender: upgrade version of gleam * Restore hit testing implementation * Fix WebRender warnings * Adapt Servo to new WebRender * Update results * Add a workaround for #30313 This slightly expands text boundaries in order to take into account the fact that layout isn't measuring glyph boundaries.
* remove `extern crate` (#30311)Samson2023-09-081-1/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-0/+2
|
* Enter realms more consistently during the script event loop.Josh Matthews2023-05-201-1/+10
|
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-1/+1
|
* Fix intermittency when loading poster imagesMartin Robinson2023-01-111-15/+11
| | | | | | | | | | | | | | | | | Wait until a poster image is cached to in order to unblock document load. If not, the document may continue loading before the image is ready to use, leading to intermittency in test output. Now load is unblocked when getting the ImageResponse from the cache, which allows the code to properly unblock the load when the entire load fails or succeeds. This reveals several false passes in the `object-view-box` test suite which were very flaky. Fixes #29204. Fixes #29188. Fixes #29179. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Update nightly rustc.Josh Matthews2021-11-011-1/+1
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-7/+12
|
* script: Don't panic when IPC WebRender APIs fail during shutdown.Josh Matthews2020-06-091-2/+8
|
* Convert all uses of UpdateResources api to use webrender transactions.Josh Matthews2020-05-111-11/+10
|
* Make LayoutHTMLMediaElementHelpers methods take selfAnthony Ramine2020-03-291-2/+2
|
* Give a lifetime parameter to LayoutDomAnthony Ramine2020-03-281-1/+1
|
* Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-051-3/+3
| | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* Avoid fetching node global from HTMLMediaElement's destructor.Josh Matthews2020-02-241-4/+6
|
* Remove unnecessary Option.Josh Matthews2020-02-241-3/+1
|
* Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13)Simon Sapin2020-02-141-1/+1
|
* rename compartment to realmKunal Mohan2020-01-241-3/+3
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-2/+3
|
* Add `track_list` member to AudioTrack, VideoTrack, TextTrack structsKunal Mohan2019-12-231-0/+1
| | | | | Add member to the track structs pointing at their associated tracklist and update it when the track is added or removed from a tracklist.
* Auto merge of #24885 - shnmorimoto:implement_mediasession_set_positon_state, ↵bors-servo2019-12-031-1/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=ferjm Implement mediasession set positon state <!-- Please describe your changes on the following line: --> fix #24808 > Bonus points if you want to tweak the existing UI by adding a progress bar, and the info about the current position and total duration. I haven't implemented this yet. --- <!-- 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 #24808 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR <!-- 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. -->
| * extended MediaSessionEvent with SetPositionStateShinichi Morimoto2019-12-031-1/+10
| |
| * implement MediaSession.setPositionState methodShinichi Morimoto2019-12-031-0/+12
| |
* | Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-5/+5
|/
* Fix metadata updateFernando Jiménez Moreno2019-11-201-7/+5
|
* Fallback to current url as metadata titleFernando Jiménez Moreno2019-11-201-2/+7
|
* Default media session actionsFernando Jiménez Moreno2019-11-201-0/+9
|
* Send MediaSessionAction from AndroidFernando Jiménez Moreno2019-11-201-6/+0
|
* 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-201-1/+9
|
* Register media instance with session and prepare communication with embedderFernando Jiménez Moreno2019-11-201-1/+9
|
* MediaElementAudioSourceNode: set audio rendererFernando Jiménez Moreno2019-11-181-3/+24
|
* Rename frame_renderer to video_rendererFernando Jiménez Moreno2019-11-181-10/+10
|
* Update servo-media with MediaElementAudioSourceNode engineFernando Jiménez Moreno2019-11-181-10/+11
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Auto merge of #24340 - jdm:image-cache-cors, r=Manishearthbors-servo2019-10-071-11/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow using CORS filtered image responses as WebGL textures More specifically, this makes the "is this image same origin?" check consider the CORS status of the original response, rather than relying on an overly-strict "is this image's response's URL same-origin with a particular global?" check. To do this, we make the image cache double keyed based on the requested URL as well as the requesting origin, and store the CORS status of the eventual response with the final image that eventually gets sent to the HTMLImageElement consumer. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24330 and fix #24368 - [x] 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/24340) <!-- Reviewable:end -->
| * Support CORS attributes for image elements.Josh Matthews2019-10-041-11/+4
| |
* | implement get_image_pixels() for video elementVíctor Manuel Jáquez Leal2019-10-041-0/+11
| |
* | Always hold current frameVíctor Manuel Jáquez Leal2019-10-041-8/+12
|/ | | | | | | Regardless if it contains raw data or a gl texture. It is required to hold current frame because it can be used for webgl's get_image_pixels
* Integrates media track selectionsreeise2019-09-221-2/+20
|
* Register pipeline instead of browsing contexts for media instancesFernando Jiménez Moreno2019-09-191-5/+5
|
* Enable video frames as OES texturesVíctor Manuel Jáquez Leal2019-09-101-2/+14
| | | | | | | | This patch parametrizes WR to handle OES textures if the incoming frame wraps one. It requires the update of servo-media package and the according WR parametrization.
* Update servo-media. Remove implicit shutdown requests. It all happens ↵Fernando Jiménez Moreno2019-08-191-10/+0
| | | | automagicly now
* Fix HTMLMediaElement seek race conditionFernando Jiménez Moreno2019-08-121-7/+26
|
* Changed DOMString usages to string in MediaFragmentParsersreeise2019-07-251-4/+4
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-1/+1
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Auto merge of #23774 - sreeise:media_fragment_parser, r=ferjmbors-servo2019-07-231-9/+40
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Media fragment parser <!-- Please describe your changes on the following line: --> Media fragment parser for audio and video. --- <!-- 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 #22366 (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/23774) <!-- Reviewable:end -->