<!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13413 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 72e4c6dc21c132d49cf0a5f68a3ba45d16cc8322
30 lines
1018 B
Plaintext
30 lines
1018 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://html.spec.whatwg.org/multipage/#location
|
|
[Exposed=(Window,Worker), Unforgeable] interface Location {
|
|
/*stringifier*/ attribute USVString href;
|
|
readonly attribute USVString origin;
|
|
attribute USVString protocol;
|
|
attribute USVString host;
|
|
attribute USVString hostname;
|
|
attribute USVString port;
|
|
attribute USVString pathname;
|
|
attribute USVString search;
|
|
attribute USVString hash;
|
|
|
|
[Throws]
|
|
void assign(USVString url);
|
|
[Throws]
|
|
void replace(USVString url);
|
|
void reload();
|
|
|
|
//[SameObject] readonly attribute USVString[] ancestorOrigins;
|
|
|
|
// This is only doing as well as gecko right now.
|
|
// https://github.com/servo/servo/issues/7590 is on file for
|
|
// adding attribute stringifier support.
|
|
stringifier;
|
|
};
|