DescriptionSettings: manage location.hash explicitly on a Page.
Maintain the current hash associated each Page's state and use that rather than
querying location.hash directly. This fixes several long-standing issues with
the settings search page and the back/forward list:
- Opening an overlay from a search page no longer keeps the fragment in the
URL.
- Closing an overlay no longer loses the search in the URL.
- Navigating back from one search page to another actually works.
- Navigating back from the search page doesn't clear the search box.
Add tests for this behavior.
BUG=410204
Committed: https://crrev.com/3c4d33472f6cf253d5cfbc38f3620f2f4d282ad6
Cr-Commit-Position: refs/heads/master@{#294614}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : help.js #
Total comments: 8
Patch Set 4 : dbeam comments #
Messages
Total messages: 13 (4 generated)
|