Skip to content

script: Refactors GPURenderBundle's drop implementation.#42982

Merged
yezhizhen merged 1 commit into
servo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPURenderBundle
Mar 3, 2026
Merged

script: Refactors GPURenderBundle's drop implementation.#42982
yezhizhen merged 1 commit into
servo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPURenderBundle

Conversation

@willypuzzle
Copy link
Copy Markdown
Contributor

Moves the Drop logic for GPURenderBundle into a dedicated helper struct, DroppableGPURenderBundle. This change ensures that GPURenderBundle itself does not directly implement Drop, aligning with the policy to prevent direct Drop implementations on DOM types.

Removes the allowDropImpl configuration for GPURenderBundle from script bindings.

Testing: WebGPU tests cover all related cases
Fixes: Partially #26488

Moves the `Drop` logic for `GPURenderBundle` into a dedicated helper struct, `DroppableGPURenderBundle`.
This change ensures that `GPURenderBundle` itself does not directly implement `Drop`, aligning with the policy to prevent direct `Drop` implementations on DOM types.

Removes the `allowDropImpl` configuration for `GPURenderBundle` from script bindings.

Signed-off-by: Domenico Rizzo <[email protected]>
@willypuzzle willypuzzle requested a review from sagudev as a code owner March 3, 2026 09:50
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 3, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 3, 2026
@sagudev sagudev enabled auto-merge March 3, 2026 10:20
@sagudev sagudev added this pull request to the merge queue Mar 3, 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 Mar 3, 2026
@yezhizhen yezhizhen removed this pull request from the merge queue due to a manual request Mar 3, 2026
@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 Mar 3, 2026
@yezhizhen yezhizhen added this pull request to the merge queue Mar 3, 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 Mar 3, 2026
Merged via the queue into servo:main with commit bff59c6 Mar 3, 2026
36 checks passed
@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 Mar 3, 2026
@willypuzzle willypuzzle deleted the 26488-Drop-impls-for-DOM-types-should-be-forbidden-GPURenderBundle branch March 3, 2026 13:58
offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
Moves the `Drop` logic for `GPURenderBundle` into a dedicated helper
struct, `DroppableGPURenderBundle`. This change ensures that
`GPURenderBundle` itself does not directly implement `Drop`, aligning
with the policy to prevent direct `Drop` implementations on DOM types.

Removes the `allowDropImpl` configuration for `GPURenderBundle` from
script bindings.

Testing: WebGPU tests cover all related cases
Fixes: Partially servo#26488

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

4 participants