mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #21927 - Eijebong:unicode_serialization, r=jdm
Remove Origin::unicode_serialization Fixes #20701 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21927) <!-- Reviewable:end -->
This commit is contained in:
commit
a9eaed44d5
7 changed files with 3 additions and 35 deletions
|
@ -340,7 +340,7 @@ impl FetchResponseListener for EventSourceContext {
|
|||
None => self.fail_the_connection(),
|
||||
Some(ct) => match ct.into_inner().0 {
|
||||
Mime(TopLevel::Text, SubLevel::EventStream, _) => {
|
||||
self.origin = meta.final_url.origin().unicode_serialization();
|
||||
self.origin = meta.final_url.origin().ascii_serialization();
|
||||
self.announce_the_connection();
|
||||
},
|
||||
_ => self.fail_the_connection(),
|
||||
|
|
|
@ -319,7 +319,7 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement {
|
|||
},
|
||||
Some(ref url) => {
|
||||
// Step 3.
|
||||
url.origin().unicode_serialization()
|
||||
url.origin().ascii_serialization()
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue