Tetsuharu OHZEKI
3e558fdcb1
JSRef<T> & Root<T> contains '*T' instead of RefCell.
2014-05-30 03:18:40 +09:00
Manish Goregaokar
6f728cb2ca
Enable inline event handlers for XHR, and add most progressevent calls
2014-05-29 21:39:15 +05:30
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
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
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
Ms2ger
cb9d875aef
Handle all attributes coming from the HTML parser ( fixes #1976 ).
2014-05-13 12:28:15 +02:00
bors-servo
fbcfe78bf6
auto merge of #2388 : zwarich/servo/cssom, r=jdm
...
Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.
This is the first step towards #1721 .
2014-05-12 16:46:10 -04:00
Ms2ger
d095c42eaf
Move the loading of documents in iframes into HTMLIFrameElement.
...
Right now, the load is kicked off inside the parser glue. This is unfortunate
for several reasons:
1) we'd like to replace the current parser (libhubbub) by our own parser,
written in Rust, so code intertwined with the parser will have to be
rewritten;
2) it is impossible to support dynamically (i.e. from script) created iframes
in this way;
3) the code flow around loading subdocuments is complicated needlessly.
This commit adds the constellation channel (on which the message to actually
load the document is sent) as a field on the Page, to allow HTMLIFrameElement
to access it.
In rewriting the code, support for dynamically created iframes is added, and
a task failure is avoided when the value of the src attribute can not be
parsed.
2014-05-12 21:21:03 +02:00
Ms2ger
ab5bf80447
Drop the pointless indirection in Window::active_timers.
2014-05-12 17:15:35 +02:00
Ms2ger
8e9e930e3d
Remove unused and misnamed url field on HTMLIFrameElement.
2014-05-11 20:37:55 +02:00
Ms2ger
30fcf7ed61
Remove the isOptional argument and the dealWithOptional return value from getJSToNativeConversionTemplate.
...
Note that dictionaries currently don't support members without default values
right now.
This commit does not change the generated code.
2014-05-10 11:00:01 +02:00
Ms2ger
6ed924f515
Remove the argcAndIndex argument from instantiateJSToNativeConversionTemplate.
...
This commit does not change the generated code.
2014-05-10 10:50:10 +02:00