Add more info to the history.state object when navigating through the in-content preferences

NEW
Unassigned

Status

()

Firefox
Preferences
4 years ago
4 years ago

People

(Reporter: jaws, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

From bug 754304 comment #24:

> +  categories.selectedItem = item;
> +  window.history.replaceState(category, document.title);

Side-note: IMO we shouldn't assume the only state we want to store is the category so I would prefer if we used an category was just a property on a new object. It'd be good to fix this before it gets relied upon e.g. in tests or too much code. Theoretical Example:
{
  searchQuery: "proxy"
  category: "advanced"
  subCategory: "networking"
}
You need to log in before you can comment on or make changes to this bug.