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
cache-storage
service-worker
tools
META.yml -rw-r--r-- 125 bytes
specgen.json -rw-r--r-- 25.1 KB
stub-3.1-service-worker-obj.html -rw-r--r-- 1.9 KB
stub-3.1.1-service-worker-scope.html -rw-r--r-- 1.3 KB
stub-3.1.2-service-worker-url.html -rw-r--r-- 1.1 KB
stub-3.1.3-service-worker-state.html -rw-r--r-- 2.8 KB
stub-3.1.4-service-worker-on-state-change.html -rw-r--r-- 886 bytes
stub-3.2-navigator-service-worker.html -rw-r--r-- 2.9 KB
stub-3.2.1-navigator-service-worker-installing.html -rw-r--r-- 1.2 KB
stub-3.2.10-navigator-service-worker-oncontrollerchange.html -rw-r--r-- 1.4 KB
stub-3.2.11-navigator-service-worker-onreloadpage.html -rw-r--r-- 1.2 KB
stub-3.2.12-navigator-service-worker-onerror.html -rw-r--r-- 954 bytes
stub-3.2.2-navigator-service-worker-waiting.html -rw-r--r-- 848 bytes
stub-3.2.3-navigator-service-worker-active.html -rw-r--r-- 1.1 KB
stub-3.2.4-navigator-service-worker-controller.html -rw-r--r-- 995 bytes
stub-3.2.5-navigator-service-worker-ready.html -rw-r--r-- 2.2 KB
stub-3.2.6-navigator-service-worker-getAll.html -rw-r--r-- 699 bytes
stub-3.2.7-navigator-service-worker-register.html -rw-r--r-- 697 bytes
stub-3.2.8-navigator-service-worker-unregister.html -rw-r--r-- 681 bytes
stub-3.2.9-navigator-service-worker-onupdatefound.html -rw-r--r-- 1.2 KB
stub-4.1-service-worker-global-scope.html -rw-r--r-- 2.5 KB
stub-4.1.1-service-worker-global-scope-caches.html -rw-r--r-- 933 bytes
stub-4.1.2-service-worker-global-scope-clients.html -rw-r--r-- 785 bytes
stub-4.1.3-service-worker-global-scope-scope.html -rw-r--r-- 938 bytes
stub-4.1.4-service-worker-global-scope-fetch.html -rw-r--r-- 1.5 KB
stub-4.1.5-service-worker-global-scope-update.html -rw-r--r-- 982 bytes
stub-4.1.6-service-worker-global-scope-unregister.html -rw-r--r-- 676 bytes
stub-4.1.7-service-worker-global-scope-onmessage.html -rw-r--r-- 1.3 KB
stub-4.2-client.html -rw-r--r-- 1.9 KB
stub-4.3-service-worker-clients.html -rw-r--r-- 1.4 KB
stub-4.3.1-get-serviced-method.html -rw-r--r-- 777 bytes
stub-4.3.2-reloadall-method.html -rw-r--r-- 997 bytes
stub-4.4-request-objects.html -rw-r--r-- 2.0 KB
stub-4.5-response-objects.html -rw-r--r-- 2.2 KB
stub-4.5.2-response.html -rw-r--r-- 1017 bytes
stub-4.5.4-opaque-response.html -rw-r--r-- 942 bytes
stub-4.6-cache-objects.html -rw-r--r-- 1.0 KB
stub-4.6.1-cache-lifetimes.html -rw-r--r-- 1.2 KB
stub-4.6.2-cache.html -rw-r--r-- 2.1 KB
stub-4.6.3-cache-storage.html -rw-r--r-- 2.0 KB
stub-4.7.1-install-phase-event.html -rw-r--r-- 1.5 KB
stub-4.7.1.1-wait-until-method.html -rw-r--r-- 1.2 KB
stub-4.7.2-install-event.html -rw-r--r-- 832 bytes
stub-4.7.2.1-install-event-section.html -rw-r--r-- 1.3 KB
stub-4.7.2.2-replace-method.html -rw-r--r-- 921 bytes
stub-4.7.3-activate-event.html -rw-r--r-- 959 bytes
stub-4.7.4.1-fetch-event-section.html -rw-r--r-- 1.8 KB
stub-4.7.4.2-respond-with-method.html -rw-r--r-- 1.3 KB
stub-4.7.4.3-default-method.html -rw-r--r-- 1.3 KB
stub-4.7.4.4-is-reload-attribute.html -rw-r--r-- 824 bytes
stub-5.1-origin-relativity.html -rw-r--r-- 970 bytes
stub-5.2-cross-origin-resources.html -rw-r--r-- 1.7 KB

back to top