Closed Bug 384968 Opened 17 years ago Closed 17 years ago

generating context menus that don't do the right thing when you right click on dom nodes without places nodes

Categories

(Firefox :: Bookmarks & History, defect, P2)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED
Firefox 3

People

(Reporter: moco, Assigned: asaf)

References

Details

(Keywords: dataloss, Whiteboard: [has patch][has reviews])

Attachments

(2 files, 1 obsolete file)

generating context menus that don't do the right thing when you right click on dom nodes without places nodes steps to reproduce: a) you right click on "Bookmark This Page" b) or in between separators (see bug #382136) mano writes: we can either fix that menu to work right, or not show a menu at all. in fx2, it does not show a context menu when you right click a static menu item, but if you right click the menupopup it show a [Open, Open In New Window, Open In New Tab] context menu, all do nothing.
Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #268890 - Flags: review?(sspitzer)
Comment on attachment 268890 [details] [diff] [review] patch <sspitzerMsgMe> ok, so while testing <sspitzerMsgMe> I opened up the bookmarks menu <sspitzerMsgMe> right clicked on "bookmark this page", and I did not get a context menu (good) <sspitzerMsgMe> but before closing the menu, I right clicked on "get bookmark addons" and I didn't get a context menu with the proper commands enabled. <sspitzerMsgMe> additionally, when checking the "right click in between separators" I got a context menu. <Mano> oh, command updating fun <sspitzerMsgMe> r=sspitzer noted on https://bugzilla.mozilla.org/show_bug.cgi?id=384936 <Mano> oh, command updating fun <Mano> i.e. the menu is already "focused" <Mano> so we don't update command per the new selection
Attachment #268890 - Flags: review?(sspitzer)
Attached patch another attempt (deleted) — Splinter Review
Attachment #268890 - Attachment is obsolete: true
Attachment #268901 - Flags: review?(sspitzer)
Comment on attachment 268901 [details] [diff] [review] another attempt mano, there are still scenarios where we don't do the right thing. for example, in a sub menu with 5 separator followed by a bookmark item, mouse over the bookmark item at the bottom (DOMMenuItemActive) then mouse up to the separator area and right click. you get the context menu where if you didn't mouse over the bookmark menu item, you would not.
Attachment #268901 - Flags: review?(sspitzer)
Hrm? You should get context menu for separators...
Target Milestone: --- → Firefox 3 M9
Nominating because the dup is a blocker.
Flags: blocking-firefox3?
Flags: blocking-firefox3? → blocking-firefox3+
pushing to M10. "> This only occurs if the user right-clicks menuitems such as "Open all > in tabs", and does nothing if they select items on the context menu. > Not only should this not block M9, I don't think it should block the > release. Agree on not blocking M9, but feels like something that'll feel buggy in a final release."
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Priority: -- → P4
Not going to continue to block on this. If you disagree with this decision, please renominate with reasons why we can't ship with this in final
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Target Milestone: Firefox 3 beta3 → ---
this should be blocking since selecting DELETE on a bogus context menu will delete the parent folder and all its contents (dataloss)
Flags: blocking-firefox3- → blocking-firefox3?
(In reply to comment #10) > this should be blocking since selecting DELETE on a bogus context menu will > delete the parent folder and all its contents (dataloss) Is that due to the bug where the wrong thing is selected when deleting/dropping items in the context menu? If so, I'd say that this isn't a blocker but that other one is. If not, then this blocks for dataloss.
Flags: blocking-firefox3? → blocking-firefox3+
Keywords: dataloss
Priority: P4 → P2
related but not completely, the selection is correct, if an item is invalid we select its parent, so if those items have a context menu their selection is (somehow correctly) their parent
Target Milestone: --- → Firefox 3
Whiteboard: [needs status update]
What part of this is still reproducible, apart open-all-in-tabs being enabled for the "general" area.
er, s/open-all-in-tabs/delete/
Attachment #312510 - Flags: review?
Attachment #312510 - Flags: review? → review?(dietrich)
Comment on attachment 312510 [details] [diff] [review] patch for the delete-enabled issue r=me
Attachment #312510 - Flags: review?(dietrich) → review+
what's the matter in having the context menu in the "general" area at all? FX does not have it out of bookmark items... wouldn't be better not showing a context menu if the item does not have a node?
PS: apart the special case for "empty" item
Whiteboard: [needs status update] → [has patch][has reviews]
Let's follow up on that, post-f3 for sure at this point.
mozilla/browser/components/places/content/menu.xml, 1.126 mozilla/browser/components/places/content/toolbar.xml 1.148
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 427200
caused regression, bug 427200
Verified with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042407 Minefield/3.0pre
Status: RESOLVED → VERIFIED
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: