Open Bug 1522706 Opened 3 years ago Updated 18 days ago

History.pushState limit may be too low for some live sites

Categories

(Core :: DOM: Navigation, enhancement, P3)

enhancement

Tracking

()

Webcompat Priority revisit
Tracking Status
firefox66 --- affected

People

(Reporter: twisniewski, Unassigned)

References

Details

(Whiteboard: [webcompat])

While I personally consider it an abuse of the history pushState mechanism, there is at least one site using it with larger amounts of data (several hundred k per pushState at bol.com when the user changes pages to see more products).

It might be worth revisiting this limit for the sake of interop, though I'm not sure if Chrome has a set limit or something heuristically-driven.

If nothing else I would at least recommend changing the error that's thrown to something more informative than throwing a generic NS_ERROR_ILLEGAL_VALUE exception.

Flags: webcompat?

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

The current limit is 2MB (https://searchfox.org/mozilla-central/rev/f372470e10c8cb0691681603a1d6324dee5b3b8a/docshell/base/nsDocShell.cpp#) which is already too large for session history.

Priority: -- → P3
Webcompat Priority: ? → revisit

This is also affecting the ASDA store locator page.

You need to log in before you can comment on or make changes to this bug.