8000 Remove Webdriver Server's access to Constellation by yezhizhen · Pull Request #38212 · servo/servo · GitHub
[go: up one dir, main page]

Skip to content

Conversation

yezhizhen
Copy link
Member
@yezhizhen yezhizhen commented Jul 22, 2025

WebDriverCommandMsg::TakeScreenshot was the last thing blocking us from removing constellation access in webdriver server. Now we can happily remove it.

Surprisingly, this reduces binary size by 185KB for release profile in Windows. #37737 removes a net total of 300 lines, but only reduced 98KB.

Testing: No regression after testing.

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
@yezhizhen yezhizhen requested review from jdm and xiaochengh July 22, 2025 09:11
"WebDriverCommand {:?} is still not moved from constellation to embedder",
msg
);
running_state.forward_webdriver_command(msg);
Copy link
Member Author

Choose a reason for hiding this comment

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

Btw I don't understand why we have both

pub(crate) fn forward_webdriver_command(&self, command: WebDriverCommandMsg) {
self.servo().execute_webdriver_command(command);
}
and

servo/components/servo/lib.rs

Lines 1063 to 1066 in 61df7ab

pub fn execute_webdriver_command(&self, command: WebDriverCommandMsg) {
self.constellation_proxy
.send(EmbedderToConstellationMessage::WebDriverCommand(command));
}
. Seems a bit redundant to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably...

Copy link
Contributor
@xiaochengh xiaochengh left a comment

Choose a reason for hiding this comment

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

LGTM, farewell constellation-chan!

"WebDriverCommand {:?} is still not moved from constellation to embedder",
msg
);
running_state.forward_webdriver_command(msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably...

@xiaochengh xiaochengh added this pull request to the merge queue Jul 22, 2025
Merged via the queue into servo:main with commit 57fc569 Jul 22, 2025
25 checks passed
@yezhizhen yezhizhen deleted the clear-constellation branch July 22, 2025 11:00
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2025
…log for script::`handle_send_keys_non_typeable` (#38238)

There was a new commit for after
#38189 (comment), but
that does not seem to update/stop MQ.
Also removed `forward_webdriver_command` in servoshell according to
#38212 (comment).

---------

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
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.

2 participants
0