Samson
604979e367
Replace script_plugins with a clippy like rustc driver (named crown) ( #30508 )
...
* Remove script_plugins
* Use crown instead of script_plugins
* crown_is_not_used
* Use crown in command base
* bootstrap crown
* tidy happy
* disable sccache
* Bring crown in tree
* Install crown from tree
* fix windows ci
* fix warning
* fix mac
libscript_plugins.dylib is not available anymore
* Update components/script/lib.rs
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update for nightly-2023-03-18
Mostly just based off https://github.com/servo/servo/pull/30630
* Always install crown
it's slow only when there is new version
* Run crown test with `mach test-unit`
* Small fixups; better trace_in_no_trace tests
* Better doc
* crown in config.toml
* Fix tidy for real
* no sccache on rustc_wrapper
* document rustc overrides
* fixup of compiletest
* Make a few minor comment adjustments
* Fix a typo in python/servo/platform/base.py
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* Proper test types
* Ignore tidy on crown/tests
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2023-12-01 15:50:52 +00:00
Samson
ebd41d4101
Use Foo_Binding instead of FooBinding for namespace modules ( #30447 )
...
* Update Codegen.py to emit Foo_Binding instead of FooBinding
* s/FooBinding/Foo_Binding/g
2023-09-30 00:52:04 +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
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
Simon Sapin
bea73951db
Use #![register_tool]
instead of #![register_attr]
...
CC https://github.com/rust-lang/rust/issues/66079
2019-11-15 17:24:42 +01:00
marmeladema
357b6c54ff
Use safe JSContext in callbacks
2019-08-09 00:43:29 +01: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
marmeladema
2fb3f1f983
Callbacks now uses safe JSContext instead of raw JSContext
2019-07-24 08:18:22 +01:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Josh Matthews
14b0de30db
Prevent JS execution and layout operations while DOM in inconsistent state.
2018-12-14 13:12:47 -05: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
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
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
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
7be32fb237
Rename JS<T> to Dom<T>
2017-09-26 09:48:55 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
mckaymatt
63f9ad022f
Add way to get c_void ptr or c_char from caller
2017-04-04 16:46:52 -04:00
SendilKumar N
2996d3a413
removing mutHeapJs references
...
changes as per comments
2017-03-07 17:37:44 +08:00
Ms2ger
2071e41e64
Don't try to get the global of an object while it's being destroyed.
...
Fixes #15070 .
Fixes #15097 .
2017-01-19 10:08:48 +01:00
Ms2ger
51df04d93e
Implement the incumbent global.
...
Fixes #10963 .
2017-01-17 12:57:02 +01:00
Josh Matthews
3f35c3eee2
Add a permanent root to WebIDL callbacks, ensuring they are always safe to store.
2017-01-13 09:59:57 -05:00
Ms2ger
b8554abaa4
Expose CallbackObject more.
...
This will make it easier to use new fields added to it.
2017-01-09 14:17:41 +01:00
Ms2ger
11c21d3b1d
Introduce CallbackObject::new().
2017-01-09 09:47:34 +01:00
Ms2ger
aa93260f1e
Change the order of code in callback.rs to make more sense.
2017-01-09 09:47:33 +01:00
Ms2ger
cb47a7e403
Implement the entry global.
...
Partial fix for #10963 .
2017-01-06 12:56:35 +01:00
Ms2ger
8d633fec42
Simplify CallSetup.
2017-01-05 13:55:10 +01:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Anthony Ramine
b6bbd41e11
Remove GlobalRoot and GlobalRef
2016-10-06 21:36:00 +02:00
Anthony Ramine
26455b8a67
Remove global_root_from_reflector
2016-10-06 21:35:54 +02:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Ms2ger
ae38c53de7
Dispatch error events at the window object.
2016-09-02 11:44:44 +02:00
Ms2ger
5662f0d346
Remove the JSAutoCompartment from report_pending_exception.
...
It doesn't really belong there.
2016-08-26 17:59:31 +02:00
Ms2ger
72540009d5
Reuse report_pending_exception in CallSetup.
2016-07-05 20:20:23 +02:00
Eduard Burtescu
0db1faf876
Switch to using the new rooted!/RootedGuard API for rooting.
2016-07-04 20:59:01 +03:00
Anthony Ramine
34858fd0c9
Clean up the functions to retrieve a global root from JS objects
2016-05-27 00:55:03 +02:00
Ms2ger
5242342aff
Stop re-rooting CallSetup::exception_compartment.
2016-05-17 16:32:05 +02:00
Ms2ger
e4db7b6e9c
Remove JS_SaveFrameChain and JS_RestoreFrameChain calls.
...
They were cargo-culted from Gecko, where they haven't been necessary for a
while either.
2016-05-17 16:32:04 +02:00
Ms2ger
a2bb595974
Remove Request handling from CallSetup.
2016-05-17 14:17:22 +02:00
Brandon Fairchild
341e66f66d
Remove #[allow(raw_pointer_derive)]
attributes
...
The attributes are unused.
Fixes #8699 .
2015-11-27 14:32:57 -05:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
Anthony Ramine
b290a3161d
Clean up the conversion routines
...
Functions returning `Root<T>` are prefixed by "root_" and the ones returning
`*const T` by "native_".
Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones
taking `&T` by "_from_reflector".
2015-11-11 14:19:30 +01:00
rohan.prinja
45224028db
more refactoring
2015-10-30 20:26:29 +09:00
Michael Wu
e733a7c46a
Support the updated spidermonkey bindings
2015-10-14 15:30:52 -04:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30