mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Properly set the url on the Response object when the response is an opaqueredirect
This commit is contained in:
parent
b290ad95c1
commit
ec665d9dce
8 changed files with 10 additions and 100 deletions
|
@ -246,10 +246,10 @@ impl FetchResponseListener for FetchContext {
|
|||
.root()
|
||||
.set_type(DOMResponseType::Opaque);
|
||||
},
|
||||
FilteredMetadata::OpaqueRedirect => {
|
||||
self.response_object
|
||||
.root()
|
||||
.set_type(DOMResponseType::Opaqueredirect);
|
||||
FilteredMetadata::OpaqueRedirect(url) => {
|
||||
let r = self.response_object.root();
|
||||
r.set_type(DOMResponseType::Opaqueredirect);
|
||||
r.set_final_url(url);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue