aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/promise.rs
Commit message (Collapse)AuthorAgeFilesLines
* require entered realm, use aes, to append native promise handlerGregory Terzian2020-06-041-1/+3
|
* Add InRealm argument to Callback traitTipowol2020-04-051-10/+17
|
* Propagate user interacting flag to timers and promisesPaul Rouget2020-03-261-3/+11
|
* Update SpiderMonkeyAnthony Ramine2020-03-061-3/+3
|
* Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-171-2/+2
|
* rename compartment to realmKunal Mohan2020-01-241-5/+5
|
* Scaffold module scriptCYBAI2020-01-031-1/+1
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Remove some usage of unsafe code in Promisemarmeladema2019-08-091-58/+61
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-18/+18
|
* Create a helper API for entering a DOM object's compartmentKamil Niski2019-06-291-6/+5
| | | | | | Revert some unnecessary changes Fix fmt errors
* Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-1/+1
|
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-7/+7
|
* Create new compartment in Promise constructorAron Zwaan2019-04-291-3/+5
|
* Pass InCompartment by valueAron Zwaan2019-04-251-4/+5
|
* Add proof parameter to Promise::new_in_current_compartmentAron Zwaan2019-04-241-6/+8
|
* Add new consructor with &JSAutoCompartment parameterAron Zwaan2019-04-031-0/+5
|
* Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-031-5/+3
|
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-1/+1
|
* Exempt Rc<Promise> from unrooted_must_rootManish Goregaokar2019-01-041-0/+1
| | | | fixes #22504
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-4/+6
|
* `cargo fix --edition`Simon Sapin2018-11-061-6/+6
|
* Implement unhandledrejection eventCYBAI2018-10-181-1/+1
|
* Format script componentchansuke2018-09-191-31/+56
|
* Upgraded to SM 60Alan Jeffrey2018-08-201-7/+4
|
* Updated to mozjs v0.7.1.Alan Jeffrey2018-05-301-2/+4
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-8/+10
|
* Don't access the reflector when dropping a Promise (fixes #18651)Anthony Ramine2018-03-151-8/+13
| | | | The reflector may be dead already.
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-1/+1
| | | | https://github.com/rust-lang/rust/issues/46906
* Remove unnecessary Result::ok callsMatt Brubeck2017-10-201-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Make Promise::new_resolved unsafeAnthony Ramine2017-09-221-5/+3
|
* Make Promise::new_rejected unsafeAnthony Ramine2017-09-221-5/+3
|
* Rename Promise::is_settled to Promise::is_fulfilledAnthony Ramine2017-09-221-1/+1
|
* Remove unused method Promise::thenAnthony Ramine2017-09-221-20/+1
|
* Make Promise::reject unsafeAnthony Ramine2017-09-221-9/+5
|
* Make Promise::resolve unsafeAnthony Ramine2017-09-221-6/+4
|
* Make Promise::reject_error soundAnthony Ramine2017-09-221-1/+3
|
* Make Promise::reject_native soundAnthony Ramine2017-09-211-1/+3
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-1/+3
| | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
* Rename a couple of Promise methodsAnthony Ramine2017-09-211-6/+10
|
* Implemented Houdini worklets.Alan Jeffrey2017-05-171-0/+1
|
* 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
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Use Heap in DOM object reflector implementation to ensure GC barriers are used.Josh Matthews2017-01-201-3/+3
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Initial work on job queues for service workersRahul Sharma2016-11-221-2/+11
|
* Update js.Ms2ger2016-11-021-2/+2
|