aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/globalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
* Script: removed a few opts::get()oneturkmen2019-06-261-0/+19
|
* Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-14/+39
|
* Extract canvas operations for reuse by OffscreenCanvas.Maharsh2019-05-221-0/+15
|
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-8/+7
|
* Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-0/+2
|
* Reintroduce parent runtimes for worker threads.Josh Matthews2019-01-151-1/+11
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-12/+12
|
* Format remaining filesPyfisch2018-11-061-9/+18
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-12/+12
|
* Sort `use` statementsSimon Sapin2018-11-061-14/+14
|
* `cargo fix --edition`Simon Sapin2018-11-061-35/+35
|
* Make first argument of DOMManipulationTaskSource as a Box<ScriptChan +CYBAI2018-10-181-0/+11
| | | | | | | | | | | Send> We don't have `window` for `workers`. So, if we use `global.as_window()` to get the DOMManipulationTaskSource, it will make worker panic. Instead, we should get the DOMManipulationTaskSource from each own thread. Ref: https://github.com/servo/servo/pull/20755#discussion_r193557746
* Implement unhandledrejection eventCYBAI2018-10-181-1/+57
|
* Format script componentchansuke2018-09-191-37/+59
|
* Add Websocket task sourceAgustin Chiappe Berrini2018-09-081-0/+13
| | | | | | | | According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network The task source for all tasks queued in the websocket section are the websocket task source, so this commit also updates those references to use the appropriate one.
* Upgraded to SM 60Alan Jeffrey2018-08-201-11/+2
|
* Introduce DOMTracker, cancel eventsource fetch when aborting document loadGregory Terzian2018-07-291-0/+25
|
* use remote-event task source in EventSourceGregory Terzian2018-07-131-1/+14
|
* introduce "per task source" ignoring of tasksGregory Terzian2018-07-101-2/+6
|
* Fix typo for workletCYBAI2018-06-031-4/+4
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-2/+4
|
* added autoclose workerNupur Baghel2018-02-221-0/+22
|
* Use specific negative assertion for DOM globalscopeCYBAI2018-01-261-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-3/+3
| | | | | | | | 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-12/+12
| | | | | | | 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 DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-2/+2
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-2/+2
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Clean up GlobalScope::report_an_errorAnthony Ramine2017-09-181-15/+19
|
* Move Task to its own moduleAnthony Ramine2017-09-181-1/+2
|
* Rename Runnable to TaskAnthony Ramine2017-09-161-6/+6
| | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* Store microtask queues in their global (fixes #18467)Anthony Ramine2017-09-131-21/+20
|
* Store a Rc<MicrotaskQueue> directly on WindowAnthony Ramine2017-09-131-4/+4
|
* Reformat GlobalScope::new_inheritedAnthony Ramine2017-09-131-18/+18
|
* Make Performance Timeline API work in WorkersFernando Jiménez Moreno2017-09-051-0/+26
|
* make use of ScriptToConstellationChanPaul Rouget2017-08-151-6/+6
|
* return Option from GlobalScope::currentJyotsna Prakash2017-06-221-2/+6
| | | | | handles the case where GlobalScope::current calls CurrentGlobalOrNull and the result is null
* Implemented Houdini worklets.Alan Jeffrey2017-05-171-9/+29
|
* added origin to globalscopeddh2017-04-241-2/+12
|
* Terminate timer scheduler thread during shutdownFernando Jiménez Moreno2017-03-301-4/+4
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Perform a microtask checkpoint after executing classic scripts and callbacks.Josh Matthews2017-02-011-0/+11
|
* Generalize promise job queue into solitary microtask queue.Josh Matthews2017-02-011-17/+6
|
* Inline dom::eventdispatcher into dom::eventAnthony Ramine2017-01-221-2/+1
|