Closed Bug 1525135 Opened 6 years ago Closed 6 years ago

Error in parameters description for browser.history.search

Categories

(developer.mozilla.org Graveyard :: API, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rovyko, Assigned: cmills)

Details

(Whiteboard: [specification][type:bug])

What did you do?

Under the query parameters, it is noted for endTime that "If it is supplied, this option excludes results whose lastVisitTime is later than this time".

What happened?

As per https://bugzilla.mozilla.org/show_bug.cgi?id=1419197, the search will return items that have ANY visits prior to endTime, not just the lastVisitTime.

What should have happened?

The documentation for endTime should be amended to match the Chrome documentation, as the functionality is intended to match Chrome.

from:

"If it is supplied, this option excludes results whose lastVisitTime is later than this time"

to:

"If it is supplied, this option limits results to those visited before this date".

Is there anything else we should know?

chris, this looks like a content bug, can you re-file on GitHub?

Flags: needinfo?(cmills)

I've read through this bug, and just decided to fix it instead, asn it's a pretty quick fix.

I updated the docs as suggested for the reporter — thanks for reporting this!

Assignee: nobody → cmills
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(cmills)
Resolution: --- → FIXED

Thank you for taking care of that Chris!

There's only one small detail that might be worth noting. startTime also mentions the use of lastVisitTime to limit results. I'm not sure if the PlacesUtils query is actually using lastVisitTime, but the result is the same.

(In reply to rovyko from comment #4)

Thank you for taking care of that Chris!

There's only one small detail that might be worth noting. startTime also mentions the use of lastVisitTime to limit results. I'm not sure if the PlacesUtils query is actually using lastVisitTime, but the result is the same.

Our page already mentions startTime using lastVisitTime; are you saying you think it shouldn't do?

Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.