Skip to content

script: Generate new blob URL per createObjectURL call - #45182

Merged
jdm merged 3 commits into
servo:mainfrom
yezhizhen:file
Jun 3, 2026
Merged

jdm merged 3 commits into
servo:mainfrom
yezhizhen:file

Conversation

@yezhizhen

Copy link
Copy Markdown
Member

Previously, we generate same URL when calling createObjectURL on same Blob.

Spec:

..
Step 2. Let url be the result of generating a new blob URL.
Step 3. Let entry be a new blob URL entry consisting of object and the current settings object.

I guess there is a good security reason: it is likely a website call createObjectURL
on the same Blob object multiple times. We must be able to revoke them separately.

Testing: Passing in existing tests.
Part of #10778

yezhizhen added 3 commits May 27, 2026 22:40
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
@yezhizhen
yezhizhen requested a review from xiaochengh May 27, 2026 15:24
@yezhizhen
yezhizhen requested a review from gterzian as a code owner May 27, 2026 15:24
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 27, 2026
@TimvdLippe
TimvdLippe requested a review from simonwuelker May 27, 2026 15:34
@yezhizhen
yezhizhen requested a review from Taym95 May 31, 2026 04:45
@simonwuelker

Copy link
Copy Markdown
Member

Sorry, I see that a review from me has been requested but I won't have time to review this in the coming days.

@jdm jdm left a comment

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.

Makes sense. Thanks!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jun 3, 2026
@jdm
jdm added this pull request to the merge queue Jun 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 Jun 3, 2026
Merged via the queue into servo:main with commit 4c5b317 Jun 3, 2026
33 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 Jun 3, 2026
@yezhizhen
yezhizhen deleted the file branch June 3, 2026 12:11
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