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
legacy-mb-japanese
legacy-mb-korean
legacy-mb-tchinese
resources
streams
META.yml -rw-r--r-- 91 bytes
api-basics.any.js -rw-r--r-- 2.0 KB
api-invalid-label.any.js -rw-r--r-- 756 bytes
api-replacement-encodings.any.js -rw-r--r-- 541 bytes
api-surrogates-utf8.any.js -rw-r--r-- 1.4 KB
big5-encoder.html -rw-r--r-- 1.8 KB
eof-shift_jis-ref.html -rw-r--r-- 141 bytes
eof-shift_jis.html -rw-r--r-- 188 bytes
eof-utf-8-one-ref.html -rw-r--r-- 142 bytes
eof-utf-8-one.html -rw-r--r-- 181 bytes
eof-utf-8-three-ref.html -rw-r--r-- 146 bytes
eof-utf-8-three.html -rw-r--r-- 189 bytes
eof-utf-8-two-ref.html -rw-r--r-- 142 bytes
eof-utf-8-two.html -rw-r--r-- 182 bytes
gb18030-encoder.html -rw-r--r-- 777 bytes
gbk-encoder.html -rw-r--r-- 773 bytes
idlharness.any.js -rw-r--r-- 301 bytes
iso-2022-jp-decoder.any.js -rw-r--r-- 3.0 KB
iso-2022-jp-encoder.html -rw-r--r-- 778 bytes
remove-only-one-bom.html -rw-r--r-- 671 bytes
replacement-encodings.any.js -rw-r--r-- 705 bytes
single-byte-decoder.html -rw-r--r-- 18.2 KB
textdecoder-byte-order-marks.any.js -rw-r--r-- 1.4 KB
textdecoder-copy.any.js -rw-r--r-- 442 bytes
textdecoder-fatal-single-byte.any.js -rw-r--r-- 2.7 KB
textdecoder-fatal-streaming.any.js -rw-r--r-- 1.5 KB
textdecoder-fatal.any.js -rw-r--r-- 3.9 KB
textdecoder-ignorebom.any.js -rw-r--r-- 1.7 KB
textdecoder-labels.any.js -rw-r--r-- 1.3 KB
textdecoder-streaming.any.js -rw-r--r-- 1.6 KB
textdecoder-utf16-surrogates.any.js -rw-r--r-- 1.2 KB
textencoder-constructor-non-utf.any.js -rw-r--r-- 667 bytes
textencoder-utf16-surrogates.any.js -rw-r--r-- 1.2 KB
unsupported-encodings.any.js -rw-r--r-- 1.3 KB
utf-32.html -rw-r--r-- 1.4 KB

back to top