Accessing history.previous throws exception when there's no previous page.

NEW
Unassigned

Status

()

Core
DOM: Core & HTML
10 years ago
10 years ago

People

(Reporter: jst, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
Seems like there's really no reason to throw an exception in the case where there is no previous page here (i.e. the current page is the first page in a window), returning an empty (void) string would be plenty good IMO. Now, history.previous requires UniversalBrowserRead, so nobody really cares, but still.

This would be a good first bug btw, if some wants to chime in.

This came up as part of crowder's investigation of bug 426131.
You need to log in before you can comment on or make changes to this bug.