Skip to content

Conversation

@atbrakhi
Copy link
Member

@atbrakhi atbrakhi commented Mar 13, 2025

This PR refactors DevTools to use webview_id as browser_id

These changes do not affect the current behavior of the DevTools in Servo.


@atbrakhi atbrakhi force-pushed the devtools_webview_id branch from e90e100 to eb4e10a Compare March 13, 2025 12:44
@atbrakhi atbrakhi marked this pull request as ready for review March 13, 2025 12:45
@atbrakhi atbrakhi requested a review from gterzian as a code owner March 13, 2025 12:45
@atbrakhi atbrakhi requested review from delan and mrobinson March 13, 2025 12:45
delan
delan previously approved these changes Mar 14, 2025
@delan delan force-pushed the devtools_webview_id branch from eb4e10a to a067dbf Compare March 14, 2025 10:16
@delan delan self-requested a review March 14, 2025 12:39
Copy link
Member

@delan delan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After working on top of these changes in #35971, I think renaming the fields to webview_id at the serde/struct boundary actually made things more confusing for me, because when dealing with devtools protocol concepts, I expected things to be named after what they’re called in the protocol.

I think it would be better to leave the field names as browser_id, but add doc comments saying they correspond to a webview, and derive the field values from the WebViewId index, just like how outer_window_id values are derived from the PipelineId index. What do you think?

@delan delan self-requested a review March 14, 2025 12:54
@delan delan dismissed their stale review March 14, 2025 12:56

not as confident anymore (see my last comment)

Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
@atbrakhi atbrakhi force-pushed the devtools_webview_id branch from a067dbf to 4f70ef9 Compare March 19, 2025 08:24
Copy link
Member

@delan delan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@delan delan enabled auto-merge March 19, 2025 08:25
@delan delan added this pull request to the merge queue Mar 19, 2025
Merged via the queue into servo:main with commit 2362e4c Mar 19, 2025
21 checks passed
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.

devtools: use webview_id as browser_id

2 participants