Closed Bug 486707 Opened 15 years ago Closed 15 years ago

unable to search through the whole history in the Library

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.6a1

People

(Reporter: crazy-daniel, Assigned: mak)

References

Details

(Keywords: regression, verified1.9.1)

Attachments

(1 file)

In the Library, when you click on the top "History" item on the left side, you can't use the Library's search input field.
If you try, the search result will only show the folders "Today", "This month", etc.

I'd expect that in this case the search would look into all History containers, like it's done in the History sidebar or in the Library itself, when searching through all bookmarks on the "All Bookmarks" directory.
Placing on the blocking radar, this might land on 3.5 and that would be a serious usability regression...
Flags: blocking-firefox3.6?
The problem you describe is a little vague.  Could you post the version of Firefox you're using, exact steps to reproduce, your expected results, and the precise actual results?
Ah, I see it.  Marco, maybe a problem with bug 422163.

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090403 Minefield/3.6a1pre

STR:
1. Open Places Library.
2. Click History in left pane.
3. Search for anything in the search box.

Actual results:
The containers "Today", "Last 7 days", "This month" appear in right content pane.

Expected results:
The history items that match my search should appear in the right content pane.

Problem not present in 20090402 nightly.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Attached patch patch v1.0Splinter Review
Attachment #371438 - Flags: review?(dietrich)
Flags: in-testsuite?
Comment on attachment 371438 [details] [diff] [review]
patch v1.0


>     case "history":
>       if (currentOptions.queryType != Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY) {
>         var query = PlacesUtils.history.getNewQuery();
>         query.searchTerms = filterString;
>         var options = currentOptions.clone();
>+        // Make sure we're getting uri results.
>+        options.resultType = currentOptions.RESULT_TYPE_URI;
>         options.queryType = Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY;
>         content.load([query], options);
>       }

why not push this into applyFilter() as well?

r=me w/ this answered/addressed.
Attachment #371438 - Flags: review?(dietrich) → review+
because when this happens we are searching through bookmarks, and the user asks to search through history, if we directly pass to applyFilter we will continue to search through bookmarks. And if we would set content.load and then call applyFilter we would execute the query 2 times, one with wrong resultType and one with correct one...
so better simply executing directly the correct query.
http://hg.mozilla.org/mozilla-central/rev/62f84feb3805
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Flags: in-testsuite+
Flags: blocking-firefox3.6?
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
Verified fixed using hourly build: 

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre) Gecko/20090408 Minefield/3.6a1pre Firefox/3.0.7 ID:20090408072231
Status: RESOLVED → VERIFIED
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre)
Gecko/20090414 Shiretoko/3.5b4pre
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: