Skip to content

constellation: Move BrowsingContextGroup to ConstellationWebView - #48017

Open
mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:constellation-move-browsing-context-group-to-webview
Open

mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:constellation-move-browsing-context-group-to-webview

Conversation

@mrobinson

@mrobinson mrobinson commented Sep 12, 2026

Copy link
Copy Markdown
Member

This is the first simplification from #47294. It moves
BrowsingContextGroup to ConstellationWebView. Every WebView has a
single BrowsingContextGroup, but this group might be shared between
WebViews. This is enforced by keeping groups in an Rc<RefCell<..>>
-- the shared ownership reflecting the reality of the specification.

In addition, this change fixes a leak of WebGPU threads that happened
when a WebView was destroyed before shutdown.

Testing: This should not change behavior (other than the leak fix, which
is difficult to test) so is covered by existing tests.
Fixes: This is part of #47294.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 12, 2026
This is the first simplification from servo#47294. It moves
`BrowsingContextGroup` to `ConstellationWebView`. Every WebView has a
single `BrowsingContextGroup`, but this group might be shared between
`WebView`s. This is enforced by keeping groups in an `Rc<RefCell<..>>`
-- the shared ownership reflecting the reality of the specification.

In addition, this change fixes a leak of `WebGPU` threads that happened
when a `WebView` was destroyed before shutdown.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson
mrobinson force-pushed the constellation-move-browsing-context-group-to-webview branch from 7528cdc to 492a655 Compare September 13, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants