Skip to content

script: Use UrlWithBlobClaim::for_url in favicon.rs - #49774

Merged
jdm merged 1 commit into
servo:mainfrom
rishiiicreates:favicon-blob-claim
Nov 29, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
rishiiicreates:favicon-blob-claim

Conversation

@rishiiicreates

@rishiiicreates rishiiicreates commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Favicons cannot have a blob scheme here, so use UrlWithBlobClaim::for_url with expect instead of from_url_without_having_claimed_blob.

Part of #48890

Copilot AI balanced review requested due to automatic review settings November 10, 2026 08:06
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

let request = create_a_potential_cors_request_with_claim(
Some(self.webview_id()),
UrlWithBlobClaim::from_url_without_having_claimed_blob(favicon_url.clone()),
ensure_blob_referenced_by_url_is_kept_alive(

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.

Since we can never have a blob: scheme here, let's use https://doc.servo.org/net_traits/blob_url_store/struct.UrlWithBlobClaim.html#method.for_url instead with expect("no blob scheme position")

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.

updated to UrlWithBlobClaim::for_url(favicon_url.clone()).expect("no blob scheme position")!

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 14, 2026
Favicons cannot have a blob scheme here, so use
UrlWithBlobClaim::for_url with expect instead of
from_url_without_having_claimed_blob.

Part of servo#48890

Signed-off-by: Hrishikesh Yadav <[email protected]>
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Nov 20, 2026
@rishiiicreates rishiiicreates changed the title script: Use ensure_blob_referenced_by_url_is_kept_alive in favicon.rs script: Use UrlWithBlobClaim::for_url in favicon.rs Nov 20, 2026
@rishiiicreates

Copy link
Copy Markdown
Contributor Author

@jdm hey! realized i only replied inline after pushing the UrlWithBlobClaim::for_url fix last week, good for another look whenever you get a sec

@rishiiicreates

Copy link
Copy Markdown
Contributor Author

@jdm hey, pushed the UrlWithBlobClaim::for_url update you suggested whenever you get a minute to take another look first

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 29, 2026
@jdm
jdm added this pull request to the merge queue Nov 29, 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 Nov 29, 2026
Merged via the queue into servo:main with commit a5b7dcc Nov 29, 2026
39 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 Nov 29, 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.

4 participants