Skip to content

devtools: Register frame actor before pause#42844

Merged
atbrakhi merged 1 commit into
servo:mainfrom
eerii:register-frame-actor
Feb 26, 2026
Merged

devtools: Register frame actor before pause#42844
atbrakhi merged 1 commit into
servo:mainfrom
eerii:register-frame-actor

Conversation

@eerii
Copy link
Copy Markdown
Member

@eerii eerii commented Feb 25, 2026

We need a map between frame actor ids (from devtools) and frame objects (from debugger.js) to implement stepping hooks in the future.

To achieve this, we register the frame actor with a call to the devtools before entering the event loop when the debugger is paused. Instead of creating the frame actor in handle_debugger_pause, we create it before.

Testing: It passes existing devtools tests
Part of: #36027

@eerii eerii requested a review from gterzian as a code owner February 25, 2026 11:31
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 25, 2026
We need a map between frame actor ids (from devtools) and frame objects
(from debugger.js) to implement stepping hooks in the future.

To achieve this, we register the frame actor with a call to the devtools
before entering the event loop when the debugger is paused. Instead of
creating the frame actor in `handle_debugger_pause`, we create it before.

Signed-off-by: eri <[email protected]>
Co-authored-by: atbrakhi <[email protected]>
@eerii eerii force-pushed the register-frame-actor branch from 1a624a8 to 95dbc15 Compare February 25, 2026 11:38
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 26, 2026
@atbrakhi atbrakhi added this pull request to the merge queue Feb 26, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 26, 2026
Merged via the queue into servo:main with commit a2f1c55 Feb 26, 2026
30 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 26, 2026
@eerii eerii deleted the register-frame-actor branch February 26, 2026 12:07
shubhamg13 pushed a commit to shubhamg13/servo that referenced this pull request Mar 2, 2026
We need a map between frame actor ids (from devtools) and frame objects
(from debugger.js) to implement stepping hooks in the future.

To achieve this, we register the frame actor with a call to the devtools
before entering the event loop when the debugger is paused. Instead of
creating the frame actor in `handle_debugger_pause`, we create it
before.

Testing: It passes existing devtools tests
Part of: servo#36027

Signed-off-by: eri <[email protected]>
Co-authored-by: atbrakhi <[email protected]>
@eerii eerii mentioned this pull request Mar 4, 2026
offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
We need a map between frame actor ids (from devtools) and frame objects
(from debugger.js) to implement stepping hooks in the future.

To achieve this, we register the frame actor with a call to the devtools
before entering the event loop when the debugger is paused. Instead of
creating the frame actor in `handle_debugger_pause`, we create it
before.

Testing: It passes existing devtools tests
Part of: servo#36027

Signed-off-by: eri <[email protected]>
Co-authored-by: atbrakhi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants