Ekta Siwach
b0196ad373
clippy: Fix a variety of warnings in components/script/dom ( #31894 )
2024-03-29 14:43:10 +00:00
Azhar Ismagulova
0728378424
clippy: remove unneeded return statements ( #31923 )
2024-03-28 16:17:47 +00:00
Oluwatobi Sofela
b55d0a2053
clippy: Fix clone-on-copy warnings ( #31877 )
2024-03-26 19:55:20 +00:00
Aarya Khandelwal
d814d05539
fixed the unneeded return
statement warnings. ( #31863 )
2024-03-26 08:58:34 +00:00
Aarya Khandelwal
f7669b5238
fixes dereferencing on an immutable reference ( #31864 )
2024-03-26 08:37:44 +00:00
sandeep
77f5175efc
removed mutable compile warnings ( #31822 )
...
Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
2024-03-22 09:58:27 +00:00
Oluwatobi Sofela
3e63f8d6ee
clippy: Fix needless borrow warnings ( #31813 )
2024-03-21 17:48:54 +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
Samson
c9b1f35a36
Update mozjs to a version that includes SpiderMonkey ESR 115 ( #30379 )
...
* Update mozjs to sm115
* fix module stuff
https://phabricator.services.mozilla.com/D163949
* fix always allow cloning
https://bugzilla.mozilla.org/show_bug.cgi?id=1774866
* Update expectations
toStringTag now works on wasm object due to SM bump
2023-09-20 16:07:38 +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
Josh Matthews
f79e1e327d
Make GlobalScope.get_cx a static method.
2023-05-20 11:05:09 -04:00
Josh Matthews
bd77a4043c
Changes for spidermomkey upgrade.
2022-11-23 10:04:50 -05:00
Josh Matthews
5c4939599e
Update mozjs.
2021-02-18 09:35:45 -05:00
Anthony Ramine
5a4f8cf93f
Update SpiderMonkey
2020-03-06 11:13:28 +01:00
CYBAI
403ffcf1eb
Always pass InRealm to GlobalScope::from_context to avoid getting null global
2020-02-16 09:55:10 +09:00
Kunal Mohan
5a3e1b8e69
rename compartment to realm
2020-01-24 20:52:36 +05:30
lberrymage
cd9195056c
Add lint check for &DomRoot<T>
...
`&DomRoot<T> is strictly less expressive than `&T`, so using it is
pointless.
2019-12-21 12:44:35 -09:00
Gregory Terzian
6e8a85482c
re-structure blob, structured serialization
2019-12-11 22:46:50 +08:00
Gregory Terzian
2f8932a6a1
continue messageport, transferable, postmessage options
2019-10-19 14:28:18 +08:00
Keith Yeung
c3b17c1201
begin messageport, transferable objects, impl
...
Accept transfer argument for StructuredCloneData::write
Allow structured clone reads to return a boolean
Add Transferable trait
Add basic skeletons to MessagePort
Implement transfer and transfer-receiving steps on MessagePort
Use transfer and transfer_receive in StructuredClone callbacks
Implement MessageChannel
Freeze the array object for the MessageEvent ports attribute
Implement transfer argument on window.postMessage
Use ReentrantMutex instead for MessagePortInternal
Accept origin as a parameter in dispatch_jsval
Fix BorrowMut crash with pending_port_message
Detach port on closure and check for detached during transfer
Enable webmessaging tests
fix webidl
fix
2019-10-19 14:12:22 +08:00
marmeladema
88cacfb009
Modify *::get_cx methods to return a safe JSContext instead of a raw one
2019-07-24 09:53:10 +01:00
Kamil Niski
adb402487e
Create a helper API for entering a DOM object's compartment
...
Revert some unnecessary changes
Fix fmt errors
2019-06-29 19:23:17 +02:00
Josh Matthews
63714c90fb
Upgrade to Spidermonkey 67.
2019-06-26 18:10:46 -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
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
Gregory Terzian
a5d7cd1a7f
use a structured clone holder to store rooted clones
2018-08-07 17:40:46 +02: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
Anthony Ramine
f87c2a8d76
Rename Root<T> to DomRoot<T>
...
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>,
where Root<T> will be able to handle all the things that need to be
rooted that have a stable traceable address that doesn't move for the
whole lifetime of the root. Stay tuned.
2017-09-26 09:49:10 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Simon Sapin
7af5a7fd54
Untry script
2017-06-18 13:21:49 +02:00
alajara
431b263790
Create higher-level APIs for manipulating custom structured clones.
2017-05-15 18:27:24 -04:00
Keith Yeung
b5722e50bb
Provide MIME type data for File in formdata::get_file
2017-04-09 17:34:16 -07:00
Gregory Terzian
5c4f0be048
support structured cloning for Blob
2017-03-22 09:52:35 +08:00
Gregory Terzian
ec84560e7f
implement stubs for structured clone callbacks
2017-03-05 10:33:00 +08:00
Anthony Ramine
b3393fba18
Make StructuredCloneData::read take a &GlobalScope
2016-10-06 21:35:40 +02:00
Rahul Sharma
314dedb96f
make structured clone an enum
2016-09-15 11:32:55 +05:30
Rahul Sharma
9dcb7348a2
store senders instead of buffering messages
2016-09-07 12:07:36 +05:30
Rahul Sharma
0996b38ade
Make service workers talk to their serviceworkerglobalscopes
2016-09-07 12:07:36 +05:30
Anthony Ramine
eb94f1a918
Update SpiderMonkey
2016-05-03 18:36:11 +02:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
Michael Wu
e733a7c46a
Support the updated spidermonkey bindings
2015-10-14 15:30:52 -04:00
Anthony Urena
ba86131cd5
Refactor Error enum usage to consistently be qualified
2015-10-06 05:43:52 -04:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Michael Wu
675267b782
Upgrade to SM 39
2015-06-19 18:42:48 -04:00