Commit graph

2018 commits

Author SHA1 Message Date
bors-servo
c360b75e16 auto merge of #4854 : jdm/servo/workererr, r=jdm
...rker object.

Rebased from #4537.
2015-02-05 15:27:44 -07:00
Simon Sapin
a97893a3ed Parse filter: none 2015-02-06 09:11:29 +11:00
Simon Sapin
5baebb0d44 Requires at least one function in filter parsing. 2015-02-06 09:07:55 +11:00
Simon Sapin
00e7b56244 Serialize 'initial' as "initial", not as the inital value. 2015-02-06 08:52:59 +11:00
Sagar Muchhal
6699738cae Add console message support to devtools. Does not actually cause logging to occur in the remote console. 2015-02-05 21:44:07 +00:00
Shreya Bastikar
7309f2a428 Support firing error events from a dedicated worker at the containing worker object. 2015-02-05 21:42:10 +00:00
bors-servo
0a2bde1b6e auto merge of #4852 : jdm/servo/buffermessages, r=jdm
Rebased and squashed version of #4191.
2015-02-05 12:36:45 -07:00
Sagar Muchhal
5345edf51e Add flag to send live updates to devtools. 2015-02-05 19:26:59 +00:00
bors-servo
5c02f8956d auto merge of #4845 : KiChjang/servo/location-in-doc, r=jdm
Fixes #4840
2015-02-05 11:54:48 -07:00
Keith Yeung
af4b371107 Moved Location object from Window to Document 2015-02-06 02:13:23 +08:00
bors-servo
d439c0d16d auto merge of #4850 : Ms2ger/servo/root-deref, r=jdm 2015-02-05 10:51:50 -07:00
Ms2ger
4036206734 Remove the Root.jsref member.
It is simpler to just construct it when the methods are called.
2015-02-05 18:45:21 +01:00
Ms2ger
d8c2c88bbd Replace Root::deref by a custom get_unsound_ref_forever method.
This will hopefully make it clearer that this is not the correct function
to call.
2015-02-05 18:45:20 +01:00
bors-servo
a938bdf971 auto merge of #4848 : jdm/servo/devtoolsoops, r=Manishearth 2015-02-05 08:27:50 -07:00
Josh Matthews
b2b7baf914 Fix devtools implementation of downcastable actors. Fixes #4844. 2015-02-05 14:29:09 +00:00
Ms2ger
e596afe22d Document the DOM.
This is by no means complete, but it is a good place to start.
2015-02-05 14:41:12 +01:00
Ms2ger
8e9939d01f Fix a typo in the refcounted documentation. 2015-02-05 14:41:12 +01:00
bors-servo
40c59724b2 auto merge of #4838 : psdh/servo/local, r=jdm
#4601
2015-02-04 16:06:46 -07:00
Glenn Watson
0873e5c8ca Implement window.parent for iframes. 2015-02-05 07:04:04 +10:00
Prabhjyot Singh Sodhi
81dbcf505f Parsing sandbox attribute on iframe elements 2015-02-05 00:43:25 +05:30
bors-servo
7e3f504d94 auto merge of #4519 : jdm/servo/cookies, r=Ms2ger
As specified in http://tools.ietf.org/html/rfc6265. Requires https://github.com/servo/cookie-rs/pull/1. Tested against http://www.joshmatthews.net/cookie.php, http://www.html-kit.com/tools/cookietester/, https://github.com/login, and https://mobile.twitter.com/session/new .
2015-02-04 11:57:54 -07:00
Josh Matthews
a814ba4449 Use an option for the parser input. 2015-02-04 17:56:31 +00:00
bors-servo
58a3cdcbef auto merge of #4822 : KiChjang/servo/constellation-frame-handling, r=jdm
Attempt at fixing #4795. Code has been written to check for the existence for the current frame, but it seems to pass the condition every time.
2015-02-04 10:06:56 -07:00
Josh Matthews
03ec5a394c Add a spec link. 2015-02-04 13:37:01 +00:00
Josh Matthews
fb217ab24b Make XMLHttpRequest user-set headers be preserved across redirects. 2015-02-04 13:37:01 +00:00
Josh Matthews
542e8d52d5 Reorganize document creation so it occurs after we have a final URL. 2015-02-04 13:37:01 +00:00
Josh Matthews
94de93b3a3 Rename some variables for clarity. 2015-02-04 13:35:05 +00:00
Josh Matthews
1dbbc1b72d Use servo forks of hyper and cookie-rs for more lenient cookie parsing behaviour. 2015-02-04 13:35:05 +00:00
Josh Matthews
0c51a192d7 Address review comments. 2015-02-04 13:35:05 +00:00
Josh Matthews
d2444dd370 Implement document.cookies. 2015-02-04 13:35:05 +00:00
Josh Matthews
824709f178 Unify the get/set scookie APIs to make them both deal with raw strings. 2015-02-04 13:35:05 +00:00
Josh Matthews
504094aa84 Set cookie headers on the request, rather than the load data, to ensure they are used after redirects occur. 2015-02-04 13:35:05 +00:00
Josh Matthews
14df9f8a70 Differentiate between HTTP and non-HTTP APIs for cookie operations. Fix some incorrect cookie removal operation logic. Order the returned cookies according to the spec. Make cookie unit tests pass. 2015-02-04 13:35:05 +00:00
Josh Matthews
24c8896f88 Improve redirect behaviour to clear headers and reevaluate sent cookies. Implement storage-related cookie behaviour such as domain and path matching that cookie-rs doesn't require. Remove stored cookies when an empty value is stored. Document cookie code. 2015-02-04 13:35:05 +00:00
Josh Matthews
ae2b74c783 Make Document::url return the page's URL to avoid stale URLs after redirects. 2015-02-04 13:34:06 +00:00
Josh Matthews
19fbb9e568 Set the Content-Type header when submitting a urlencoded form. 2015-02-04 13:34:06 +00:00
Shamir Khodzha
3239aeacdc cookies and cookies storage implementation 2015-02-04 13:34:06 +00:00
bors-servo
e14c569ed0 auto merge of #4832 : Adenilson/servo/transparentBlack01, r=jdm
This patch set will implement a new helper function for transparent black, while changing the behavior of helper black() function returning opaque black by default.

