aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-32/+32
|
* Add auxiliary method to EventTargetHelpers for events without targetthiagopnts2014-12-161-2/+2
| | | | fixup! Add auxiliary method to EventTargetHelpers for events without target
* Fix spelling mistakes in comments.Joseph Crail2014-12-111-1/+1
|
* Issue 4253 - Setting timeout on a sync XHR should throw InvalidAccessErrMed0paW2014-12-051-1/+1
|
* convert script crate to use hyperSean McArthur2014-12-041-125/+114
|
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-4/+4
|
* Shared Sniffer TaskKshitij Parajuli2014-11-281-7/+9
| | | | | | | | - Added TargetedLoadResponse and ResponseSenders - LoadData constructor contains the next consumer which means SnifferManager doesn't need the next consumer to start - New SnifferTask is created at new resource_task creation - Update Unit Tests
* Fixes #3962Jesse Tuchsen2014-11-271-3/+6
| | | | Bad HTTP responses now have a 0 status code instead of 200 OK.
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-4/+3
|
* XHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONEMukilan Thiyagarajan2014-11-061-17/+18
| | | | Fixes #3877
* Silence lint for self.global in XHRManish Goregaokar2014-11-061-3/+3
|
* Fix race condition in XHR and handle other abort/open scenariosMukilan Thiyagarajan2014-11-031-130/+231
| | | | | | | | | | | This fixes issue #3630 A short summary of the changes: * Use generation id to cancel inflight requests * Handles nested calls to abort, open, send inside handlers * Adds XHRReleaseMsg to delay freeing XHR object till all inflight events are processed * Change the ErroredMsg enum to be more symmetric with the returned Error enum
* Run all task spawning through util, to allow for easy hooking.Clark Gaebel2014-10-281-3/+1
| | | | | | | | During debugging, I found it useful to hook all task creation in a central location, and util::task was the perfect place for it. r? @pcwalton (or maybe someone else, I'm kinda sending you a bunch of reviews today because I don't know who better to give them to)
* Macroize event handler getters and setters.Tetsuharu OHZEKI2014-10-231-9/+1
|
* Use DOMRefCell for XMLHttpRequest.Tetsuharu OHZEKI2014-10-221-17/+18
|
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* auto merge of #3666 : ttaubert/servo/issue/3644-privatize-dom, r=Manishearthbors-servo2014-10-131-1/+2
|\ | | | | | | | | | | This PR removes public fields from all (hope I didn't miss any) DOM structs. Should |Page| be privatized as well? This PR additionally introduces a #[privatize] lint to ensure nobody accidentally re-introduces a public field. All changesets compile separately if applied in the same order. Hope that helps reviewing but I can of course squash them before merging.
| * Privatize EventTarget and EventListenerEntryTim Taubert2014-10-131-1/+1
| |
| * Simple privatizationsTim Taubert2014-10-131-0/+1
| |
* | Make Event::new take enumerated values instead of booleans (fixes #3643)Tim Taubert2014-10-111-2/+2
|/
* Remove unnecessary `deref()`s (fixes #3586)Tim Taubert2014-10-091-1/+1
|
* Remove Traceable/Untraceable from xmlhttprequest.rsManish Goregaokar2014-10-051-137/+136
|
* Implement MutNullableJS for mutable, nullable member pointers to DOM objects.Josh Matthews2014-10-011-4/+5
|
* Upgrade to rustc d2b30f7d3 2014-09-23Simon Sapin2014-09-291-4/+6
|
* Don't move the data when extracting the bytes in XMLHttpRequest::Send.Ms2ger2014-09-291-1/+1
| | | | | | | The data is used later to set the Content-Type header. Current rustc (4d2af3861) does not detect this use-after-move, but treats the later use as if the data was None. It will, however, detect the bug in d2b30f7d3, which we are upgrading to.
* Made some DOM fields private.ProgramFOX2014-09-261-1/+1
| | | | Relevant to #2242.
* Use JSTraceable everywhereManish Goregaokar2014-09-241-3/+5
|
* Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)Keegan McAllister2014-09-201-5/+8
|
* Convert various helper traits from &JSRef to JSRefCameron Zwarich2014-09-201-26/+26
| | | | | | | | | | | | | | | I converted them all with a few exceptions: - Methods that were used by trait objects, since trait objects don't work with `self` methods. - Methods that take an &'b JSRef<'a, T> and return an &'b. In reality, many (all?) could return an &'a instead, but this isn't allowed by the Deref trait. - Methods that internally rely on the same issue with Deref. - I left out the traits involved in layout entirely, even though not all of their methods suffer from one of the above problems. There will probably be solutions to all of these problems in the future.
* More progress in the &JSRef -> JSRef conversionCameron Zwarich2014-09-201-28/+28
| | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`.
* First steps of &JSRef -> JSRef conversionCameron Zwarich2014-09-191-11/+11
| | | | | | | | | Replace &JSRef with JSRef in the bulk of the generated code. This will remove a level of indirection throughout all DOM code. This patch doesn't change methods implemented on JSRef<T> to take `self` rather than `&self`, and it leaves a few other uses of &JSRef, but those changes can be made incrementally.
* Add unrooted_must_root lint for usages of JS<T> in let/for bindingsManish Goregaokar2014-09-161-3/+2
|
* Add unrooted_must_root lint for enums and structs containing JS<T>, as well ↵Manish Goregaokar2014-09-161-0/+1
| | | | | | | as functions with JS<T> in their parameter list For safe wrappers over JS<T> (eg Temporary<T>) use #[allow(unrooted_must_root)]. For all other types containing a #[must_root] value, annotate the type with #[must_root] to ensure that it is never used unrooted
* Cargoify servoJack Moffitt2014-09-081-0/+970