Files
servo/components/script_bindings/webidls/DebuggerInterruptEvent.webidl
eri b2b27d857b devtools: Avoid creating unnecessary new frame actors (#42906)
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>
2026-02-27 14:34:18 +00:00

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;
};