Closed
Bug 424769
Opened 17 years ago
Closed 17 years ago
Smart bookmarks Recent Tags menu contains self reference (PPC Mac)
Categories
(Firefox :: Bookmarks & History, defect, P2)
Tracking
()
VERIFIED
FIXED
Firefox 3
People
(Reporter: cmhofman, Assigned: mak)
References
Details
Attachments
(2 files)
10.07 KB,
application/zip
|
Details | |
1.04 KB,
patch
|
dietrich
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032304 Minefield/3.0b5pre
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9b5pre) Gecko/2008032304 Minefield/3.0b5pre
The Smart Bookmarks menu really is running crazy. In particular the Recent Tags item always has a "(no title)" submenu, which really gets out of bounds. Submenus go infinitely deep, and some submenus refer back to the Smart Bookmarks. This leads to circular menus and a serious hang on Mac OS X (see bug 400291).
Reproducible: Always
Steps to Reproduce:
1. Click Smart Bookmarks,
2. Select Recent Tags
3. Select (no title)
4. Select Bookmarks Toolbar
5. Select Smart Bookmarks
6. Select Recent Tags
7. ...
Actual Results:
I can go on as long as I want
Expected Results:
Submenus should never go to a very deep level. And certainly not be self referring.
Moreover, I fail to see the relevance of the whole (no title) submenu of the Recent Tags, and in fact what they have to do with Recent Tags. It should just be removed. This is very bad UI. For the rest the Smart Bookmarks is a great addition.
Reporter | ||
Comment 1•17 years ago
|
||
It seems to me that this is unintended. It also apparently does not appear on some computers (apparently it appears on Macbooks, but not on Powerbooks). So let me list what I see for the Recent Tags hierarchy:
Recent Tags
(no title)
Tags
...
Unfiled Bookmarks
...
Bookmarks Toolbar
...
Bookmarks Menu
...
(no title)
...
(no title)
...
Submenus go on foir a while (infinitely). I'm pretty sure that the content of the Tags submenu should actually be the content of the Recent Tags menu. It contains submenus for each recently added tag, containing the bookmarks with that tag. All the rest of the (sub)menus shouldn't be there. The location for the Recent Tags item is place:type=6&sort=14&maxResults=10 which should be correct.
Reporter | ||
Comment 2•17 years ago
|
||
Raised to critical, as it leads to a never ending hang on Mac OS X 10.5.
Severity: normal → critical
Reporter | ||
Comment 3•17 years ago
|
||
Changed component to Places, as I believe this is caused by a bug in following the query. The menus being wrong is only a result from that.
Component: Menus → Places
Updated•17 years ago
|
QA Contact: menus → places
Comment 4•17 years ago
|
||
Confirming using Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008032804 Minefield/3.0pre. Nominating since we should have parity with what shows appears Intel Mac. I am testing on a PPC Mac G5 Dual 1.8 GHz.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox3?
Summary: Smart bookmarks running crazy, contains self reference → Smart bookmarks Recent Tags menu contains self reference (PPC Mac)
Version: unspecified → Trunk
Reporter | ||
Comment 5•17 years ago
|
||
Steven Michaud in the bug 400291 tracker suggested this might be due to a big-endian/little-endian issue in accessing 32 bit integers somewhere. Seems plausible to me.
And I'd say having parity between different Macs is about the least relevant reason to nominate this, there are issues with this that are much more critical (compare bug 400291 and bug 424884).
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Updated•17 years ago
|
Priority: -- → P2
Target Milestone: --- → Firefox 3
Reporter | ||
Comment 6•17 years ago
|
||
This issue should have definitely made the Known Issues for FF 3.0b5, if not downright be a showstopper.
Comment 7•17 years ago
|
||
er, that seems really broken. Can you first back up your current bookmarks and then reset browser.places.createdSmartBookmarks and see if the recreated smart bookmarks exhibit this behaviour?
Also, the bug title has PPC Mac, but a comment says it happens on macbooks, not powerbooks...
Reporter | ||
Comment 8•17 years ago
|
||
> er, that seems really broken. Can you first back up your current bookmarks and
> then reset browser.places.createdSmartBookmarks and see if the recreated smart
> bookmarks exhibit this behaviour?
That's the problem: it's in the Smart Bookmarks menu generated by FF/Minefield. You can also compare the location I gave above, and see it's the one generated by FF.
> Also, the bug title has PPC Mac, but a comment says it happens on macbooks, not
> powerbooks...
Sorry, that's a typo. It should be reversed.
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: Macintosh → All
Comment 9•17 years ago
|
||
From comment #0, it seems that you've tagged the Toolbar folder in the left pane of the organizer. Can you click on that folder, and check the details pane to see if is tagged?
The "no title" tag container is mysterious though. Bug 424884 will have fixed the infinite menu portion of this.
However, we should not be able to get to a state where a tag container has no title.
Depends on: 424884
Updated•17 years ago
|
OS: All → Mac OS X
Hardware: All → Macintosh
Comment 10•17 years ago
|
||
Marcia, did you confirm this with a new profile? If you can reproduce with a new profile, please attach the places.sqlite file.
Comment 11•17 years ago
|
||
Here is my file from the latest nightly, using a fresh profile. Note you don't have to do anything to get the Recent Tags to show the "No Title" it happens out of the box.
Reporter | ||
Comment 12•17 years ago
|
||
(In reply to comment #9)
> From comment #0, it seems that you've tagged the Toolbar folder in the left
> pane of the organizer. Can you click on that folder, and check the details pane
> to see if is tagged?
>
No and no. This has nothing to do with anything *I* did, it is generated this way by FF. This is confirmed by several users on PPC macs.
> The "no title" tag container is mysterious though. Bug 424884 will have fixed
> the infinite menu portion of this.
>
That's incorrect, this is not fixed by adding excludeQueries (I said this somewhere else, either in this bug or a related one).
> However, we should not be able to get to a state where a tag container has no
> title.
>
The point is that the whole Recent Tags menu is garbage (on PPC macs). The generated content has no relationship with tags whatsoever. So the question is not whether the query is right or not, but rather the parsing code has some more serious bug, probably involving a big-endian/little-endian issue or something.
> Marcia, did you confirm this with a new profile? If you can reproduce with a
> new profile, please attach the places.sqlite file.
No point in checking this, as I've done that lots of times now, as well as other users. And it's not relevant to the problem, because it's not the query that's wrong.
Reporter | ||
Comment 13•17 years ago
|
||
(In reply to comment #12)
> (In reply to comment #9)
> > The "no title" tag container is mysterious though. Bug 424884 will have fixed
> > the infinite menu portion of this.
> >
>
> That's incorrect, this is not fixed by adding excludeQueries (I said this
> somewhere else, either in this bug or a related one).
>
The infinite menu indeed seems to have gone. But the menu is still a mess, and the repetitive inclusion of large menus (such as the bookmarks menu) leads to a serious slow down in showing the Help menu.
Assignee | ||
Comment 14•17 years ago
|
||
we have a new query for tag containers (at least for the smart query, temporary we have the fix in the Library only for new profiles). This new query is a real query, so should not allow anything created inside it that is not created through the tagging service.
So please, try this with nightly with fix for bug 419731 and a NEW profile, and report if still an issue.
Reporter | ||
Comment 15•17 years ago
|
||
(In reply to comment #14)
> we have a new query for tag containers (at least for the smart query, temporary
> we have the fix in the Library only for new profiles). This new query is a real
> query, so should not allow anything created inside it that is not created
> through the tagging service.
> So please, try this with nightly with fix for bug 419731 and a NEW profile, and
> report if still an issue.
>
Here's my result with the latest nightly Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008041104 Minefield/3.0pre, and a new profile. The Recent Tags item still has the same query (place:type=6&sort=14&maxResults=10) and is still the same mess (though without the self reference, as in my Comment # 13).
Assignee | ||
Comment 16•17 years ago
|
||
yes, query has not changed, still subqueries (aka tag containers) are no more folders. Results should come out directly from sqlite and simply filtered out to remove dupes. Do you see results that have not been tagged at all, or missing results?
Reporter | ||
Comment 17•17 years ago
|
||
(In reply to comment #16)
> yes, query has not changed, still subqueries (aka tag containers) are no more
> folders. Results should come out directly from sqlite and simply filtered out
> to remove dupes. Do you see results that have not been tagged at all, or
> missing results?
>
As I said, what I see is the mess I've described in Comment #1. Not a list of tagged items or anything. This has not changed. So even though the mess is not a critical mess anymore, it's still a mess.
Assignee | ||
Comment 18•17 years ago
|
||
from there feels like your system is returning the library left pane folder instead of the tag root :\
Assignee | ||
Comment 19•17 years ago
|
||
i've done some testing in a pearPC emulated machine, i can use minefield and i see the (no title) folder under Recent Tags. I'm not still able to compile there but it's a first step.
From first analysis it appear a problem in SelectAsTag:
nsNavHistory* history = nsNavHistory::GetHistoryService();
NS_ENSURE_STATE(history);
// This allows sorting by date fields what is not possible with
// other history queries.
mHasDateColumns = PR_TRUE;
mQueryString = nsPrintfCString(2048,
"SELECT null, 'place:folder=' || id || '&queryType=%d&type=%ld', "
"title, null, null, null, null, null, null, dateAdded, lastModified "
"FROM moz_bookmarks "
"WHERE parent = %ld",
nsINavHistoryQueryOptions::QUERY_TYPE_BOOKMARKS,
nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS,
history->GetTagsFolder());
for some reason on PPC the WHERE clause becomes WHERE parent = 0, insted of WHERE parent = 4, so it selects the bookmarks root that has no title, and is containing anything because RESULTS_AS_TAG_CONTENTS can't find tagged items inside.
i don't know if that's a problem with history->GetTagsFolder() or rather with nsPrintfCString. If someone can compile on ppc i would try changing this code and see results. Clearly i can't be sure of this, but the db is correct and RESULTS_AS_TAG_CONTENTS is returning correct items, everything other works fine, so it's the only code i can think of actually.
Reporter | ||
Comment 20•17 years ago
|
||
Seems to confirm a short/long endian problem. It seems GetTagsFolder returns an Int64, while ints on PPC are always Int32. That's always dangerous. I'd say it should help to cast history->GetTagsFolder() to a long? That is what Apple says you should do for %ld (for NSInteger though, but that is a similar beast).
Reporter | ||
Comment 21•17 years ago
|
||
Another solution might be to use an %lld specifier instead of %ld, because a long long is (almost) always an Int64, while a long may often be an Int32 (and is for sure on a PPC Mac).
Assignee | ||
Comment 22•17 years ago
|
||
(In reply to comment #21)
> Another solution might be to use an %lld specifier instead of %ld, because a
> long long is (almost) always an Int64, while a long may often be an Int32 (and
> is for sure on a PPC Mac).
lol, i was about posting the same solution :) Do we have a PPC tryserver?!
Assignee | ||
Comment 23•17 years ago
|
||
let's see if this is enough
Attachment #315753 -
Flags: review?(dietrich)
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → mak77
Assignee | ||
Comment 24•17 years ago
|
||
notice i've checked if we had this problem elsewhere, but other %ld (for example result type, query type) are unsigned short ints so they should not have any problem
Comment 25•17 years ago
|
||
Comment on attachment 315753 [details] [diff] [review]
patch
r=me, good catch.
Attachment #315753 -
Flags: review?(dietrich) → review+
Updated•17 years ago
|
Attachment #315753 -
Flags: approval1.9?
Comment 26•17 years ago
|
||
Comment on attachment 315753 [details] [diff] [review]
patch
a1.9=beltzner
Attachment #315753 -
Flags: approval1.9? → approval1.9+
Comment 27•17 years ago
|
||
Checking in toolkit/components/places/src/nsNavHistory.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp
new revision: 1.293; previous revision: 1.292
done
Comment 28•17 years ago
|
||
once the mac hourly ppc build is ready, can someone with ppc test it?
Keywords: qawanted
Updated•17 years ago
|
Whiteboard: [has patch][has reviews]
Comment 29•17 years ago
|
||
verified fixed using Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008041513 Minefield/3.0pre, which is the hourly build. Final verification will occur with tomorrow's build.
Comment 30•17 years ago
|
||
thanks Marcia!
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: qawanted
Resolution: --- → FIXED
Whiteboard: [has patch][has reviews]
Reporter | ||
Comment 31•17 years ago
|
||
I'm sorry I have to break the party, this problem has not been fixed completely in today's nightly. The mess has gone for the most part. But I still see a weird duplication of the Recent Tags menu. That is, the Recent Tags menu consists of a menu containing one item: a Recent tags menu. Only then do I see the expected (empty) tags menu. That does not seem right to me. So I think one level up there may be a similar problem.
Reporter | ||
Comment 32•17 years ago
|
||
And on a new profile the second Recent Tags is replaced again with (no title). So I get:
Recent Tags > (no title) > (Empty)
Also, the (Empty) item remains, even after I add some tags (and restart).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 33•17 years ago
|
||
Christiaan: Did you test the hourly build (in the tinderbox directory?). If so, I did not see what you see using a new profile. Tomorrow's build will have the fix dietrich landed.
(In reply to comment #32)
> And on a new profile the second Recent Tags is replaced again with (no title).
> So I get:
>
> Recent Tags > (no title) > (Empty)
>
> Also, the (Empty) item remains, even after I add some tags (and restart).
>
Assignee | ||
Comment 34•17 years ago
|
||
for me instead this is fixed, i've tested now with 20080415_1409_firefox-3.0pre.en-US.mac.dmg and it's correctly showing tags (while before the patch i was seeing what Christiaan is reporting in comment #32). will try with a new profile and deleting all tags, but the issue appear fixed for now.
Reporter | ||
Comment 35•17 years ago
|
||
(In reply to comment #33)
> Christiaan: Did you test the hourly build (in the tinderbox directory?). If so,
Guess not, as I don't know what tinderbox is.
> I did not see what you see using a new profile. Tomorrow's build will have the
> fix dietrich landed.
I'm using the latest nightly build, and it does look different from before.
>
> (In reply to comment #32)
> > And on a new profile the second Recent Tags is replaced again with (no title).
> > So I get:
> >
> > Recent Tags > (no title) > (Empty)
> >
> > Also, the (Empty) item remains, even after I add some tags (and restart).
> >
>
Assignee | ||
Comment 36•17 years ago
|
||
tested old profile with tags -> correct
tested old profile while removing tags (till no tag) -> correct
tested new profile without tags -> correct
tested new profile while adding tags -> correct
i'm marking again as fixed since we have 2 tested ppc environment working (and they are clearly different since mine is an emulator while marcia's is a real one), please wait for tomorrow nightly build, then feel free to reopen (but i'm optimistic)
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Comment 37•17 years ago
|
||
verified fixed using Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008041604 Minefield/3.0pre. I tried the combination of steps in Comment 36 to verify.
Status: RESOLVED → VERIFIED
Comment 38•15 years ago
|
||
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.
Description
•