Auto merge of #13418 - stshine:location-replace, r=KiChjang

Make document url mutable and implement location.replace()

<!-- 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. -->

<!-- Reviewable:start -->

---

This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13418)

<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-11-20 02:27:54 -06:00 committed by GitHub
commit 72e4c6dc21
26 changed files with 117 additions and 156 deletions

View file

@ -1,5 +0,0 @@
[001.html]
type: testharness
[Fragment Navigation: Updating document address]
expected: FAIL

View file

@ -1,5 +0,0 @@
[002.html]
type: testharness
[Fragment Navigation: Updating document address twice]
expected: FAIL

View file

@ -1,5 +0,0 @@
[003.html]
type: testharness
[Fragment Navigation: Updating scroll position]
expected: FAIL

View file

@ -1,5 +0,0 @@
[scroll-to-anchor-name.html]
type: testharness
[Fragment Navigation: scroll to anchor name is lower priority than equal id]
expected: FAIL

View file

@ -1,11 +1,10 @@
[004.html]
type: testharness
[.go commands should be queued until the thread has ended]
expected: FAIL
[browser needs to support hashchange events for this testcase]
expected: FAIL
[queued .go commands should all be executed when the queue is processed]
expected: FAIL
[history position should be calculated when executing, not when calling the .go command]
expected: FAIL

View file

@ -1,5 +0,0 @@
[location_assign.html]
type: testharness
[location assign]
expected: FAIL

View file

@ -1,5 +0,0 @@
[location_replace.html]
type: testharness
[location replace]
expected: FAIL

View file

@ -5646,9 +5646,6 @@
[HTMLDirectoryElement interface: document.createElement("dir") must inherit property "compact" with the proper type (0)]
expected: FAIL
[Location interface: window.location must have own property "replace"]
expected: FAIL
[HTMLOptionElement must be primary interface of new Option()]
expected: FAIL
@ -6282,9 +6279,6 @@
[HTMLAreaElement interface: document.createElement("area") must inherit property "hash" with the proper type (19)]
expected: FAIL
[Location interface: calling replace(USVString) on window.location with too few arguments must throw TypeError]
expected: FAIL
[Location interface: window.location must have own property "ancestorOrigins"]
expected: FAIL

View file

@ -1,6 +1,4 @@
[028.html]
type: testharness
expected: ERROR
[ scheduler: javascript: URL]
expected: FAIL