It will also use the new Color equality operator to streamline the code in some points.
2015-02-04 04:21:49 -07:00
bors-servo
e0d4fd3594 auto merge of #4706 : gilles-leblanc/servo/issue-3740, r=jdm
Fixes #3740
2015-02-04 03:39:49 -07:00
Adenilson Cavalcanti
7a36634963 Using the equality operator in PaintContext. Pay attention this
is a change on behavior as we previously didn't test for alpha
channel.
2015-02-03 18:51:50 -08:00
Gilles Leblanc
a1804effaf Initialize trusted-ness of DOM events properly
Fixes #3740
2015-02-03 21:40:07 -05:00
Keith Yeung
37cb876f4e Changed Msg::KeyEvent to take in KeyState and moved the checks in CompositorTask::send_key_event to Compositor::handle_browser_message 2015-02-04 10:30:23 +08:00
Adenilson Cavalcanti
3088b8fc30 Using the new equality operator in LayoutTask. 2015-02-03 18:14:42 -08:00
Adenilson Cavalcanti
ffa23088ff Using the new transparent_black() in the proper places. 2015-02-03 18:08:30 -08:00
Adenilson Cavalcanti
e1db06475c There are cases where we need opaque black (e.g. border color) and
other cases where we need transparent black (e.g. clearing, root layers).
2015-02-03 17:40:50 -08:00
bors-servo
1e72608f5c auto merge of #4823 : Ms2ger/servo/warnings, r=jdm 2015-02-03 17:57:51 -07:00
bors-servo
902c16497c auto merge of #4815 : Swatinem/servo/lowercasegetters, r=Manishearth
The implementation was copied directly from
https://github.com/rust-lang/rust/pull/16636
and updated for rust changes, so the credit goes to @Manishearth
2015-02-03 17:09:53 -07:00
Martin Robinson
8855a25780 Revert "Using Color equality operators to streamline code" 2015-02-03 15:07:30 -08:00
Martin Robinson
728f723753 Merge pull request #4825 from Adenilson/usingColorOperators01
Using Color equality operators to streamline code
2015-02-03 11:12:44 -08:00
Adenilson Cavalcanti
cc404aba1a Using Color equality operators to streamline code in
PaintContext and LayoutTask.
2015-02-03 11:03:09 -08:00