chickenleaf
7ad8822d94
cangc fixes in several files + event.rs + rtcpeerconnection.rs ( #34002 )
...
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
2024-10-25 12:44:15 +00:00
Josh Matthews
575e885529
Mark promise creation methods with CanGc ( #33928 )
...
* Add CanGc annotations to promise constructor.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Propagate CanGc arguments for Promise::new_in_current_realm.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Fix out-of-order entries.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Propagate CanGc from Promise::new.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Suppress clippy warning.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Formatting.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-10-22 09:35:20 +00:00
chickenleaf
af6154cf63
More files with CanGc fixes ( #33892 )
...
* More files with CanGc fixes
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* removed the can_gc inside !task
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
2024-10-18 13:42:43 +00:00
tanishka
6b87ecc291
Some CanGc fixes in components/script/dom ( #33895 )
...
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
2024-10-18 11:52:37 +00:00
tanishka
cd7b66be58
CanGc fixes in components/script/dom ( #33880 )
...
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
2024-10-17 12:49:00 +00:00
chickenleaf
1e39787573
CanGc fixes and checks in multiple files ( #33836 )
...
* CanGc fixes and checks in multiple files
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* CanGc fixes in storageevent.rs
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
2024-10-15 04:30:48 +00:00
webbeef
2b71130a8a
Various CanGc fixes ( #33800 )
...
* CanGc fix for pagetransitionevent
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for dom/node
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for gamepad
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for gpu
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for dom/element
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for xhr
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for dom/worker
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for rtcdatachannel
Signed-off-by: webbeef <me@webbeef.org>
* CanGc fix for rtcerror
Signed-off-by: webbeef <me@webbeef.org>
* Address review comments
Signed-off-by: webbeef <me@webbeef.org>
---------
Signed-off-by: webbeef <me@webbeef.org>
2024-10-11 03:53:39 +00:00
webbeef
f9a06d62a2
More CanGc fixes: Range, Event, gpu error, Header ( #33774 )
...
* Propagate CanGc parameter in Range
Signed-off-by: webbeef <me@webbeef.org>
* Propagate CanGc parameter in gpu code and dependencies
Signed-off-by: webbeef <me@webbeef.org>
* Propagate CanGc parameter in Header and dependencies
Signed-off-by: webbeef <me@webbeef.org>
* Propagate CanGc parameter in Event and dependencies
Signed-off-by: webbeef <me@webbeef.org>
* Propagate CanGc parameter in rtcdatachannel
Signed-off-by: webbeef <me@webbeef.org>
* Propagate CanGc parameter in servoparser
Signed-off-by: webbeef <me@webbeef.org>
---------
Signed-off-by: webbeef <me@webbeef.org>
2024-10-10 15:51:22 +00:00
webbeef
d3c0785d64
Various CanGc fixes in components/script/dom ( #33706 )
...
* Propagate 'can_gc' in IFrame DOM code
Signed-off-by: webbeef <me@webbeef.org>
* Propagate 'can_gc' in HTML video and image elements
Signed-off-by: webbeef <me@webbeef.org>
* Propagate 'can_gc' in Blob and dependencies
Signed-off-by: webbeef <me@webbeef.org>
* Leftover can_gc fixes for HTMLMediaElement
Signed-off-by: webbeef <me@webbeef.org>
* Address comment
Signed-off-by: webbeef <me@webbeef.org>
---------
Signed-off-by: webbeef <me@webbeef.org>
2024-10-08 02:30:04 +00:00
Josh Matthews
7d931e673a
script: Include constructors and static methods in generated DOM traits ( #33665 )
...
* Add all constructors, special operations, and static methods to generated DOM interface traits.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Move all constructors and static methods defined in bare impl blocks inside FooMethods trait impls.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Add missing doc links.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-10-08 01:51:58 +00:00
Josh Matthews
60ef6bc461
Start marking functions that can transitively trigger a GC ( #33144 )
...
* Mark JS reflector wrappers as CanGc.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Propagate CanGc from reflect_dom_object_with_proto.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Mark DOM constructors as GC operations.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-08-22 11:42:36 +00:00
石蕊 (Pi-Cla)
f29dd64a7b
Fix more clippy ( #32740 )
2024-07-09 04:47:43 +00:00
komuhangi
007a72fe4d
Fixed some clippy warnings in components ( #32107 )
...
* Fixed some clippy warnings in components
* Updated handling of NaN values in comparison
* Updated formatting using ./mach fmt
2024-04-19 08:48:01 +00:00
komuhangi
89a4820519
Fixed some clippy warnings in components ( #32025 )
...
* Fixed some clippy warnings in components
* Updated the simplification of bolean expressions in componets/script/dom/range.rs
2024-04-10 07:50:01 +00:00
Azhar Ismagulova
c4739675d8
clippy: Fix needless_borrow warnings in components/script ( #31928 )
2024-03-29 08:58:22 +00:00
Oluwatobi Sofela
02a0cdd6fa
clippy: Fix dereferenced warnings ( #31770 )
2024-03-20 08:07:22 +00:00
Martin Robinson
5c1723c983
rustdoc: Fix many rustdoc errors ( #31147 )
...
This fixes many rustdoc errors that occur due to raw URLs in rustdoc
comments as well as unescaped Rust code that should be in backticks.
2024-01-22 13:13:48 +00:00
Martin Robinson
7fa4ea9740
Upgrade media / GStreamer / GLib ( #30750 )
...
- Upgrade the version of GStreamer for Windows
This upgrades the Windows build to use the most recent version of
GStreamer. This is necessary to upgrade our GStreamer dependency.
- Stop shipping GStreamer binaries on Linux
The binary bundle of GStreamer that we package is not used to compile --
only to run layout tests. It's too old for the APIs that we are using
(as evidenced by needed 1.18 for WebRTC) and nowadays Linux
distributions carry a new version so it's unecessary for our build
machines. No longer using this binary bundle will allow us to upgrade
our GStreamer dependency -- which now has stricter checks that we
are using at least version 1.18.
- Upgrade media to use newer versions of GStreamer / GLib dependencies
2024-01-05 08:01:58 +00:00
Samson
aad2dccc9c
Strict import formatting (grouping and granularity) ( #30325 )
...
* strict imports formatting
* Reformat all imports
2023-09-11 19:16:54 +00:00
Samson
9514f670d1
No tracing of nop traceable fields ( #29926 )
...
* 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
2023-08-04 10:17:43 +00:00
Josh Matthews
cc07e27864
Rename reflect_dom_object2.
2023-05-31 23:03:32 -04:00
Josh Matthews
0e8ac3fdac
Formatting.
2023-05-28 23:54:02 -04:00
Josh Matthews
dbff26bce0
Support arbitrary protos when wrapping DOM objects with constructors.
2023-05-28 23:23:12 -04:00
Josh Matthews
fca5833e21
Remove global argument from Promise::new_in_current_realm.
2023-05-20 11:05:09 -04:00
Josh Matthews
84efd56e57
dom: Add WebRTC transceiver stubs.
2020-07-14 12:48:45 -04:00
Fernando Jiménez Moreno
6ebb73d9a4
Fix rooting issue
2020-06-29 16:53:50 +02:00
Fernando Jiménez Moreno
7eb44f81f2
Fix data channels borrowing errors
2020-06-29 16:53:50 +02:00
Fernando Jiménez Moreno
b968852456
Do not register data channel twice
2020-06-29 16:53:50 +02:00
Fernando Jiménez Moreno
820ea452e7
Set data channels as closed on peer connection close
2020-06-29 16:53:49 +02:00
Fernando Jiménez Moreno
7db485aeb2
RTCDataChannel.readyState getter
2020-06-29 16:53:48 +02:00
Fernando Jiménez Moreno
9d456d5d17
Use data channel ids
2020-06-29 16:53:48 +02:00
Fernando Jiménez Moreno
960b010d30
Cleanups and tidy fixes
2020-06-29 16:53:48 +02:00
Fernando Jiménez Moreno
f5c930087e
Implement ondatachannel event
2020-06-29 16:53:48 +02:00
Fernando Jiménez Moreno
4e6d3e7cec
WebRTCDataChannel initial support
2020-06-29 16:53:47 +02:00
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Josh Matthews
51145cfd83
Update to 3/4 nightly rustc.
2020-03-10 10:09:07 -04:00
Josh Matthews
a29f4a9afe
Revert "Auto merge of #25898 - jdm:rustup, r=asajeffrey"
...
This reverts commit ea8aed1ba9
, reversing
changes made to 3749eb5397
.
2020-03-06 00:06:15 -05:00
Josh Matthews
bf7537ef5b
Update to 3/4 nightly rustc.
2020-03-04 15:08:18 -05:00
Kunal Mohan
5a3e1b8e69
rename compartment to realm
2020-01-24 20:52:36 +05:30
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30
Simon Sapin
1d38bc0419
Fix some new warnings
2019-06-22 14:59:09 +02:00
Bastien Orivel
292d468cd1
Use the newly added inCompartments option everywhere it can be
2019-05-25 17:28:07 +02:00
Manish Goregaokar
72701d96c4
Add RTCPeerConnection.ontrack
2019-05-08 08:15:01 -07:00
Manish Goregaokar
a9ab13b279
Use MediaStreamTracks in MediaStreams
2019-05-07 17:09:04 -07:00
Manish Goregaokar
749a6595ad
Update servo-media
2019-05-07 14:09:09 -07:00
Aron Zwaan
e2e6e2ac94
Pass InCompartment by value
2019-04-25 11:37:35 +02:00
Aron Zwaan
1b6949d4cf
Add proof parameter to Promise::new_in_current_compartment
2019-04-24 19:46:10 +02:00
Josh Matthews
eebd831ea5
Move media backend initialization to process startup.
2019-04-15 16:46:25 -04:00
bors-servo
17204544d9
Auto merge of #23157 - ferjm:gum.playback, r=Manishearth
...
MediaStream playback through audio and video elements
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] 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/23157 )
<!-- Reviewable:end -->
2019-04-13 20:28:17 -04:00
Fernando Jiménez Moreno
af242a0571
MediaStream playback through audio and video elements
2019-04-10 17:55:46 +02:00