aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* | impl Body mixin for dom::Response and dom::RequestMalisa Smith2016-09-281-1/+1
|/
* Add FetchMetadata and update corresponding methodsKeith Yeung2016-09-211-7/+13
|
* Implement default values for RequestInitKeith Yeung2016-09-211-0/+1
|
* Fix incorrect indentationKeith Yeung2016-09-211-27/+33
|
* Fix most typoes for: "referer" -> "referrer"Nicolas2016-09-161-1/+1
|
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-3/+6
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Reorder `use` statementsUK9922016-09-091-8/+8
|
* dom::Response implementationMalisa Smith2016-09-061-5/+4
|
* Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-1/+5
|
* Add XHR support for FormDataZhen Zhang2016-08-101-3/+10
|
* Added devtools support to fetch for XHR + Manish's XHR ident fixddh2016-07-291-0/+1
| | | | | | added unit test for request fetch with devtools added devtools/fetch test
* Auto merge of #12467 - jeenalee:jeena-headersAPI, r=jdmbors-servo2016-07-201-15/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the append method for the Headers API <!-- Please describe your changes on the following line: --> This commit adds the append method for the Headers API. @malisas and I are both contributors. There are a few TODOs related: - The script needs to parse the header value for certain header names to decide the header group it belongs - There are possible spec bugs that could change what a valid header value looks like (related: [issue page](https://github.com/whatwg/fetch/issues/332)) There are WPT tests already written for the Headers API, but they will fail as the Headers API is not fully implemented. --- <!-- 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 tests for the Headers API already exists, but this commit does not implement the interface fully. The tests will fail. <!-- 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/12467) <!-- Reviewable:end -->
| * makes XMLHttpRequest::SetRequestHeader call ↵Malisa Smith2016-07-191-15/+3
| | | | | | | | dom::headers::is_forbidden_header_name
* | Integrate service worker manager threadRahul Sharma2016-07-161-8/+1
|/
* script: Obtain referrer policy from headerAravind Gollakota2016-07-151-0/+1
|
* Put Blob URL onlineZhen Zhang2016-07-151-0/+6
|
* Implement Document.referrerNazım Can Altınova2016-07-141-1/+3
|
* Make network listener runnable cancellableConnor Brewster2016-07-081-0/+1
|
* Auto merge of #12258 - izgzhen:remove-data-slice, r=Manishearthbors-servo2016-07-051-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove DataSlice, fix #12249 r? @Manishearth --- <!-- 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 #12249 <!-- Either: --> - [ ] 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12258) <!-- Reviewable:end -->
| * Remove DataSlice, fix #12249Zhen Zhang2016-07-051-4/+5
| |
* | Add style check, test, and code fixes for an else brace check.Travis Dean2016-07-041-5/+3
|/
* Auto merge of #11872 - eddyb:back-to-roots, r=Ms2gerbors-servo2016-07-041-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace return_address usage for rooting with stack guards and convenience macros. The existing `Rooted` and `RootedVec` users were migrated the the following two macros: ```rust let x = Rooted::new(cx, value); // Was changed to: rooted!(in(cx) let x = value); // Which expands to: let mut __root = Rooted::new_unrooted(value); let x = RootedGuard::new(cx, &mut __root); ``` ```rust let mut v = RootedVec::new(); v.extend(iterator); // Was changed to: rooted_vec!(let v <- iterator); // Which expands to: let mut __root = RootableVec::new(); let v = RootedVec::new(&mut __root, iterator); ``` The `rooted!` macro depends on servo/rust-mozjs#272. These APIs based on two types, a container to be rooted and a rooting guard, allow implementing both `Rooted`-style rooting and `Traceable`-based rooting in stable Rust, without abusing `return_address`. Such macros may have been tried before, but in 1.9 their hygiene is broken, they work only since 1.10. Sadly, `Rooted` is a FFI type and completely exposed, so I cannot prevent anyone from creating their own, although all fields but the value get overwritten by `RootedGuard::new` anyway. `RootableVec` OTOH is *guaranteed* to be empty when not rooted, which makes it harmless AFAICT. By fixing rust-lang/rust#34227, this PR enables Servo to build with `-Zorbit`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix rust-lang/rust#34227 - [x] These changes do not require tests because they are not functional changes <!-- 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/11872) <!-- Reviewable:end -->
| * Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-5/+5
| |
* | Refactor `util::prefs` operations to be methods on static struct.Corey Farwell2016-07-021-3/+2
|/
* Use get_mut instead of get-remove-set in XHR send()Darin Minamoto2016-06-271-5/+1
|
* Auto merge of #11768 - achals:blob-string, r=Ms2gerbors-servo2016-06-171-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Blob::{new, new_inherited} to take Strings <!-- 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 #11762. <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because no logic changes, only interface 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11768) <!-- Reviewable:end -->
| * Update Blob::{new, new_inherited} to take StringsAchal Shah2016-06-171-1/+1
| |
* | Remove unused XHR methodAlexandrov Sergey2016-06-171-6/+0
|/
* Review fixesManish Goregaokar2016-06-111-9/+6
|
* Test fixes; update for changes in specManish Goregaokar2016-06-101-12/+69
|
* Re-add support for fetching chunks (and thus xhr download progress)Manish Goregaokar2016-06-101-19/+7
|
* Test fixes:Manish Goregaokar2016-06-101-7/+19
| | | | | | | | - Hack to stop hitting unreachable on referer - add fetch_done to make sync work - Make datauris work by setting the response URI, spec bug - Allow for empty bodies - Make request bodies work (pass to http, fix fencepost in iter count)
* Use RequestInit instead of LoadData. Make code look like the spec.Manish Goregaokar2016-06-101-42/+43
|
* Hook XHR up to fetchManish Goregaokar2016-06-101-147/+42
|
* Abstractify the Listener abstractions furtherManish Goregaokar2016-06-101-1/+1
|
* Move trim_http_whitespace to net_traits.Ms2ger2016-06-071-24/+1
|
* Auto merge of #11468 - rebstar6:refPol4, r=noxbors-servo2016-06-021-3/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement meta referrer policy delivery (3) <!-- 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 #10311 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11468) <!-- Reviewable:end -->
| * Add meta-referrer support for documentsRebecca2016-06-021-3/+16
| |
* | Auto merge of #11522 - nox:root-ref, r=jdmbors-servo2016-06-011-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove all uses of &Root<T> <!-- 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/11522) <!-- Reviewable:end -->
| * | Remove JS::from_rootedAnthony Ramine2016-05-311-1/+1
| |/
* / Add file backend support for Blob and relatedZhen Zhang2016-06-011-5/+4
|/ | | | | | | | Changes include: - Add BlobImpl to Blob, and related caching mechanism - Expose ResourceThreads to document_loader, workerglobalscope, worker, and global - Fix encode_multipart_form_data - Other small fixes to accommodate the above changes
* Auto merge of #11329 - c-rhodes:11320, r=jdmbors-servo2016-05-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report use statements that use {} with only one entry 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 --faster` does not report any errors - [X ] These changes fix #11320 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11329) <!-- Reviewable:end -->