Closed
Bug 268553
Opened 20 years ago
Closed 19 years ago
Can't add a new folder on the bookmarks toolbar after having deleted a folder
Categories
(Firefox :: Bookmarks & History, defect, P3)
Tracking
()
VERIFIED
FIXED
Firefox1.5
People
(Reporter: michali.sarris, Assigned: vlad)
Details
(Keywords: fixed1.8, Whiteboard: [asaP1])
Attachments
(1 file, 1 obsolete file)
3.99 KB,
patch
|
asaf
:
review+
asa
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
If i delete a folder from the bookmarks toolbar i'm not able to add a new folder
untill restarting firefox.
Reproducible: Always
Steps to Reproduce:
1. Add a folder to the bookmarks toolbar by rightclicking it and choosing "New
Folder...".
2. Delete the just created folder.
3. Try to add another new folder the same way as point 1.
Actual Results:
I hear an alert beep and nothing happens.
Expected Results:
A dialog should have appeared to add a new folder.
Comment 1•20 years ago
|
||
I confirm (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0)
Comment 2•20 years ago
|
||
confirmed with Windows branch build 2004-11-07-07-0.11
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Extension of this bug?
Reproducible: Always
Steps to Reproduce:
1. Right Click on Bookmarks Toolbar
2. Manage Folder
3. Click New Folder
4. Creates New Folder
5. Drag and Drop links into this Folder
6. Click New Folder
7. Creates New Folder in Bookmarks but not in Bookmarks Toolbar
Actual Results:
Creates 2nd New Folder in Bookmarks but not Bookmarks Toolbar
Expected Results:
Add New Folder in Bookmarks Toolbar
Reporter | ||
Comment 4•20 years ago
|
||
I think this is the bug you mean is:
https://bugzilla.mozilla.org/show_bug.cgi?id=268551
I found it the same time as this bug.
(In reply to comment #3)
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107
Firefox/1.0
>
> Extension of this bug?
>
> Reproducible: Always
> Steps to Reproduce:
> 1. Right Click on Bookmarks Toolbar
> 2. Manage Folder
> 3. Click New Folder
> 4. Creates New Folder
> 5. Drag and Drop links into this Folder
> 6. Click New Folder
> 7. Creates New Folder in Bookmarks but not in Bookmarks Toolbar
>
> Actual Results:
> Creates 2nd New Folder in Bookmarks but not Bookmarks Toolbar
>
> Expected Results:
> Add New Folder in Bookmarks Toolbar
>
Assignee | ||
Updated•20 years ago
|
Assignee: vladimir → vladimir+bm
Confirmed on Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
Comment 6•20 years ago
|
||
still seeing this on 1.0.1 from 02/22
a sort of workaround is to open a new window and add the new folder there.
Flags: blocking-aviary1.1?
Updated•20 years ago
|
Flags: blocking-aviary1.1? → blocking-aviary1.1+
Whiteboard: [asaP1]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050410
Firefox/1.0+
I tried to reproduce this bug. On the current nightly I'm using, I cannot even
create a 'new folder' once straight from the bookmarks toolbar.
WFM
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050422
Firefox/1.0+
(Windows 2000)
Comment 9•20 years ago
|
||
WFM, seems to be fixed on the trunk!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418
Firefox/1.0+
Comment 10•20 years ago
|
||
WFM
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050507
Firefox/1.0+
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Comment 11•20 years ago
|
||
Reopening.
I can reproduce this 100% with a clean profile.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050511
Firefox/1.0+
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 12•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050512
Firefox/1.0+ ID:2005051212
WFM following steps in comment 0, on both an existing and a new profile.
Comment 13•20 years ago
|
||
The problem is that BookmarksMenu._target is not released (unset) after a
bookmark deletion. After, it is passed as argument for
BookmarksCommand.createNewFolder(realTarget); (line 1110)
Adding one line in firefox\chrome\browser.jar\content\browser\bookmarks\bookmarks.js
should fix this
deleteBookmark: function (aSelection)
{
// call checkSelection here to update the immutable and other
// flags on the selection; when new resources get created,
// they're temporarily not valid because they're not in a
// bookmark container. So, they can't be removed until that's
// fixed.
BookmarksUtils.checkSelection(aSelection);
BookmarksUtils.removeAndCheckSelection("delete", aSelection);
//adding the next line
BookmarksMenu._target= null;
},
of course, i don't know if this is the good syntax and if it is in the good file
(maybe in BookmarksUtils.removeAndCheckSelection() from ?)
kind-of-review ?
Comment 14•20 years ago
|
||
Ooh, good call.
-> me, unless someone else wants to write a real patch.
Assignee: vladimir+bm → mconnor
Status: REOPENED → NEW
Priority: -- → P3
Target Milestone: --- → Firefox1.1
Comment 15•20 years ago
|
||
wfm. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050609
Firefox/1.0+ ID:2005060908. someone needs to mark this resolved.
Comment 16•20 years ago
|
||
(In reply to comment #15)
> wfm. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050609
> Firefox/1.0+ ID:2005060908. someone needs to mark this resolved.
No, I can still reproduce this
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050615
Firefox/1.0+ ID:2005061513
Comment 17•20 years ago
|
||
This also happens on "Cut".
Comment 18•20 years ago
|
||
This patch uses the code from comment 13, also added into the cut command as
per comment 17. I have briefly tested this and it doesn't appear to break any
of the functions however as per comment 12 I am unable to reproduce so can't
verify that it fixes the problem.
Could someone test this to see if it fixes this bug.
Comment 19•20 years ago
|
||
Comment on attachment 189116 [details] [diff] [review]
Patch from comment 13
won't this break the bookmarks manager?
Comment 20•20 years ago
|
||
(In reply to comment #19)
> (From update of attachment 189116 [details] [diff] [review] [edit])
> won't this break the bookmarks manager?
After some testing, it does not break the bookmarks manager, however it does
give the following error in the JS console:
Error: BookmarksMenu is not defined
Source File: chrome://browser/content/bookmarks/bookmarks.js
Line: 408
So a different solution is probably required.
(thanks Mano)
Updated•20 years ago
|
Attachment #189116 -
Attachment is obsolete: true
Updated•19 years ago
|
Assignee: mconnor → vladimir
Flags: blocking-aviary1.5+ → blocking1.8b4+
Assignee | ||
Comment 21•19 years ago
|
||
Just clear out _target and _selection in destroyContextMenu. Note that the
patch includes some extra comment cleanup (# isn't a comment character in JS,
grr), but the fix is just two lines near the start.
Attachment #194122 -
Flags: review?(bugs.mano)
Comment 22•19 years ago
|
||
Comment on attachment 194122 [details] [diff] [review]
patch
r=mano
Attachment #194122 -
Flags: review?(bugs.mano) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #194122 -
Flags: approval1.8b4?
Comment 23•19 years ago
|
||
Can we get this landed on the trunk and verified before taking on the branch?
Assignee | ||
Comment 24•19 years ago
|
||
k, in on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → FIXED
Comment 25•19 years ago
|
||
I am unable to verify this on today's trunk build since I can't create a new
folder by right clicking - I filed Bug 306457 to address this issue.
Comment 26•19 years ago
|
||
still blocking on accessibility regression in order to verify fix on trunk
before branch approval
Comment 27•19 years ago
|
||
(In reply to comment #25)
> I am unable to verify this on today's trunk build since I can't create a new
> folder by right clicking - I filed Bug 306457 to address this issue.
That is only broken now if you have no bookmarks toolbar folder. I'm working on
a fix for that, but it should be good enough to test this fix.
Comment 28•19 years ago
|
||
verified on trunk with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9a1) Gecko/20050901 Firefox/1.6a1
Status: RESOLVED → VERIFIED
Updated•19 years ago
|
Attachment #194122 -
Flags: approval1.8b4? → approval1.8b4+
Comment 29•18 years ago
|
||
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•