aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/callback.rs
Commit message (Collapse)AuthorAgeFilesLines
* CanGc fixes in `errorevent.rs` (#33960)tanishka2024-10-221-2/+2
| | | | | | | | | | | | | * CanGc fixes in errorevent.rs Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Allow too_many_arguments to avoid lint error Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
* clippy: Fix a bunch of warnings in `script` (#32680)Martin Robinson2024-07-041-7/+6
| | | This is just a portion of the errors that are remaining to be fixed.
* clippy: Fix a few clippy problems in `components/scripts/dom` (#31905)Rosemary Ajayi2024-03-281-1/+0
| | | | | * option_as_ref_deref * fix
* clippy:Fix clippy problems in components/scripts/binding (#31893)Rosemary Ajayi2024-03-271-1/+1
| | | | | | | | | | | | | | | * constants have by default a static lifetime * constants have by default a static lifetime * unneeded unit expression * unneeded unit expression * Box of default value * casting raw pointers * casting raw pointers
* clippy: Fix several warnings (#31710)RustAndMetal2024-03-181-2/+2
| | | Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-011-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Use Foo_Binding instead of FooBinding for namespace modules (#30447)Samson2023-09-301-1/+1
| | | | | * Update Codegen.py to emit Foo_Binding instead of FooBinding * s/FooBinding/Foo_Binding/g
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-12/+14
| | | | | * strict imports formatting * Reformat all imports
* Make GlobalScope.get_cx a static method.Josh Matthews2023-05-201-1/+1
|
* Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-161-6/+3
|
* rename compartment to realmKunal Mohan2020-01-241-2/+2
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-3/+3
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Use safe JSContext in callbacksmarmeladema2019-08-091-25/+21
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-2/+2
|
* Callbacks now uses safe JSContext instead of raw JSContextmarmeladema2019-07-241-5/+6
|
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-6/+6
|
* Prevent JS execution and layout operations while DOM in inconsistent state.Josh Matthews2018-12-141-0/+6
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-5/+5
|
* `cargo fix --edition`Simon Sapin2018-11-061-6/+6
|
* Format script componentchansuke2018-09-191-21/+20
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-5/+5
|
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-2/+2
| | | | | | | | 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.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-2/+2
| | | | | | | 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.
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-4/+4
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Add way to get c_void ptr or c_char from callermckaymatt2017-04-041-1/+2
|
* removing mutHeapJs referencesSendilKumar N2017-03-071-3/+3
| | | | changes as per comments
* Don't try to get the global of an object while it's being destroyed.Ms2ger2017-01-191-1/+2
| | | | | Fixes #15070. Fixes #15097.
* Implement the incumbent global.Ms2ger2017-01-171-3/+30
| | | | Fixes #10963.
* Add a permanent root to WebIDL callbacks, ensuring they are always safe to ↵Josh Matthews2017-01-131-10/+45
| | | | store.
* Expose CallbackObject more.Ms2ger2017-01-091-13/+21
| | | | This will make it easier to use new fields added to it.
* Introduce CallbackObject::new().Ms2ger2017-01-091-7/+11
|
* Change the order of code in callback.rs to make more sense.Ms2ger2017-01-091-33/+35
|
* Implement the entry global.Ms2ger2017-01-061-0/+8
| | | | Partial fix for #10963.
* Simplify CallSetup.Ms2ger2017-01-051-16/+13
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-4/+4
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+2
|
* Remove global_root_from_reflectorAnthony Ramine2016-10-061-3/+3
|
* Reorder `use` statementsUK9922016-09-091-3/+3
|
* Dispatch error events at the window object.Ms2ger2016-09-021-1/+1
|
* Remove the JSAutoCompartment from report_pending_exception.Ms2ger2016-08-261-1/+3
| | | | It doesn't really belong there.
* Reuse report_pending_exception in CallSetup.Ms2ger2016-07-051-10/+4
|
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-18/+17
|
* Clean up the functions to retrieve a global root from JS objectsAnthony Ramine2016-05-271-1/+1
|
* Stop re-rooting CallSetup::exception_compartment.Ms2ger2016-05-171-2/+1
|
* Remove JS_SaveFrameChain and JS_RestoreFrameChain calls.Ms2ger2016-05-171-9/+2
| | | | | They were cargo-culted from Gecko, where they haven't been necessary for a while either.
* Remove Request handling from CallSetup.Ms2ger2016-05-171-7/+0
|
* Remove `#[allow(raw_pointer_derive)]` attributesBrandon Fairchild2015-11-271-1/+0
| | | | | | The attributes are unused. Fixes #8699.