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

NEW
Unassigned

Status

()

P5
normal
11 years ago
5 months ago

People

(Reporter: jst, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 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.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.