Closed Bug 228035 Opened 21 years ago Closed 21 years ago

OK button/enter in the new add bookmark dialog doesn't work until you select a folder

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firebird0.8

People

(Reporter: steffen.wilberg, Assigned: steffen.wilberg)

Details

Attachments

(1 file)

Steps to reproduce:
1. Click Ctrl-D.
2. Hit Enter

Actual results:
Nothing.

Expected results:
Add a bookmark.

The OK button in the new add bookmark dialog doesn't work until you selected a
folder in the menulist (small dialog) or the tree (large dialog). Clicking in
the menulist, selecting the first (already selected) folder and clicking OK works.

The js console shows this:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIRDFContainer.Init]"  nsresult:
"0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame ::
chrome://browser/content/bookmarks/addBookmark2.js :: onOK :: line 66"  data: no]

The error in the js console refers to this line in addBookmarks2.js:
RDFC.Init(BMDS, gSelectedFolder);
That's because gSelectedFolder is undefined until you select a folder in the
menulist or the tree. It has to be defined in Startup().
Attached patch patchSplinter Review
Adds gSelectedFolder = RDF.GetResource(gMenulist.selectedItem.id); to
Startup().
Comment on attachment 137177 [details] [diff] [review]
patch

This works. I hope it's the right thing to do. :)
Attachment #137177 - Flags: review?(p_ch)
Target Milestone: --- → Firebird0.8
Summary: OK button/enter in the new add bookmark dialog doesn't work until you selected a folder → OK button/enter in the new add bookmark dialog doesn't work until you select a folder
Attachment #137177 - Flags: review?(p_ch) → review+
checked in.
Thanks Pierre. Marking fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: