Agustin Chiappe Berrini
14bc8ab754
Implement TaskSource for HistoryTraversal
...
And remove the method in window that returns it, because it isn't used
so far.
2018-11-13 14:18:51 -05:00
CYBAI
23a4d646ce
Introduce rejectionhandled event
2018-11-13 22:29:45 +08:00
Simon Sapin
2012be4a8b
cargo fix --edition-idioms
2018-11-08 09:28:00 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
bors-servo
e580250d5d
Auto merge of #21988 - CYBAI:drop-promises, r=jdm
...
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 -->
2018-10-29 08:31:12 -04:00
CYBAI
bca951d79e
Drop TrustedPromise
before dropping JSRuntime
2018-10-21 21:30:19 +08:00
CYBAI
f952d7ce0a
Clear consumed rejections and add FIXME comments
2018-10-18 19:13:24 +08:00
CYBAI
42903412c7
Make first argument of DOMManipulationTaskSource as a Box<ScriptChan +
...
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
2018-10-18 19:13:23 +08:00
CYBAI
924a78c6c6
Implement unhandledrejection event
2018-10-18 19:13:22 +08:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Agustin Chiappe Berrini
e286fdcc53
Add the TaskSourceName to CommonScriptMsg::Task
...
Update QueuedTaskConversion and the TaskQueue to use it
2018-09-04 09:17:11 -04:00
Alan Jeffrey
74c1e00d81
Upgraded to SM 60
2018-08-20 18:22:29 -04:00
Anthony Weston
7f7fc91758
Pass new method in CollectServoSizes for accurate DOM heap use reporting
2018-03-27 20:35:39 -04:00
Adrian Wielgosik
7b0b2aae77
Remove js.mem.gc.refresh_frame_slices.enabled pref
...
Clean up after gecko bug 1421358
2018-01-06 23:11:48 +01:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
ddh
2ffbe53989
added time to interactive metrics, refactored metrics to use traits
...
changed task macro to take pipeline info
2017-10-24 21:02:56 +01:00
Josh Matthews
c075372739
Do not trace Rust values when thread is shutting down.
2017-10-20 13:50:40 -04:00
Anthony Ramine
8d566fbc3c
Move script_runtime::StackRootTLS to root::ThreadLocalStackRoots
2017-09-27 13:58:59 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Anthony Ramine
52527d6f9d
Rename Task to TaskBox
2017-09-20 10:07:29 +02:00
Anthony Ramine
f088b708c9
Make Task require Send
2017-09-20 09:40:53 +02:00
Anthony Ramine
46628fba05
Move Task to its own module
2017-09-18 02:47:04 +02:00
Anthony Ramine
56117d3185
Rename Runnable to Task
...
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`.
2017-09-16 15:43:26 +02:00
Anthony Ramine
7ca52152a6
Put the name of runnables in Debug for CommonScriptMsg
2017-09-16 03:47:17 +02:00
Fernando Jiménez Moreno
fb843c251a
Make Performance Timeline API work in Workers
2017-09-05 17:07:15 +02:00
Alan Jeffrey
a47e94c8f6
Added Debug implementations.
2017-06-13 10:46:59 -05:00
Alan Jeffrey
af8436c9be
Implemented Houdini worklets.
2017-05-17 09:01:05 -05:00
ddh
9151b4b751
added xow security callbacks
2017-04-25 21:10:43 +01:00
Josh Matthews
8cba0dff8b
Update rust-mozjs to master.
2017-03-31 14:40:38 -04:00
Josh Matthews
32d4f84a30
Generalize promise job queue into solitary microtask queue.
2017-02-01 12:54:33 -05:00
Josh Matthews
3f35c3eee2
Add a permanent root to WebIDL callbacks, ensuring they are always safe to store.
2017-01-13 09:59:57 -05:00
Imanol Fernandez
c5705bff50
WebVR API Implementation, r=larsbergstrom
2017-01-09 12:44:39 +01:00
Ms2ger
cb47a7e403
Implement the entry global.
...
Partial fix for #10963 .
2017-01-06 12:56:35 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Jansen Jan
55f0e56224
Add support for fullscreen #10102
2016-12-09 11:45:50 +01:00
Anthony Ramine
58919f17a6
Add a JSTraceable bound on ScriptChan
2016-12-06 13:15:07 -10:00
Ms2ger
e367822b3e
Update js.
2016-11-27 12:19:19 +01:00
Anthony Ramine
b6bbd41e11
Remove GlobalRoot and GlobalRef
2016-10-06 21:36:00 +02:00
Anthony Ramine
c66cf46bee
Make the closure in flush_promise_jobs return a Root<GlobalScope>
2016-10-06 21:35:59 +02:00
Anthony Ramine
4d9347d5b3
Introduce GlobalScope::enqueue_promise_job
2016-10-06 21:35:53 +02:00
Anthony Ramine
2ee073053a
Make PromiseJobQueue::enqueue take a &GlobalScope
2016-10-06 21:35:53 +02:00
Anthony Ramine
6e3be6d894
Introduce GlobalScope::flush_promise_jobs
2016-10-06 21:35:52 +02:00
Anthony Ramine
27f100b1d4
Introduce GlobalScope::pipeline_id
2016-10-06 20:59:13 +02:00
Josh Matthews
57b3ccd38c
Support promises in workers.
2016-09-22 16:16:55 -04:00
Arthur Marble
883902bd97
Most of the code refactoring needed to be done is done with this commit.
2016-09-18 03:41:16 -05:00
Alan Jeffrey
6a271b0527
Remove mutex from Trusted
...
Use weak references rather than message passing to
garbage-collect dead references.
2016-08-29 11:56:28 +02:00
Ms2ger
307d1ced3c
Move thread_state to style.
2016-08-22 16:08:56 +02:00