devtools: implement clearBreakpoint (#42154)

Add an event listener for `clearBreakpoint` to `debugger.js` and the
necessary glue to access it from the `devtools` crate.

Testing: `./mach test-devtools` and manual testing.
Fixes: Part of: https://github.com/servo/servo/issues/36027

---------

Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Co-authored-by: eri <eri@igalia.com>
This commit is contained in:
atbrakhi
2026-01-27 21:16:54 +05:30
committed by GitHub
parent 33bb35c5da
commit e28a0f6d6c
9 changed files with 174 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
/* 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 DebuggerClearBreakpointEvent : Event {
readonly attribute unsigned long spidermonkeyId;
readonly attribute unsigned long scriptId;
readonly attribute unsigned long offset;
};