Closed
Bug 1484849
Opened 6 years ago
Closed 6 years ago
history.go(0) should reload the current page and not involve the entire session history
Categories
(Core :: DOM: Navigation, defect, P2)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: perry, Assigned: perry)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Comment hidden (obsolete) |
Assignee | ||
Comment 2•6 years ago
|
||
Blocks bug 1456479 because history.go(0) [0] reloads the entire outer window, restarting the WPTs and infinite-looping rather than just reloading the inner iframe.
[0] https://searchfox.org/mozilla-central/rev/71ef4447db179639be9eff4471f32a95423962d7/testing/web-platform/tests/service-workers/service-worker/fetch-event.https.html#526
Comment 3•6 years ago
|
||
Did you test what other browsers do?
(HTML spec's session history definition isn't web compatible and doesn't match even closely to any browser implementation.)
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #3)
> Did you test what other browsers do?
> (HTML spec's session history definition isn't web compatible and doesn't
> match even closely to any browser implementation.)
On macOS, both Chrome and Safari only reload the iframe without reloading the outer window. I have a short fix to account for this case that doesn't seem to break any WPT: https://treeherder.mozilla.org/#/jobs?repo=try&revision=49fc1171659fc8f53ba635cf86efeb04de0ab7cd
Comment hidden (obsolete) |
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → perry
Status: NEW → ASSIGNED
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Comment 6•6 years ago
|
||
Given that other browsers have this behavior, the proposed/candidate change didn't break any tests [0], and the spec indicates "When the go(delta) method is invoked, if delta is zero, the user agent must act as if the location.reload() method was called instead" [1], should we go forward with a fix?
[0] https://treeherder.mozilla.org/#/jobs?repo=try&revision=c96dcfab43a31305090b2081553f9eac4a0c82b5
[1] https://html.spec.whatwg.org/multipage/history.html#the-history-interface (need to scroll down a bit)
Flags: needinfo?(bugs)
Comment 7•6 years ago
|
||
Yeah, ok, sounds reasonable. Need to ensure there are some wpt tests for this.
Flags: needinfo?(bugs)
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by rvandermeulen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/858b41d7b9ed
history.go(0) should reload the current page and not involve the entire session history r=smaug
Keywords: checkin-needed
Comment 10•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13480 for changes under testing/web-platform/tests
Can't merge web-platform-tests PR due to failing upstream checks:
Github PR https://github.com/web-platform-tests/wpt/pull/13480
* continuous-integration/travis-ci/pr (https://travis-ci.org/web-platform-tests/wpt/builds/440463121?utm_source=github_status&utm_medium=notification)
Comment 13•6 years ago
|
||
Seems to have failed the stability check.
ERROR:/home/travis/build/web-platform-tests/wpt/tools/ci:| `/html/browsers/history/the-history-interface/iframe_history_go_0.html` | `iframe's history.go(0) performs a location.reload()` | **TIMEOUT: 5/10, MISSING: 5/10** | `Test timed out` |
Flags: needinfo?(perry)
Comment 14•6 years ago
|
||
I re-triggered the travis CI job because there was an error that made it look like a test infra failure due to a marionette related race not having something clobbered into a global at the right time:
JavaScript error: tools/wptrunner/wptrunner/executors/executormarionette.py, line 70: TypeError: window.win.timeout is not a function
The run succeeded. So now the question is whether the bot will notice or we should hit the merge button ourselves...
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(perry)
Comment 15•6 years ago
|
||
I hit the merge button at https://github.com/web-platform-tests/wpt/pull/13480 and filed bug 1498655 on the marionette/wptrunner failure.
Upstream PR merged
Upstream PR merged
Upstream PR merged
You need to log in
before you can comment on or make changes to this bug.
Description
•