Bumsoo Kim
c6cb7ee981
script: Use the new C string literal in the DOM bindings ( #32741 )
...
* simple conversion to cstrings using as_ptr()
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
* replaced byte strings with c strings using new helper functions
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
* changed &[u8] type parameters to &CStr
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
---------
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
2024-07-11 04:18:54 +00:00
Bumsoo Kim
141a594e23
Replace null-byte terminated string literals with C-string literals ( #32716 )
...
* simple conversion from byte string to c-string
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
* convert byte strings to c-strings to c_char ptr
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
---------
Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
2024-07-06 20:14:15 +00:00
Azhar Ismagulova
37cf4cf207
clippy: Fix several warnings in components/script/dom/bindings
( #31945 )
...
* clippy: fix several warnings in components/script/dom/bindings
* fix: allow non_canonical_clone_impl in components/script/dom/bindings
* chore: removed unnecessary curly braces
* fix: removed vtable_address_comparisons allow
2024-04-03 17:19:53 +00:00
komuhangi
0da2508e4d
clippy: Allow too_many_arguments
for all functions ( #31962 )
...
This is the start of preventing this in the future.
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-04-01 14:53:33 +00:00
eri
a7ad92d9a3
clippy: Fix from_over_into
warnings ( #31946 )
2024-03-30 11:30:14 +00:00
Azhar Ismagulova
0728378424
clippy: remove unneeded return statements ( #31923 )
2024-03-28 16:17:47 +00:00
Oluwatobi Sofela
da518823ff
clippy: Fix op_ref warnings ( #31900 )
2024-03-27 16:45:58 +00:00
Ekta Siwach
188f3caff1
clippy: fix some warnings in components/script ( #31865 )
2024-03-26 10:31:22 +00:00
RustAndMetal
f6a975fc58
clippy: Fix several warnings ( #31710 )
...
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
2024-03-18 08:33:43 +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
59d134133f
Use MozTools 4 and update mozjs ( #30326 )
...
* Update mozjs
* moztools4 in bootstrap
* no autoconf
* tidy
* switch to servo-build-deps
* update mozjs for real
* glue mozjs
* fmt
* move to servo/mozjs
2023-09-11 08:23:05 +00:00
Josh Matthews
cc07e27864
Rename reflect_dom_object2.
2023-05-31 23:03:32 -04:00
Josh Matthews
b14b4726ac
Assert that we're constructing.
2023-05-30 11:47:47 -04:00
Josh Matthews
ce023bea24
Don't root a Realm that's used for one call.
2023-05-29 00:47:31 -04:00
Josh Matthews
0e8ac3fdac
Formatting.
2023-05-28 23:54:02 -04:00
Josh Matthews
d9600ff50f
Support arbitrary protos when wrapping EventTarget objects.
2023-05-28 23:23:12 -04:00
Josh Matthews
123937a500
Formatting.
2023-05-26 01:24:47 -04:00
Josh Matthews
7d9dc458af
Use an enum to pass the index value for interfaces/protos.
2023-05-26 01:21:31 -04:00
Josh Matthews
747a99d3f6
Extract bodies of DefineDOMInterface and GetProtoObject/GetConstructorObject out of generated bindings.
2023-05-26 01:02:38 -04:00
Josh Matthews
bd77a4043c
Changes for spidermomkey upgrade.
2022-11-23 10:04:50 -05:00
yvt
690d8462a5
refactor(script): apply suggestions
2021-07-25 18:45:22 +09:00
yvt
f884506dfb
refactor(script): auto ref-count ServoJSPrincipals
2021-07-13 23:08:23 +09:00
yvt
b77ee8721b
refactor(script): rename ServoJSPrincipal
to ServoJSPrincipals
2021-07-13 21:51:54 +09:00
yvt
320965bfb9
refactor(script): move crate::dom::bindings::{utils → principals)::ServoJSPrincipal
2021-07-13 21:45:21 +09:00
yvt
40fbe6b722
chore(deps): update mozjs
...
- 798c5b6: Bring `RustJSPrincipals` back
2021-07-11 23:01:21 +09:00
yvt
28c670d6c3
fix: accommodate to the modern age
2021-07-10 18:18:33 +09:00
yvt
01a7de50ab
Merge remote-tracking branch 'upstream/master' into feat-cow-infra
...
`tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html`
was reverted to the upstream version.
2021-07-10 17:55:42 +09:00
yvt
5871d09c26
fix(script): one compartment for each script thread (agent)
...
Documents in the same agent[1] can share and exchange JS and DOM objects
freely, so putting them in separate compartments would require almost
every instance of `Dom` to be able to handle cross-compartment
references.
[1]: https://html.spec.whatwg.org/multipage/webappapis.html#integration-with-the-javascript-agent-formalism
2021-07-06 09:10:33 +09:00
sagudev
425057c432
Fix errors
2021-03-12 16:26:27 +01:00
Josh Matthews
83578265b4
Don't pretend we support SharedArrayBuffer.
2020-06-16 14:39:20 -04:00
Gregory Terzian
bd5796c90b
integrate readablestream with fetch and blob
2020-06-04 11:38:35 +08:00
Anthony Ramine
5a4f8cf93f
Update SpiderMonkey
2020-03-06 11:13:28 +01:00
Patrick Shaughnessy
c99e0d1b98
Remove obsolete behavior per heycam/webidl #356
2019-12-22 17:58:26 -05:00
Kagami Sascha Rosylight
e81b678645
Support [LegacyWindowAlias]
2019-10-19 12:01:00 +09:00
marmeladema
78034a90d0
Use safe JSContext when possible in interface.rs
2019-08-09 00:43:24 +01:00
Josh Matthews
410d5bc772
Update SpiderMonkey bindings for Windows arm64 crash fix.
2019-07-25 20:23:21 -04:00
sreeise
871239a3e3
Change bindings generation to make Exposed annotation aware of members/partial interfaces
2019-07-14 09:24:43 -04:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Simon Sapin
9f977c5287
Remove useless use crate_name;
imports.
...
A `crate_name::foo` path always works in 2018
2018-11-08 09:29:52 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Alan Jeffrey
74c1e00d81
Upgraded to SM 60
2018-08-20 18:22:29 -04:00
Marcin Mielniczuk
356c57e628
Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393
2018-03-28 21:28:30 +02:00
CYBAI
1c31370a08
Use specific assertion for DOM binding interface
2018-01-26 01:18:55 +08:00
Simon Sapin
4d459bce32
Fix tyvar_behind_raw_pointer warnings
...
https://github.com/rust-lang/rust/issues/46906
2018-01-10 20:54:35 +01:00
olmanz
83adc7b769
Moved pop_current_element_queue() and push_new_element_queue() to htmlconstructor.rs
2017-11-16 19:14:12 +01:00
olmanz
d71ff786c6
Moved function html_constructor() from interface.rs to new file htmlconstructor.rs
2017-11-16 13:06:50 +01:00
Matt Brubeck
efc3683cc7
Fix commonmark Markdown warnings in docs, part 1
...
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is
passed to rustdoc.
This is mostly a global find-and-replace for bare URIs on lines by
themselves in doc comments.
2017-10-17 11:24:57 -07:00