Skip to content

constellation: Move BrowsingContextGroup to ConstellationWebView - #48017

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:constellation-move-browsing-context-group-to-webview
Oct 2, 2026
Merged

mrobinson merged 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
@mrobinson
mrobinson force-pushed the constellation-move-browsing-context-group-to-webview branch from 7528cdc to 492a655 Compare September 13, 2026 07:07
@servo-highfive servo-highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 30, 2026
@mrobinson
mrobinson force-pushed the constellation-move-browsing-context-group-to-webview branch from 492a655 to b25250a Compare October 1, 2026 19:04
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-rebase There are merge conflict errors. labels Oct 1, 2026
@mrobinson
mrobinson enabled auto-merge October 1, 2026 19:04
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 b25250a to f0e50c5 Compare October 2, 2026 07:14
@mrobinson
mrobinson added this pull request to the merge queue Oct 2, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 2, 2026
Merged via the queue into servo:main with commit 1a6ef53 Oct 2, 2026
33 checks passed
@mrobinson
mrobinson deleted the constellation-move-browsing-context-group-to-webview branch October 2, 2026 08:15
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 2, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…ervo#48017)

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.

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 servo#47294.

Signed-off-by: Martin Robinson <[email protected]>
hhhwsqhhh pushed a commit to hhhwsqhhh/servo that referenced this pull request Oct 12, 2026
…ervo#48017)

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.

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 servo#47294.

Signed-off-by: Martin Robinson <[email protected]>
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.

3 participants