mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
devtools: Make `why` attribute use `PauseReasons` Currently we have why attribute hardcoded as per the event. In this PR we introduce `PAUSE_REASON` and make sure `why` attribute is using `PAUSE_REASONS`. This is in order to support the upcoming work on `onStep`, `onPop`, and `onEnterFrame` hook. Testing: all existing tests are passing Fixes: Part of #36027 Signed-off-by: atbrakhi <atbrakhi@igalia.com> Co-authored-by: eri <eri@igalia.com>
36 lines
1011 B
Plaintext
36 lines
1011 B
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,
|
|
DOMString frameActorId,
|
|
PauseReason pauseReason);
|
|
|
|
DOMString? registerFrameActor(
|
|
PipelineIdInit pipelineId,
|
|
FrameInfo result);
|
|
};
|
|
|
|
dictionary PauseReason {
|
|
required DOMString type_;
|
|
boolean onNext;
|
|
};
|
|
|
|
dictionary FrameInfo {
|
|
required unsigned long column;
|
|
required DOMString displayName;
|
|
required unsigned long line;
|
|
required boolean onStack;
|
|
required boolean oldest;
|
|
required boolean terminated;
|
|
required DOMString type_;
|
|
required DOMString url;
|
|
};
|