Closed
Bug 291781
Opened 20 years ago
Closed 19 years ago
bookmark context menu no longer works after customizing toolbar
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox1.5
People
(Reporter: takeshi2, Assigned: takeshi2)
References
Details
(Keywords: fixed1.8, regression)
Attachments
(1 file)
991 bytes,
patch
|
mconnor
:
review+
asa
:
approval1.8b5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7.6) Gecko/20050318 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050419 Firefox/1.0+
Normal XUL element bookmarks-menu has a controller called BookmarksMenuController.
http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#760
> bm.controllers.appendController(BookmarksMenuController);
After you customize toolbar this controller is badly removed.
Reproducible: Always
Steps to Reproduce:
1.Click View > Toolbars > Customize...
2.Click Done.
Though you cannot see the result on release versions.
Currently this bug does not cause any problem because Firefox fortunately seems
not to use the controller. You should fix this bug before it appears.
For example, the patch Bug 246158 comment #7 will be broken.
At my first debugging, it is correct just before menubar-items is removed from
the document in wrapToolbarItem().
http://lxr.mozilla.org/mozilla/source/toolkit/content/customizeToolbar.js#294
> aToolbarItem.parentNode.removeChild(aToolbarItem);
removeChild() may probably cause this bug.
Comment 1•19 years ago
|
||
Is this still an issue in recent trunk builds? Can you provide more detail as to
what the appropriate fix would be?
Assignee | ||
Comment 2•19 years ago
|
||
This bug still exists on trunk-20050623.
Quick fix: re-add the BookmarksMenuController to `bookmarks-menu' in
BrowserToolboxCustomizeDone() (like to `bookmarks-ptf').
Or we can modify the functions removeChild() and appendChild() to preserve
nodes' controllers.
Again, this bug causes nothing as far as Firefox does not use bookmarks-menu's
controller.
I don't know this inability breaks other controllers elsewhere.
Updated•19 years ago
|
Assignee: bugs → nobody
QA Contact: bugzilla → toolbars
Assignee | ||
Comment 3•19 years ago
|
||
This should be fixed because the recently checked-in patch from bug 246158
depends on bookmarks-menu.
Steps to Reproduce (again):
1.Click View > Toolbars > Customize...
2.Click Done.
3.Context menu on Bookmark menu and Bookmarks Toolbar no longer works.
OS: Windows 2000 → All
Assignee | ||
Comment 4•19 years ago
|
||
Re-add the BookmarksMenuController to `bookmarks-menu' in
BrowserToolboxCustomizeDone() (like to `bookmarks-ptf').
This is a simple patch fixing regression.
Attachment #196019 -
Flags: review?(mconnor)
Assignee | ||
Updated•19 years ago
|
Flags: blocking1.8b5?
Assignee | ||
Comment 5•19 years ago
|
||
Summary changed.
was: bookmarks-menu's controller(BookmarksMenuController) is badly removed after
"Customize..." toolbar dialog
Summary: bookmarks-menu's controller(BookmarksMenuController) is badly removed after "Customize..." toolbar dialog → bookmark context menu no longer works after customizing toolbar
Updated•19 years ago
|
Assignee: nobody → takeshi2
Keywords: regression
Comment 6•19 years ago
|
||
I can reproduce with 2005091406-trunk/WinXP.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [needs review mconnor]
Updated•19 years ago
|
Flags: blocking1.8b5? → blocking1.8b5+
Comment 7•19 years ago
|
||
Comment on attachment 196019 [details] [diff] [review]
Quick fix
that'll work, thanks
Attachment #196019 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 8•19 years ago
|
||
Comment on attachment 196019 [details] [diff] [review]
Quick fix
mconnor,
Thanks for review.
Can you check in the patch for me? I don't have CVS access.
Adding approval1.8b5?
This is a simple patch fixing regression.
Attachment #196019 -
Flags: approval1.8b5?
Updated•19 years ago
|
Whiteboard: [needs review mconnor] → [checkin needed]
Comment 9•19 years ago
|
||
checked-in to trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Whiteboard: [checkin needed] → [needs approval]
Updated•19 years ago
|
Attachment #196019 -
Flags: approval1.8b5? → approval1.8b5+
Updated•19 years ago
|
Whiteboard: [needs approval]
Comment 10•19 years ago
|
||
1.8 Branch:
mozilla/browser/base/content/browser.js; new revision: 1.479.2.27;
Comment 11•19 years ago
|
||
*** Bug 308809 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•