aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
| |
* | Move mozbrowser_enabled to util::prefsAnthony Ramine2016-05-271-2/+2
|/
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* adding interface for custom responsesRahul Sharma2016-05-201-6/+24
|
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-11/+11
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Removed unused importsPer Lundberg2016-05-151-1/+1
| | | | This fixes #11185.
* Rewrite Blob constructor interfaceZhen Zhang2016-05-101-2/+3
|
* Remove extraneous script_chan parameter from Trusted::newKeith Yeung2016-04-281-3/+3
|
* Auto merge of #10838 - bd339:iss9551, r=KiChjangbors-servo2016-04-271-1/+2
|\ | | | | | | | | | | | | | | | | | | | | Implement step 3 according to spec Goes towards fixing #9551 <!-- 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/10838) <!-- Reviewable:end -->
| * Implement step 3 according to specbd3392016-04-271-1/+2
| |
* | Allow setting withCredentials in synchronous XMLHttpRequestRamana Venkata2016-04-261-4/+1
| | | | | | | | closes #10839
* | Add referrer policy pass-through and referrer header logicRebecca2016-04-251-1/+4
|/ | | | | | | add pass-through from doc to http-loader for referrer_policy, ref_URL add logic for setting referer header add script pass-through for referrer add unit tests for setting referer header
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-30/+8
|
* 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
|