shanehandley
6a3cdc47ec
Improve spec conformance around request header validation ( #33418 )
...
* fix: improve spec conformance around request header validation
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* account for additional test passes
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* fix: remove redundant .to_vec call
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
---------
Signed-off-by: Shane Handley <shanehandley@fastmail.com>
2024-09-14 03:01:22 +00:00
Andriy Sultanov
e5150dbda1
Propagate CanGc
from Document::new()
( #33386 )
...
* Add canGc as a parameter to autogenerated trait methods
Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
* Propagate CanGc from Document::new()
Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
---------
Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
2024-09-09 22:38:01 +00:00
Martin Robinson
a4ceb82ef5
script: Stop using time
in DOM timers ( #33262 )
...
This switches to using `std::time` types for DOM timer operations, which
allows removing our custom time units in favor of `Duration`.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-30 15:20:44 +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
Chocolate Pie
92866ab911
enhance: Add support for unsafe-eval
and wasm-unsafe-eval
( #32893 )
...
Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com>
2024-08-01 17:26:44 +00:00
石蕊 (Pi-Cla)
f29dd64a7b
Fix more clippy ( #32740 )
2024-07-09 04:47:43 +00:00
Ngo Iok Ui (Wu Yu Wei)
8eed3b442b
Update WebIDL.py ( #32495 )
...
* Update WebIDL.py
* Update WebIDL.py
* Add builtin-array.patch
* Fix CodegenRust.py and Configuration.py
* Fix missing downcasts
* mach fmt
* Update check and comment to explain why we need this check
* Update Global of DissimilarOriginWindow.webidl
2024-06-15 04:22:42 +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
Rosemary Ajayi
2f5a4354e7
clippy: fixed various clippy warnings in components/scripts
( #31960 )
...
* fixed various clippy warnings
* fixed various clippy warnings
* fixed various clippy warnings
* fixed various clippy warnings
2024-04-01 08:25:42 +00:00
Ekta Siwach
1bc63801e7
fix redundant closures in component/script/dom ( #31917 )
...
* fixed unnecessary conversions
* resolved conflicts
* resolved conflicts
* fix redundant closures in component/script/dom
* resolved conflicts
* fixed formatting
2024-03-28 09:06:02 +00:00
eri
1c8c287f01
WebIDL: Replace NonNull<JSObject>
in xmlhttprequest
( #31880 )
...
* WebIDL: Replace `NonNull<JSObject>` in `xmlhttprequest.rs`
* doc: Update functions comments to docstring
* fix: Actually allocate `response_arraybuffer`
* fix: Change step descriptions
* fix: change step numbers
2024-03-27 20:28:51 +00:00
Oluwatobi Sofela
da76ebabe9
clippy: Fix option_map_unit_fn warnings ( #31906 )
2024-03-27 18:43:56 +00:00
Oluwatobi Sofela
b71de92569
clippy: Fix single_match warnings ( #31876 )
2024-03-26 14:01:10 +00:00
Oluwatobi Sofela
a53632c0e5
clippy: Fix collapsible_if warnings ( #31852 )
2024-03-25 13:55:45 +00:00
Oluwatobi Sofela
3c05b58221
clippy: Fix explicit_auto_deref
warnings in components/script
( #31837 )
...
* clippy: Fix explicit auto-deref warnings
* clippy: Fix explicit auto-deref warnings
* refactor: Tidy up code
* refactor: Fix method not found errors
2024-03-23 11:29:20 +00:00
Aarya Khandelwal
9b26dca141
Fixed the .clone() warnings. ( #31819 )
2024-03-22 05:41:17 +00:00
Oluwatobi Sofela
2789e98876
clippy: Fix redundant field names warnings ( #31793 )
2024-03-20 23:05:29 +00:00
Richard Dushime
01ca220f83
clippy: Fix many warnings in components/script
( #31717 )
...
* Fix Several clippy warnings
* Fix Build errors
* Fix Unused import
* Fix requested changes
* Fix rustfmt
* Minor fixes
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-19 16:05:56 +00:00
Rosemary Ajayi
3ac0ab2e4e
clippy: Fix some warnings in the script
crate ( #31719 )
...
* Fix InlineFormatting error
* BoxFrament
* fix clippy error
* clippy:fix clipy errors
* fix clippy errors
* fix clippy errors
* fix clippy errors
* Remove changes to `layout_2020`
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-03-18 10:05:18 +00:00
cybai (Haku)
a89bacb7c5
Update overrideMimeType and final-charset to match xhr spec ( #29812 )
...
* Update overrideMimeType to match xhr spec
* Update final-encoding to match xhr spec
* Fix an issue and add more comments
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-02-28 20:26: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
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
Naveen Gattu
a48a111cee
Upgrade Hyper
2022-01-16 09:34:17 -08:00
Josh Matthews
01681e79c4
Update nightly rustc.
2021-11-01 08:46:18 -04:00
Andreu Botella
cd34f156f6
Fix document.characterSet
not reflecting byte order marks.
...
The process of decoding the network byte stream to Unicode is backed by
an instance of `encoding_rs::Decoder`, which will switch the encoding it
uses if it finds a BOM in the byte stream. However, this change in
encoding is not communicated back to the caller and so
`document.characterSet` gives the wrong result. This change fixes that.
See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing
for this change.
Signed-off-by: Andreu Botella <abb@randomunok.com>
2020-12-31 13:43:33 +01:00
Vincent Ricard
43b3d93aec
Use data_url::Mime to parse the MIME Types
...
This commit follows the spectification
https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
2020-11-18 18:14:51 +01:00
Vincent Ricard
160714feb6
Implements "upload listener flag" for XHR
2020-09-24 17:01:06 +02:00
Vincent Ricard
ff6194cc74
Fix wrong priority for XHR username/password
2020-09-21 18:37:58 +02:00
Camelid
a62a30ef83
Use asynch
instead of r#async
...
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.
2020-07-16 20:52:19 -07:00
Gregory Terzian
44ebca72da
ensure clean shutdown of all threads running JS
2020-06-30 13:22:38 +08:00
Matthias Deiml
25080e3fa5
Use global.get_referrer() when appropiate
2020-06-17 22:08:06 +02:00
Matthias Deiml
fa18cf620f
Make url for "client" referrer mandatory
2020-06-17 19:07:14 +02:00
Gregory Terzian
dc690653da
update XHR send to use XMLHttpRequestBodyInit
2020-06-05 15:08:57 +08:00
Gregory Terzian
c1b76533fa
partially integrate streaming request bodies with http re-direct
2020-06-04 11:38:38 +08:00
Gregory Terzian
ad4dea7d84
bypass SM for in-memory streams in request bodies, dis-allow other cases in sync XHR
2020-06-04 11:38:38 +08:00
Gregory Terzian
bd5796c90b
integrate readablestream with fetch and blob
2020-06-04 11:38:35 +08:00
Bastien Orivel
ec665d9dce
Properly set the url on the Response object when the response is an opaqueredirect
2020-05-06 20:08:26 +02:00
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Médi-Rémi Hashim
cc2d68a15d
Do not include request progress/total values on XHR timeout
2020-01-30 18:15:04 +00:00
Patrick Shaughnessy
52d8336d7f
do less on abort if not done
2020-01-25 19:12:19 -05:00
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30
Gregory Terzian
6e8a85482c
re-structure blob, structured serialization
2019-12-11 22:46:50 +08:00
Bastien Orivel
a91176e7fc
Trim header values in GetResponseHeader
...
Fixes #24917
2019-11-30 16:59:10 +01:00
petosorus
f089d166bc
XMLHttpRequest.responseXML returns null when a network error occurs
2019-10-01 23:28:35 +02:00
CYBAI
7432913b7f
Remove unused checking
...
We've supported [Exposed] so no need to check the global scope type!
2019-09-26 22:53:10 +09:00
marmeladema
5ca3dd9d05
Remove some usage of unsafe code in XMLHttpRequest
2019-08-09 00:02:08 +01:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00