Expand description
The interface to the Constellation
, which prevents other crates from depending directly on
the constellation
crate itself. In addition to all messages to the Constellation
, this
crate is responsible for defining types that cross the process boundary from the
embedding/rendering layer all the way to script, thus it should have very minimal dependencies
on other parts of Servo.
Modules§
- Messages send from the ScriptThread to the Constellation.
- This module contains implementations of structured data as described in https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data
Structs§
- Specifies if rAF should be triggered and/or CSS Animations and Transitions.
- Specifies the information required to load an auxiliary browsing context.
- Constellation’s response to auxiliary browsing context creation requests.
- The data backing a DOM Blob.
- Message for communication between the constellation and a global managing broadcast channels.
- Message that gets passed to service worker scope on postMessage
- A serializable version of the DOMException interface.
- A serializable version of the DOMPoint/DOMPointReadOnly interface.
- File-based blob
- Specifies the information required to load an iframe.
- Specifies the information required to load a URL in an iframe.
- An iframe sizing operation.
- can be passed to
LoadUrl
to load a page with GET/POST parameters or headers - The data and logic backing the DOM managed MessagePort.
- Channels to allow service worker manager to communicate with constellation and resource thread
- Entities required to spawn service workers
- A Script to Constellation channel.
- The scroll state of a stacking context.
- An iterator over the variants of Serializable
- A data-holder for serialized data and transferred objects. https://html.spec.whatwg.org/multipage/#structuredserializewithtransfer
- An iterator over the variants of Transferrable
- Resources required by workerglobalscopes
- Common entities representing a network load origin
Enums§
- Different backends of Blob
- Used to determine if a script has any pending asynchronous activity.
- Messages to the Constellation from the embedding layer, whether from
ServoRenderer
or fromlibservo
itself. - Whether the sandbox attribute is present for an iframe element
- The kind of error the job promise should be rejected with.
- Messages sent from Job algorithms steps running in the SW manager, in order to resolve or reject the job promise.
- Jobs are resolved with the help of various values.
- The result of evaluating a javascript scheme url.
- The origin where a given load was initiated. Useful for origin checks, for example before evaluation a JS URL.
- A log entry reported to the constellation We don’t report all log entries, just serious ones. We need a separate type for this because
LogLevel
isn’t serializable. - Messages for communication between the constellation and a global managing ports.
- A description of a paint metric that is sent from the Servo renderer to the constellation.
- Messages outgoing from the Service Worker Manager thread to constellation
- Messages from the script to the constellation.
- All the DOM interfaces that can be serialized.
- Messages sent to Service Worker Manager thread
- All the DOM interfaces that can be transferred.
- The direction of a history traversal
- The type of window size change.
Traits§
- This trait allows creating a
ServiceWorkerManager
without depending on thescript
crate.