Auto merge of #7228 - nox:urlutils-setters, r=jdm

Implement setters in URLUtils

This fixes #6145 and takes care of most of #4250.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7228)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-30 12:40:53 -06:00
commit 347e9b6ef4
5 changed files with 220 additions and 81 deletions

View file

@ -7,27 +7,19 @@
[NoInterfaceObject]
interface URLUtils {
//stringifier attribute USVString href;
readonly attribute USVString href;
[SetterThrows]
attribute USVString href;
//readonly attribute USVString origin;
// attribute USVString protocol;
readonly attribute USVString protocol;
// attribute USVString username;
readonly attribute USVString username;
// attribute USVString password;
readonly attribute USVString password;
// attribute USVString host;
readonly attribute USVString host;
// attribute USVString hostname;
readonly attribute USVString hostname;
// attribute USVString port;
readonly attribute USVString port;
// attribute USVString pathname;
readonly attribute USVString pathname;
// attribute USVString search;
readonly attribute USVString search;
attribute USVString protocol;
attribute USVString username;
attribute USVString password;
attribute USVString host;
attribute USVString hostname;
attribute USVString port;
attribute USVString pathname;
attribute USVString search;
// attribute URLSearchParams searchParams;
// attribute USVString hash;
readonly attribute USVString hash;
attribute USVString hash;
// This is only doing as well as gecko right now, bug 824857 is on file for
// adding attribute stringifier support.