Closed
Bug 433795
Opened 17 years ago
Closed 7 years ago
disable OK button if no folder is selected in Organize > Move... dialog
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jbecerra, Unassigned)
References
Details
User Story
See comment 14
Attachments
(2 files, 1 obsolete file)
2.26 KB,
patch
|
mak
:
review-
|
Details | Diff | Splinter Review |
2.99 KB,
patch
|
mak
:
review-
|
Details | Diff | Splinter Review |
While testing Fx3rc1 on 10.5.2, if you select the Mozilla Firefox folder in the Bookmarks Menu in the Library and select the Move option in the organizer you will get an error in the console if you click on the OK button without selecting a folder to move to: Error: ASSERT: selectedNode must be set in a single-selection tree with initial selection set The button should not be clickable, unless a valid folder is selected to move the item to.
Updated•16 years ago
|
OS: Mac OS X → All
Hardware: PowerPC → All
Updated•16 years ago
|
Whiteboard: [good first bug]
Updated•16 years ago
|
Summary: disable OK button if no folder is selected to move folder into → disable OK button if no folder is selected in Organize > Move... dialog
Comment 2•16 years ago
|
||
The following patch fixes this bug by disabling the OK button when the Move Bookmark dialog is loaded, and enables it back when a folder is selected.
Comment 3•16 years ago
|
||
Updated•16 years ago
|
Assignee: nobody → lameiro
Updated•16 years ago
|
Attachment #361128 -
Flags: review?(mak77)
Updated•16 years ago
|
Attachment #361128 -
Flags: review?(mak77) → review-
Comment 4•16 years ago
|
||
Comment on attachment 361128 [details] [diff] [review] Disables OK button if no folder is selected you should get the insertionPoint from the view and check it for null or AllBookmarks (or generically a read-only container)
Comment 5•16 years ago
|
||
Second version of the patch, addressing Marco's comments.
Attachment #361128 -
Attachment is obsolete: true
Updated•15 years ago
|
Attachment #362693 -
Flags: review?(mak77)
Comment 7•15 years ago
|
||
Comment on attachment 362693 [details] [diff] [review] Second version of the patch, addressing Marco's comments. looks overly complex, the asserts are not good, and the dialog, if possible, should be unified to use editBookmarkOverlay.js
Attachment #362693 -
Flags: review?(mak77) → review-
Comment 8•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
Comment 9•14 years ago
|
||
Hey Leandro - are you planning on fixing this bug? If not, we have someone else who may be interested in fixing it.
Comment 10•13 years ago
|
||
How are we going on this issue? Could I try to fix it?
Comment 11•13 years ago
|
||
(In reply to Rodrigo Magalhaes from comment #10) > How are we going on this issue? Could I try to fix it? feel free to
Comment 12•13 years ago
|
||
Comment 13•13 years ago
|
||
I noticed there hadn't been any updates to this bug in a while and I was looking for a starter bug to work on. I attached a diff that is similar to the previous one but uses an xml default instead of the logic added to the init method.
Updated•13 years ago
|
Attachment #619833 -
Flags: review?(lameiro)
Updated•13 years ago
|
Attachment #619833 -
Flags: review?(mak77)
Comment 14•12 years ago
|
||
the problem is that we should remove this special dialog and unify the use of editBookmarkOverlay.xul, or directly use bookmarksPanel.xul. Due to that I don't think that adding more complication to moveBookmarks.xul is worth it.
Comment 15•12 years ago
|
||
Comment on attachment 619833 [details] [diff] [review] patch to disable OK button for move bookmark dialog Review of attachment 619833 [details] [diff] [review]: ----------------------------------------------------------------- That said, thanks for the contribution, if you want to finalize it we could do. As I said it's not a priority or a target, but we don't refuse good contributions just based on that and the review may still be useful for documentaty purposes. ::: browser/components/places/content/moveBookmarks.js @@ +49,5 @@ > > + _okButton: null, > + get okButton() { > + if (!this._okButton) { > + this._okButton = document.getElementById("moveBookmarkDialog").getButton("accept"); document.documentElement.getButton("accept"); @@ +50,5 @@ > + _okButton: null, > + get okButton() { > + if (!this._okButton) { > + this._okButton = document.getElementById("moveBookmarkDialog").getButton("accept"); > + NS_ASSERT(this._okButton, "this._okButton must be non-null"); not useful, please omit @@ +54,5 @@ > + NS_ASSERT(this._okButton, "this._okButton must be non-null"); > + } > + > + return this._okButton; > + }, may be simplified to just replace the getter with the value since won't change (delete this.okButton; this.okButton = ...) @@ +89,5 @@ > } > }, > > + treeSelected: function MBD_treeSelected() { > + if (this.foldersTree.insertionPoint && this.okButton && this.okButton.disabled) I don't think the OK button may even be lacking, and there is no need to check disabled before setting it, indeed this could just be this.okButton.disabled = !this.foldersTree.insertionPoint
Attachment #619833 -
Flags: review?(mak77)
Attachment #619833 -
Flags: review?(lameiro)
Attachment #619833 -
Flags: review-
Comment 16•12 years ago
|
||
mak, should this still be tagged as a good first bug? Also, if we don't intend to fix it because another solution is going to do away with the need to fix it, maybe we should either connect it to another bug as a blocker or resolve it. What do you think?
Flags: needinfo?(mak77)
Comment 17•12 years ago
|
||
probably not as easy as a good first bug, due to comment 14
Flags: needinfo?(mak77)
Whiteboard: [good first bug]
Updated•9 years ago
|
Assignee: lameiro → nobody
Updated•9 years ago
|
User Story: (updated)
Comment 19•7 years ago
|
||
The move dialog has been removed in bug 1432112 in FF 60, hence this bug is not needed any more.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•