mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Before we were creating a new frame actor each time we paused, even if the frame object in debugger.js was the same. Now we avoid this by reusing the same frame actor id. This helps our upcoming work on onStep, onPop, and onEnterFrame hooks. Testing: Ran `mach test-devtools` and manually check that it works Part of: #36027 Signed-off-by: eri <eri@igalia.com> Co-authored-by: atbrakhi <atbrakhi@igalia.com>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// This interface is entirely internal to Servo, and should not be accessible to
|
|
// web pages.
|
|
[Exposed=DebuggerGlobalScope]
|
|
interface DebuggerInterruptEvent : Event {};
|
|
|
|
partial interface DebuggerGlobalScope {
|
|
undefined pauseAndRespond(
|
|
PipelineIdInit pipelineId,
|
|
FrameOffset frameOffset,
|
|
PauseReason pauseReason);
|
|
|
|
DOMString? registerFrameActor(
|
|
PipelineIdInit pipelineId,
|
|
FrameInfo result);
|
|
};
|
|
|
|
dictionary PauseReason {
|
|
required DOMString type_;
|
|
boolean onNext;
|
|
};
|
|
|
|
dictionary FrameInfo {
|
|
required DOMString displayName;
|
|
required boolean onStack;
|
|
required boolean oldest;
|
|
required boolean terminated;
|
|
required DOMString type_;
|
|
required DOMString url;
|
|
};
|
|
|
|
dictionary FrameOffset {
|
|
required DOMString frameActorId;
|
|
required unsigned long column;
|
|
required unsigned long line;
|
|
};
|