-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Remove Webdriver Server's access to Constellation #38212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
"WebDriverCommand {:?} is still not moved from constellation to embedder", | ||
msg | ||
); | ||
running_state.forward_webdriver_command(msg); |
There was a problem hiding this comment.
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
servo/ports/servoshell/desktop/app_state.rs
Lines 162 to 164 in 61df7ab
pub(crate) fn forward_webdriver_command(&self, command: WebDriverCommandMsg) { | |
self.servo().execute_webdriver_command(command); | |
} |
Lines 1063 to 1066 in 61df7ab
pub fn execute_webdriver_command(&self, command: WebDriverCommandMsg) { | |
self.constellation_proxy | |
.send(EmbedderToConstellationMessage::WebDriverCommand(command)); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably...
There was a problem hiding this 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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably...
…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>
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.