• Aatube@kbin.melroy.org
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    9 个月前

    I wonder what exactly the safeguards are, since I’m developing something that should manipulate the history state for quality of life.

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      9
      ·
      9 个月前

      From the text it seems like a site only gets added to the navigation history if the user interacts with it.

      • chaospatterns@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        9 个月前

        Which stops malicious usage, but doesn’t stop cases where web pages over use pushState as users move around instead of replaceState. I’ve seen maps that would add to the history every time a user moves around the map.

        • kevincox@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          9 个月前

          It would be nice if there was a shortcut to go “back to previous site”. Because on one hand using back to navigate around map moves is often very convenient, but sometimes I want to go to the site before the map. Having a two-level history with page and site would be super useful.