Open Bug 429759 Opened 16 years ago Updated 2 years ago

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

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: jst, Unassigned)

Details

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.