Revision 23ecf31d3486c72b4fda870b0a5b5de5340aafb9 authored by Timothy Gu on 19 October 2018, 20:46:11 UTC, committed by Chromium WPT Sync on 19 October 2018, 20:46:11 UTC
This change aligns document.open() with the current HTML Standard, which
mandates that in addition to setting the document's URL to the last-entered
document's, the document's current history item's URL must also be updated à la
history.replaceState().

To accomplish that, this CL reuses the logic in History::StateObjectAdded(),
including the throttling behavior, for Document::open() as well. The update
steps are run unconditionally, no matter what the document's current URL is, in
order to have consistent behavior for other things in the history entry like
POST form data, which document.open() now erases.

This also means that document.open() now also counts as a navigation, just like
history.replaceState(). Several browsertests are updated as such.

In this CL, we also enables some WPTs that were previously disabled; in
particular, reload.window.html has been enabled to converge to WebKit's
behavior.

Bug: 68833, 866274
Change-Id: Iea6d665fd97bcaee44bcfaa45f8e92c356003d8a
1 parent 64fed93
History
File Mode Size
rebased
META.yml -rw-r--r-- 90 bytes
README.html -rw-r--r-- 6.3 KB
data-uri-image-data-uri-description-manual.html -rw-r--r-- 11.1 KB
data-uri-image-external-description-fragment-manual.html -rw-r--r-- 10.9 KB
data-uri-image-external-description-manual.html -rw-r--r-- 10.8 KB
data-uri-image-internal-description-manual.html -rw-r--r-- 11.6 KB
empty-image-data-uri-description-manual.html -rw-r--r-- 445 bytes
empty-image-external-description-fragment-manual.html -rw-r--r-- 210 bytes
empty-image-external-description-manual.html -rw-r--r-- 183 bytes
empty-image-internal-description-manual.html -rw-r--r-- 917 bytes
empty-longdesc-manual.html -rw-r--r-- 301 bytes
external-image-data-uri-description-girt-by-spaces-manual.html -rw-r--r-- 485 bytes
external-image-data-uri-description-manual.html -rw-r--r-- 459 bytes
external-image-external-description-fragment-girt-by-spaces-manual.html -rw-r--r-- 248 bytes
external-image-external-description-fragment-manual.html -rw-r--r-- 223 bytes
external-image-external-description-girt-by-spaces-manual.html -rw-r--r-- 222 bytes
external-image-external-description-manual.html -rw-r--r-- 196 bytes
external-image-internal-description-girt-by-spaces-manual.html -rw-r--r-- 957 bytes
external-image-internal-description-manual.html -rw-r--r-- 931 bytes
external-image-with-absolute-base-external-description-manual.html -rw-r--r-- 633 bytes
external-image-with-relative-base-external-description-manual.html -rw-r--r-- 357 bytes
fail-fragment-pointer-manual.html -rw-r--r-- 223 bytes
fail-fragment.html -rw-r--r-- 1.5 KB
fail.html -rw-r--r-- 193 bytes
iframe-discoverability-manual.html -rw-r--r-- 463 bytes
invalid-longdesc-manual.html -rw-r--r-- 235 bytes
pass-fragment.html -rw-r--r-- 1.4 KB
pass.html -rw-r--r-- 777 bytes
picture.png -rw-r--r-- 4.3 KB
reflected-changing-longdesc-manual.html -rw-r--r-- 508 bytes

README.html

back to top