mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Create source actors from Debugger API notifications
Co-authored-by: atbrakhi <atbrakhi@igalia.com> Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
e2eabd41c9
commit
048d0b0538
13 changed files with 193 additions and 64 deletions
|
@ -7,4 +7,11 @@
|
|||
[Exposed=DebuggerGlobalScope]
|
||||
interface DebuggerEvent : Event {
|
||||
readonly attribute object global;
|
||||
readonly attribute PipelineId pipelineId;
|
||||
};
|
||||
|
||||
[Exposed=DebuggerGlobalScope]
|
||||
interface PipelineId {
|
||||
readonly attribute unsigned long namespaceId;
|
||||
readonly attribute unsigned long index;
|
||||
};
|
||||
|
|
|
@ -6,4 +6,24 @@
|
|||
// web pages.
|
||||
[Global=DebuggerGlobalScope, Exposed=DebuggerGlobalScope]
|
||||
interface DebuggerGlobalScope: GlobalScope {
|
||||
undefined notifyNewSource(NotifyNewSource args);
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
|
||||
dictionary NotifyNewSource {
|
||||
required PipelineIdInit pipelineId;
|
||||
required unsigned long spidermonkeyId;
|
||||
required DOMString url;
|
||||
required DOMString text;
|
||||
|
||||
// FIXME: error[E0599]: the method `trace` exists for reference `&Option<TypedArray<Uint8, *mut JSObject>>`, but
|
||||
// its trait bounds were not satisfied
|
||||
// Uint8Array binary;
|
||||
|
||||
// TODO: contentType
|
||||
};
|
||||
|
||||
dictionary PipelineIdInit {
|
||||
required unsigned long namespaceId;
|
||||
required unsigned long index;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue