mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement a basic thread actor
These should represent JavaScript contexts, but not defining them at all prevent any remote debugging session to be started from Firefox. They shouldn't be conflated with tab actors.
This commit is contained in:
parent
b409926111
commit
dbfa4f06b7
3 changed files with 90 additions and 3 deletions
|
@ -74,6 +74,7 @@ pub struct TabActor {
|
|||
pub timeline: String,
|
||||
pub profiler: String,
|
||||
pub performance: String,
|
||||
pub thread: String,
|
||||
}
|
||||
|
||||
impl Actor for TabActor {
|
||||
|
@ -98,7 +99,7 @@ impl Actor for TabActor {
|
|||
let msg = TabAttachedReply {
|
||||
from: self.name(),
|
||||
__type__: "tabAttached".to_owned(),
|
||||
threadActor: self.name(),
|
||||
threadActor: self.thread.clone(),
|
||||
cacheDisabled: false,
|
||||
javascriptEnabled: true,
|
||||
traits: TabTraits,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue