Skip to content

script: Pass &mut JSContext to Clipboard API's#43975

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:cx-clipboard
Apr 6, 2026
Merged

script: Pass &mut JSContext to Clipboard API's#43975
TimvdLippe merged 1 commit into
servo:mainfrom
TimvdLippe:cx-clipboard

Conversation

@TimvdLippe

Copy link
Copy Markdown
Contributor

Part of #40600
Follow-up to #43943

Testing: It compiles

@TimvdLippe TimvdLippe requested a review from sagudev April 6, 2026 13:10
@TimvdLippe TimvdLippe requested a review from gterzian as a code owner April 6, 2026 13:10
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 6, 2026
Comment on lines +99 to +100
let global = self.global();
let global = GlobalScope::from_current_realm(realm);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our global story is interesting: #35434. I think generally one should use

fn global_(&self, realm: InRealm) -> DomRoot<GlobalScope>;
in such cases (both code will have the same effect here).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted back to the original, since I didn't have an InRealm here yet.

Part of servo#40600
Follow-up to servo#43943

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 6, 2026
@TimvdLippe TimvdLippe added this pull request to the merge queue Apr 6, 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 Apr 6, 2026
Merged via the queue into servo:main with commit 324fed2 Apr 6, 2026
30 checks passed
@TimvdLippe TimvdLippe deleted the cx-clipboard branch April 6, 2026 14:41
@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 Apr 6, 2026
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.

3 participants