aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
* Propagating the load errors from network loaderRavi Shankar2016-04-201-8/+14
|
* Do not support XHR.responseXML in worker globals. Fixes #8931.Josh Matthews2016-04-131-0/+6
|
* Auto merge of #10502 - KiChjang:fix-open-url-base, r=Ms2gerbors-servo2016-04-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Add API base url method to global objects This adds an `api_base_url` function to global objects, which fixes `open-url-base.htm` under XMLHttpRequest. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10502) <!-- Reviewable:end -->
| * Add API base url method to global objectsKeith Yeung2016-04-111-1/+1
| |
* | Replaced SendParam with BodyInitNazım Can Altınova2016-04-101-8/+6
|/
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-1/+1
|
* Allow XHR to fetch about: and data: URLs.Eitan Mosenkis2016-04-011-2/+4
| | | | | This was intended to fix #8015 but the tests are all still failing as of this commit.
* Report errors from ScriptPort trait methods.Josh Matthews2016-03-311-1/+1
|
* Disable cross origin check for mozbrowser-enabled top level pipelinesPaul Rouget2016-03-281-6/+26
|
* Bug 8830 - Implemented XMLHttpRequest.responseURLShing Lyu2016-03-221-3/+6
|
* Store the encoding in the Document rather than its name.Ms2ger2016-03-181-1/+1
|
* rename deprecated utf16_units to encode_utf16Arpad Borsos2016-03-071-1/+1
|
* swap w3c spec link for whatwg, removed user-agent from disallowed headersChandler Abraham2016-02-261-2/+2
|
* disallow restricted XMLHttpRequest header prefixesChandler Abraham2016-02-261-14/+20
|
* implement XHR::SetRequestHeader Step 3Tim Neumann2016-02-231-9/+37
|
* move method from ByteString to module where it was usedTim Neumann2016-02-231-1/+65
|
* remove rarely used `is_token` method from ByteStringTim Neumann2016-02-231-3/+3
|
* Remove an unused import from xmlhttprequest.Ms2ger2016-02-231-1/+0
|
* Clean up of script timer code.benshu2016-02-201-29/+21
| | | | | | | | | | | The code was split into the following two abstractions. - OneshotTimers can be used to schedule arbitrary oneshot timers, such as XHR-Timeouts. - JsTimers (`setTimeout` and `setInterval`) which use OneshotTimers to schedule individual callbacks. With this change the implementation (of JsTimers in particular) is in much closer alignment with the specification.
* Auto merge of #9700 - servo:xhr-to-owned, r=KiChjangbors-servo2016-02-191-4/+4
|\ | | | | | | | | | | | | | | Avoid some spurious string copies in XHR. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9700) <!-- Reviewable:end -->
| * Avoid some spurious string copies in XHR.Ms2ger2016-02-191-4/+4
| |
* | Auto merge of #9684 - danlrobertson:i9655, r=KiChjangbors-servo2016-02-191-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add methods to move ByteStrings underlying bytes Add methods to move the underlying `Vec<u8>` for `ByteString`. I saw this as at least two methods. One to "move and replace with and empty Vec<u8> (`bytes`), and one to take ownership of the whole object (`own_bytes`). I typically also don't like adding methods with out unit tests. If you think they're unnecessary, just let me know. As always, please let me know if you have any comments, critiques, or nits! Fixes #9655 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9684) <!-- Reviewable:end -->
| * | Add methods to move ByteStrings underlying bytesDaniel Robertson2016-02-181-1/+1
| | | | | | | | | | | | Add methods to move the underlying Vec<u8> for ByteString.
* | | Auto merge of #9610 - liviuba:Fix-9553, r=KiChjangbors-servo2016-02-191-4/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bypass GetResponseXML to better match spec Resolves https://github.com/servo/servo/issues/9553 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9610) <!-- Reviewable:end -->
| * | | Add caching to document_responseliviuba2016-02-191-4/+17
| | |/ | |/|
* | | Auto merge of #9603 - Ms2ger:document-bc, r=jdmbors-servo2016-02-191-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Store a pointer to the browsing context in the Document. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9603) <!-- Reviewable:end -->
| * | Store a pointer to the browsing context in the Document.Ms2ger2016-02-111-0/+1
| | |
* | | Auto merge of #9383 - KiChjang:xhr-cleanup, r=Ms2gerbors-servo2016-02-191-84/+137
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up XHR API I've also added annotations about the steps that we're performing within each method. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9383) <!-- Reviewable:end -->
| * | | Clean up XHR APIKeith Yeung2016-02-171-84/+137
| | |/ | |/|
* / | Issue #9561 continued - renamed *_thread_source to *_task_source in ↵Kamil Muszyński2016-02-171-3/+3
|/ / | | | | | | global.rs and related files
* | Auto merge of #9625 - danlrobertson:i9547, r=KiChjangbors-servo2016-02-171-6/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement step 9 of XHR Open method Implement step 9 of the [XMLHttpRequest Open](https://xhr.spec.whatwg.org/#dom-xmlhttprequest-open) method. Thanks to @KiChjang for all the help! As always, comments and critiques are welcomed! Fix: #9547 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9625) <!-- Reviewable:end -->
| * | Implement step 9 of XHR open methodDaniel Robertson2016-02-151-6/+23
| |/ | | | | | | Implement step 9 of the Open method for XMLHttpRequest.
* | Cache XHR JSON responsesKeith Yeung2016-02-141-10/+38
| |
* | Implement Blob response for XMLHttpRequest: #9623Daniel Robertson2016-02-141-1/+23
|/ | | | | In response to #9623 implement the Blob response for XML HttpRequest and change the expected result for the script test.
* Stop importing XMLHttpRequestResponseType variants.Ms2ger2016-02-091-7/+7
|
* Auto merge of #9543 - alopatindev:enums_constructors_codingstyle_fix, r=KiChjangbors-servo2016-02-071-4/+3
|\ | | | | | | | | | | | | | | | | | | | | Fix #9508: Beautify our union enums constructors Solves #9508 @jdm Please review. Thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9543) <!-- Reviewable:end -->
| * Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-4/+3
| |
* | Make step 3 of XHR's SetResponseType method match the specificationTim van der Meij2016-02-061-5/+7
|/
* Auto merge of #9536 - Ms2ger:dead, r=noxbors-servo2016-02-051-1/+0
|\ | | | | | | | | | | | | | | Remove a dead_code annotation from a live method. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9536) <!-- Reviewable:end -->
| * Remove a dead_code annotation from a live method.Ms2ger2016-02-041-1/+0
| |
* | Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-1/+2
|/
* Update XHR BodyInit, update extract method implSt.Spyder2016-01-181-28/+28
|
* Change all DOMStrings to USV strings for XHRKeith Yeung2016-01-161-13/+13
|
* Add global default method for Reflectable traitChad Kimes2016-01-111-15/+15
|
* Remove global field from XMLHttpRequestChad Kimes2016-01-101-17/+15
|
* task -> threadrohan.prinja2016-01-101-14/+14
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-9/+8
|
* Resolves #4183 - Implemementing context-based MIME type sniffingDavid Rajchenbach-Teller2015-12-311-2/+5
| | | | | The version of the standard is not finalized at the time of this writing. Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-3/+3
|
* Remove from Trusted::new an unnecessary argumentArthur Skobara2015-12-121-2/+2
|