aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12)Simon Sapin2017-01-121-1/+2
|
* Auto merge of #14868 - bd339:iss14068, r=jdmbors-servo2017-01-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix loss of response type information in Fetch API <!-- Please describe your changes on the following line: --> Avoids mapping response types that are distinct according to [the spec](https://fetch.spec.whatwg.org/#concept-response-type) to fewer response types. Also updates test expectations to match that we now pass tests that check the response type. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14068 <!-- Either: --> - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14868) <!-- Reviewable:end -->
| * Don't lose information in Fetch APIbd3392017-01-091-1/+3
| | | | | | | | Also update test expectations.
* | Auto merge of #14648 - cynicaldevil:xmlhttpreq-send, r=KiChjangbors-servo2017-01-081-37/+81
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented XMLHttpRequest.send(Document) <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #9490 . <!-- Either: --> r? @KiChjang `XMLHttpRequest/send-entity-body-document.htm` is not working atm, I get this output: ``` $ ./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm Running 1 tests in web-platform-tests Ran 1 tests finished in 0.0 seconds. • 1 ran as expected. 1 tests skipped. ``` <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14648) <!-- Reviewable:end -->
| * Implemented XMLHttpRequest.send(Document)Nikhil Shagrithaya2017-01-081-37/+81
| |
* | Pass the Document's origin to its constructor.Ms2ger2016-12-231-0/+1
|/ | | | CC #10963.
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Remove some redundant code around XMLHttpRequest::document_response().Ms2ger2016-12-081-14/+3
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Remove a pointless match block in XMLHttpRequest::initiate_async_xhr.Ms2ger2016-12-051-8/+1
|
* Remove unused LoadData and LoadOrigin types.Ms2ger2016-11-241-17/+2
|
* Auto merge of #14274 - stshine:servo-url-index, r=emiliobors-servo2016-11-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement range index with the Position enum on ServoUrl <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> r? @emilio <!-- 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/14274) <!-- Reviewable:end -->
| * Implement range index with the Position enum on ServoUrlPu Xingyu2016-11-181-1/+1
| |
* | Remove redundant url clonesPu Xingyu2016-11-181-1/+1
|/ | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-7/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Urlmageddon <!-- Please describe your changes on the following line: --> Still needs a bunch of code in net to be converted in order to get more advantage of this for images and stuff, but meanwhile this should help quite a bit with #13778. Still wanted to get this in. r? @SimonSapin <!-- 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/14246) <!-- Reviewable:end -->
| * Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-7/+9
| |
* | Auto merge of #14096 - ↵bors-servo2016-11-171-36/+34
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fflorent:11485-make-dom-methods-taking-mut-JSContent-unsafe, r=nox 11485 make dom methods taking mut js content unsafe This is a rebased version of PR #11595 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #11485 <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because: no code logic was changed <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14096) <!-- Reviewable:end -->
| * script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-36/+34
| | | | | | | | rebase + marked the necessary new code as unsafe
* | Reorganise ServoParserAnthony Ramine2016-11-141-10/+11
|/ | | | | | Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules.
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-12/+11
|
* Update CORS naming from 'CORS' to 'Cors'.Corey Farwell2016-11-091-1/+1
| | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
* Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-2/+2
|
* Update to string-cache 0.3Simon Sapin2016-11-031-1/+1
|
* Remove extra spaces in function calls and declarationsDaan Sprenkels2016-10-311-1/+1
|
* Update the bug number for Blob-XHR-revoke.html.Ms2ger2016-10-141-1/+1
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-6/+5
|
* Merge script::parse and script::dom::servoparserAnthony Ramine2016-10-111-2/+2
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-18/+18
|
* Make XMLHttpRequest::fetch take a &GlobalScopeAnthony Ramine2016-10-061-8/+6
|
* Introduce GlobalScope::process_eventAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::new_script_pairAnthony Ramine2016-10-061-1/+1
|
* Move timers to GlobalScopeAnthony Ramine2016-10-061-4/+3
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-2/+2
|
* Introduce GlobalScope::networking_task_sourceAnthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::core_resource_threadAnthony Ramine2016-10-061-1/+1
|
* Make XMLHttpRequest::new_doc use Reflectable::global_scopeAnthony Ramine2016-10-061-4/+3
|
* Introduce GlobalScope::as_windowAnthony Ramine2016-10-061-1/+1
|
* Remove some duplication in XMLHttpRequest methodsAnthony Ramine2016-10-061-8/+6
|
* Introduce GlobalScope::get_urlAnthony Ramine2016-10-061-4/+4
|
* Introduce GlobalScope::api_base_urlAnthony Ramine2016-10-061-1/+1
|
* Do not use GlobalRoot in dom::xmlhttprequestAnthony Ramine2016-10-061-14/+10
|
* Make XMLHttpRequest::new take a &GlobalScopeAnthony Ramine2016-10-061-6/+8
|
* Make throw_dom_exception take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-7/+4
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-3/+6
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-6/+6
|
* Auto merge of #13485 - mathieuh:xhr-event, r=jdmbors-servo2016-10-041-2/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make readystatechange fire more often (fixes #13481) <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13481 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/13485) <!-- Reviewable:end -->
| * Make readystatechange fire more often (fixes#13481)Mathieu Hordesseaux2016-10-031-2/+9
| |
* | Remove same-origin-data-url flag from fetch implementationJan Zerebecki2016-10-011-1/+0
| | | | | | | | | | | | | | The spec removed it. Check the scheme instead, data is always same origin now, except for workers. This also updates the comments to make step numbers match the spec. Closes #13362