Commit graph

1253 commits

Author SHA1 Message Date
Manish Goregaokar
6f728cb2ca Enable inline event handlers for XHR, and add most progressevent calls 2014-05-29 21:39:15 +05:30
bors-servo
23a63ef4ae auto merge of #2499 : mbrubeck/servo/unpub, r=metajack 2014-05-28 18:31:07 -04:00
Matt Brubeck
418d9d2e44 Remove unnecessary pubs from script_task 2014-05-28 10:21:01 -07:00
Manish Goregaokar
5f860bb612 Request header and postdata support for XHR 2014-05-28 20:49:13 +05:30
bors-servo
0886a36b5d auto merge of #2204 : jdm/servo/inlineev, r=Ms2ger
Fixes #1238.
2014-05-27 14:49:21 -04:00
Josh Matthews
003e5bcd46 Port modern callback handling code from Gecko, and copy related WebIDL parser bits too. 2014-05-27 20:43:52 +02:00
Josh Matthews
04931adf70 Compile JS strings when setting inline event handlers via element attributes. 2014-05-27 20:43:48 +02:00
Josh Matthews
33955f0ab2 Implement window forwarding for body event handlers. 2014-05-27 20:43:48 +02:00
Josh Matthews
2d6153772c Add stubs for inline event handler manipulation. 2014-05-27 20:43:48 +02:00
Ms2ger
ce45afac0c Rewrite escape() in htmlserializer to push onto a StrBuf. 2014-05-27 18:44:21 +02:00
Ms2ger
d1ca380482 Use StrBuf more efficiently in htmlserializer. 2014-05-27 18:44:21 +02:00
Tetsuharu OHZEKI
b22f6e1f81 Clean up AttributeHandlers::get_attribute() for JSRef. 2014-05-27 18:39:32 +09:00
Ms2ger
51d2891c9b Make GetProtoOrIfaceArray return the actual type. 2014-05-26 20:19:38 +02:00
Ms2ger
1834855ff5 Pass an immutable pointer to the private in NewProxyObject. 2014-05-26 20:18:00 +02:00
Ms2ger
d5cb4377ef Use *mut T for the T* pointers in SpiderMonkey. 2014-05-26 18:19:44 +02:00
bors-servo
10d9bad973 auto merge of #2483 : zwarich/servo/remove-10683-workaround, r=jdm 2014-05-24 06:28:24 -04:00
bors-servo
2545647ceb auto merge of #2482 : Ms2ger/servo/rev_iter, r=jdm 2014-05-23 19:22:31 -04:00
Cameron Zwarich
0a01ad7275 Remove the workaround for Rust issue 10683. 2014-05-23 15:40:36 -07:00
bors-servo
c7e8e5a927 auto merge of #2374 : Manishearth/servo/customevent, r=jdm
This was previously PR'd on #2218
2014-05-23 17:28:55 -04:00
Manish Goregaokar
4c997e8934 Implement CustomEvent (#2173) 2014-05-24 02:51:22 +05:30
Ms2ger
81e652ae3d Replace deprecated rev_iter() by iter().rev(). 2014-05-23 22:30:31 +02:00
Tetsuharu OHZEKI
46d31632e0 Initial spec-incompliant implementation of default click action for anchor elements.
This is cherry-picked from https://github.com/mozilla/servo/pull/1688:

  * Initial spec-incompliant implementation of default click action for anchor elements.
  * Add documentation; gut the new document URL loading method
    and move it all into the new Window method.
  * Add test for default event prevention.

Original developer: Josh Matthews <josh@joshmatthews.net>
2014-05-23 23:30:09 +09:00
Ms2ger
eaedeb07cb Update Rust. 2014-05-22 16:36:40 -06:00
Manish Goregaokar
114d2e3565 Fix some XHR warnings 2014-05-21 10:27:55 +05:30
bors-servo
28e3c17340 auto merge of #2442 : Manishearth/servo/xhr-async, r=jdm
(Note that only `getAllResponseHeaders()` is supported at the moment, I'll be adding the other header methods later.)
2014-05-20 12:16:35 -04:00
bors-servo
ca9396ff9c auto merge of #2434 : Ms2ger/servo/contentWindow, r=jdm 2014-05-20 11:43:46 -04:00
Manish Goregaokar
533fab46f9 Async XHR GET with basic response header support 2014-05-20 21:01:12 +05:30
Manish Goregaokar
7bcfaa603b Handle type parameter in ProgressEvent constructor (#2379) 2014-05-18 14:43:52 +05:30
bors-servo
47bdecf511 auto merge of #2447 : glennw/servo/issue-703, r=jdm 2014-05-16 17:35:37 -04:00
Glenn Watson
f5c2f7e835 Add various base html elements to parser and test. Fixes #703. 2014-05-17 05:59:25 +10:00
bors-servo
3ea507f3ea auto merge of #2454 : Ms2ger/servo/codegen-tests-retvals, r=jdm 2014-05-16 11:55:48 -04:00
Ms2ger
ab8b62e28d Add tests for return values of interface methods. 2014-05-16 16:53:54 +02:00
bors-servo
58283527bf auto merge of #2452 : Ms2ger/servo/getDefaultRetval, r=jdm 2014-05-16 10:25:51 -04:00
Ms2ger
fcd98e1c0d Stop returning a default return value from getRetvalInfo.
This is now unused.
2014-05-16 12:10:57 +02:00
Ms2ger
7abbef8919 Remove getDefaultRetval.
getDefaultRetval was supposed to be used after throwing an exception on the
ErrorResult outparam in C++. However, as we throw exceptions through the
return value in Servo, we don't need it at all.
2014-05-16 12:00:59 +02:00
Glenn Watson
7cba2f1738 Remove unused imports for UnionTypes codegen. Fixes #2440. 2014-05-16 08:46:20 +10:00
Ms2ger
8182105204 Use JS_ObjectToOuterObject in wrap callbacks. 2014-05-15 20:58:51 +02:00
Cameron Zwarich
b8d423d931 Switch to using ContravariantLifetime in JSRef<'a, T>.
Since ContravariantLifetime doesn't take up any storage space, this
means that JSRef will be a single word. This fixes #2333.
2014-05-14 14:13:58 -07:00
Ms2ger
765cea73d9 Implement iframe.contentWindow. 2014-05-14 17:58:40 +02:00
Ms2ger
85285113e4 Instate a pre-wrap hook that outerizes its argument, to satisfy an undocumented JSAPI requirement. 2014-05-14 17:39:13 +02:00
Ms2ger
8f63c9e1c8 Store the subpage id in the Page. 2014-05-14 17:23:18 +02:00
Ms2ger
b77869bd9a Add a subpage_id field to NewLayoutInfo. 2014-05-14 12:50:26 +02:00
Ms2ger
69172a1ae5 Rename the pipeline ID fields in NewLayoutInfo.
This will make the distinction clearer with the subpage ID field to be added.
2014-05-14 12:44:59 +02:00
Ms2ger
44fb9eb28f Avoid unnecessary Rc clone in Window::new. 2014-05-14 12:26:24 +02:00
bors-servo
288550a2bf auto merge of #2428 : zwarich/servo/remove-add-html-element, r=jdm
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207.
2014-05-14 01:25:13 -04:00
bors-servo
049fa56fff auto merge of #2425 : saneyuki/servo/window_helper, r=jdm
Fix #2418
2014-05-14 00:55:17 -04:00
Cameron Zwarich
a44e9e8e6c Remove addHTMLElement from Bindings.conf.
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207.
2014-05-13 21:40:36 -07:00
bors-servo
48b1938ca3 auto merge of #2394 : Ms2ger/servo/instantiateJSToNativeConversionTemplate, r=jdm
This moves all the handling of optional arguments into `CGArgumentConverter`, and leaves `instantiateJSToNativeConversionTemplate` to only deal with the declaration of stack variables.
2014-05-14 00:25:17 -04:00
Tetsuharu OHZEKI
facffe0966 Move Window helper methods to a WindowHelpers trait 2014-05-14 13:14:29 +09:00
bors-servo
6871e4ccb6 auto merge of #2420 : Ms2ger/servo/merge-Page-PageTree, r=pcwalton 2014-05-13 23:52:21 -04:00