Skip to content
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

Update WebView variants of ConstellationMsg #32163

Merged
merged 3 commits into from Apr 29, 2024

Conversation

wusyong
Copy link
Contributor

@wusyong wusyong commented Apr 27, 2024

This PR updates a few webview variants in ConstellationMsg enum:

  • Add ConstellationMsg::WebViewOpened to make sure a webview is added to constellation and compositor before sending EmbedderEvent::WebViewOpened to embedder.
  • Remove MoveResizeWebView, ShowWebView, HideWebView, RaiseWebViewToTop variants because they are not called. Servo instance will call compositor methods directly without sending to constellation. This should make it clear that these event won't come to constellation and simplify the workflow.

@mrobinson mrobinson added this pull request to the merge queue Apr 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 27, 2024
@wusyong
Copy link
Contributor Author

wusyong commented Apr 28, 2024

Sorry I forgot the first webview is a special case and it needs to send the message as well.

@mrobinson mrobinson added this pull request to the merge queue Apr 29, 2024
Merged via the queue into servo:main with commit 74897c3 Apr 29, 2024
9 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.

Can't show multiple views because of compositor webviews are not in sync
2 participants