Repository navigation
script: Use UrlWithBlobClaim::for_url in favicon.rs - #49774
Conversation
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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")
There was a problem hiding this comment.
updated to UrlWithBlobClaim::for_url(favicon_url.clone()).expect("no blob scheme position")!
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]>
23d0f44 to
927bd3a
Compare
|
@jdm hey! realized i only replied inline after pushing the |
|
@jdm hey, pushed the UrlWithBlobClaim::for_url update you suggested whenever you get a minute to take another look first |
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