Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement XMLHttpRequest.responseURL #8830
Comments
|
I'd like to try and take this task on |
|
You got it! |
|
Oh, I forgot to include the specification in the original description: https://xhr.spec.whatwg.org/#the-responseurl-attribute |
|
@jackinloadup any updates on this? |
|
I have some code in place but I have been having some difficulty figuring out how to debug the internals of various values. Namely how to use gdb or some other tool to inspect aspects of hyper headers or url fields. |
|
@jackinloadup There are |
|
I use regular lldb on OS X for the same purpose, via |
|
@jackinloadup still working on this issue? |
|
May I give it a try? |
|
Yes, absolutely! |
|
I tried to write a wpt test to cover this. But I was unable to run the single test file.
Expected: Actual: Notes: |
|
That's very strange; that's supposed to work. Could you push your changes to a branch on github? |
Implemented XMLHttpRequest.responseURL Resolves #8830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9518) <!-- Reviewable:end -->
Implemented XMLHttpRequest.responseURL Resolves #8830 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9518) <!-- Reviewable:end -->
We have a method that ostensibly implements the specification (
XMLHttpRequest::ResponseURL), but we don't actually set theresponse_urlmember ofXMLHttpRequestanywhere except the constructor. We should set this value appropriately insideprocess_partial_responsein theXHRProgress::Donebranch, and the member will need to beDOMRefCell<DOMString>(rather than a plainDOMString) to accommodate the new mutation.Code:
components/script/dom/xmlhttprequest.rsTests:
./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest