api.History.back - Safari limitations
Nobody has claimed this yet.
- Dominant language
- JSON
- Stars
- 5.8k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 186
Description
What information was incorrect, unhelpful, or incomplete?
Safari is shown as fully supporting History, including History.back.
What did you expect to see?
I would have liked to see a note that Safari limits at least some usages of History when it cannot trace them back directly enough to user action. I was unable to quickly find documentation from Safari about the specifics of these restrictions. I expected MDN to at least mention the existence and general nature of the limitations.
For an example of the general kind of note I expected, on there's this text on another page:
For security reasons the
Historyobject doesn't allow the non-privileged code to access the URLs of other pages in the session history, but it does allow it to navigate the session history.
As an additional item, that note actually seems to counterfactually assert that the navigation methods work without security concerns.
Did you test this? If so, how?
I attempted to use back in an apparently too indirect manner and discovered the issue via testing in Safari. Internet searches appear to confirm that Safari intentionally ignores some invocations of navigation methods based on security grounds. I consulted MDN for the specifics of what was allowed, but I found no mention of the limitations.
MDN page report details
- Query:
api.History.back - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/History/back
- Report started: 2021-08-02T13:51:30.338Z
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the MDN History.back page and the reported Safari behavior, then verify which navigation-method invocations Safari restricts for security reasons. Done means documenting the general limitation in the compatibility information and reviewing the related Window.history wording for the counterfactual claim.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100