aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/globalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
* `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
|
* Implement the incumbent global.Ms2ger2017-01-171-1/+8
| | | | Fixes #10963.
* Store parser's current line when script elements are created.karenher2017-01-111-3/+3
| | | | | | Use the newly stored line as the starting line number when evaluating JS. This ensures that inline scripts will report errors with meaningful line numbers.
* Implement the entry global.Ms2ger2017-01-061-0/+9
| | | | Partial fix for #10963.
* Implement a getter for the 'current' global object.Ms2ger2016-12-231-1/+14
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-2/+2
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Update js, AGAINAnthony Ramine2016-11-271-3/+3
|
* Update js.Ms2ger2016-11-271-6/+3
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
|
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-2/+3
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+49
|
* Introduce GlobalScope::file_reading_task_sourceAnthony Ramine2016-10-061-0/+13
|
* Introduce GlobalScope::process_eventAnthony Ramine2016-10-061-1/+13
|
* Introduce GlobalScope::new_script_pairAnthony Ramine2016-10-061-1/+15
|