aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
Commit message (Collapse)AuthorAgeFilesLines
* #8539 Config preferences backend restructurePeter Hall2019-03-201-179/+126
|
* Reintroduce parent runtimes for worker threads.Josh Matthews2019-01-151-2/+17
|
* Update to new JS runtime creation APIs.Josh Matthews2019-01-151-1/+7
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+3
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Auto merge of #21804 - AgustinCB:unify-task-source-canceller-api, r=gterzianbors-servo2018-11-161-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify the task source and task canceller API To do so, I created a struct `TaskManagement(TaskSource, TaskCanceller)` and made `*_task_source` return that instead of just the task source. Next, I refactored all places in which `task_canceller` by basically removing them in favour of a previously called `*_task_source`. I tried to make `task_canceller` a private method in `Window`, with the hope of enforcing the use of `*_task_source`. However, it's used in components/script/dom/globalscope.rs:575 in such a way that will make it harder to avoid. I decided to leave it that way. It'd be possible to unify `*_task_source` in such a way that we would have only one method. However, I decided not to do it because one of the `TaskSource` implementations is special: `history_traversal_task_source`. Not wanting to over complicate things, I decided to leave the structure this way. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21154 (github issue number if applicable). - [x] These changes do not require tests because it's refactoring code that should already be tested. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21804) <!-- Reviewable:end -->
| * Implement TaskSource for HistoryTraversalAgustin Chiappe Berrini2018-11-131-0/+1
| | | | | | | | | | And remove the method in window that returns it, because it isn't used so far.
* | Introduce rejectionhandled eventCYBAI2018-11-131-12/+33
|/
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-3/+3
|
* Reorder importsPyfisch2018-11-061-9/+11
|
* Format remaining filesPyfisch2018-11-061-30/+43
|
* Sort `use` statementsSimon Sapin2018-11-061-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-20/+20
|
* Auto merge of #21988 - CYBAI:drop-promises, r=jdmbors-servo2018-10-291-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clear refcounted promise before dropping JSRuntime Not sure if this is the right solution? I also tried to `impl Drop for LiveDOMReferences` but it's still executed after dropping JSRuntime. So, maybe we should clear it before dropping the JSRuntime? cc @jdm @asajeffrey --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21331 . - [x] There are tests for these changes; the status of `fetch/cross-origin-resource-policy/fetch-in-iframe.html` will be `OK` <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21988) <!-- Reviewable:end -->
| * Drop `TrustedPromise` before dropping JSRuntimeCYBAI2018-10-211-1/+4
| |
* | Clear consumed rejections and add FIXME commentsCYBAI2018-10-181-0/+7
| |
* | Make first argument of DOMManipulationTaskSource as a Box<ScriptChan +CYBAI2018-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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-4/+124
|/
* Format script componentchansuke2018-09-191-104/+166
|
* Add the TaskSourceName to CommonScriptMsg::TaskAgustin Chiappe Berrini2018-09-041-2/+3
| | | | Update QueuedTaskConversion and the TaskQueue to use it
* Upgraded to SM 60Alan Jeffrey2018-08-201-50/+75
|
* Pass new method in CollectServoSizes for accurate DOM heap use reportingAnthony Weston2018-03-271-1/+22
|
* Remove js.mem.gc.refresh_frame_slices.enabled prefAdrian Wielgosik2018-01-061-1/+0
| | | | Clean up after gecko bug 1421358
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-3/+3
|
* added time to interactive metrics, refactored metrics to use traitsddh2017-10-241-2/+3
| | | | changed task macro to take pipeline info
* Do not trace Rust values when thread is shutting down.Josh Matthews2017-10-201-4/+28
|
* Move script_runtime::StackRootTLS to root::ThreadLocalStackRootsAnthony Ramine2017-09-271-20/+2
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Rename Task to TaskBoxAnthony Ramine2017-09-201-2/+2
|
* Make Task require SendAnthony Ramine2017-09-201-1/+1
|
* Move Task to its own moduleAnthony Ramine2017-09-181-1/+2
|
* Rename Runnable to TaskAnthony Ramine2017-09-161-4/+4
| | | | | | | | | | | | 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`.
* Put the name of runnables in Debug for CommonScriptMsgAnthony Ramine2017-09-161-1/+3
|
* Make Performance Timeline API work in WorkersFernando Jiménez Moreno2017-09-051-1/+2
|
* Added Debug implementations.Alan Jeffrey2017-06-131-0/+10
|
* Implemented Houdini worklets.Alan Jeffrey2017-05-171-0/+1
|
* Update rust-mozjs to master.Josh Matthews2017-03-311-1/+1
|
* Generalize promise job queue into solitary microtask queue.Josh Matthews2017-02-011-75/+7
|
* Add a permanent root to WebIDL callbacks, ensuring they are always safe to ↵Josh Matthews2017-01-131-2/+2
| | | | store.
* WebVR API Implementation, r=larsbergstromImanol Fernandez2017-01-091-0/+1
|
* Implement the entry global.Ms2ger2017-01-061-0/+2
| | | | Partial fix for #10963.
* Removed util.Alan Jeffrey2016-12-141-2/+2
|
* Add support for fullscreen #10102Jansen Jan2016-12-091-1/+3
|
* Add a JSTraceable bound on ScriptChanAnthony Ramine2016-12-061-2/+2
|
* Update js.Ms2ger2016-11-271-27/+5
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+1
|
* Make the closure in flush_promise_jobs return a Root<GlobalScope>Anthony Ramine2016-10-061-4/+4
|
* Introduce GlobalScope::enqueue_promise_jobAnthony Ramine2016-10-061-4/+4
|
* Make PromiseJobQueue::enqueue take a &GlobalScopeAnthony Ramine2016-10-061-3/+4
|
* Introduce GlobalScope::flush_promise_jobsAnthony Ramine2016-10-061-1/+1
|