Closed Bug 304705 Opened 19 years ago Closed 19 years ago

Add Bookmark dialog: extra entry "Bookmarks Toolbar" generates error

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: ria.klaassen, Assigned: mconnor)

References

Details

(Keywords: regression, verified1.8)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050815 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050815 Firefox/1.0+

The Add Bookmark dialog contains a folder "Bookmarks Toolbar" which generates an
error in the JS console when I click on it:

Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIRDFContainer.Init]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://browser/content/bookmarks/addBookmark2.js :: onOK :: line 154"  data: no]
Source File: chrome://browser/content/bookmarks/addBookmark2.js
Line: 154

There is already an entry present called "Bookmarks Toolbar Folder" which works
fine.



Reproducible: Always

Steps to Reproduce:
1. Rightclick on the page; choose Bookmark This Page
2. In the dialog click the blue arrow and choose Bookmarks Toolbar and click OK.



Actual Results:  
Nothing, only an error in the JS Console

Expected Results:  
?

Superfluous folder?
When I click the orange feed icon on a feed page like
http://planet.mozilla.org/rss20.xml the Add Livemark Dialog shows similar
behaviour; the only difference is that when I choose to store the livemark in
"Bookmarks Toolbar", it stores it in the main folder (without an error).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
this is odd, at home and work i have an identical setup (extensions and all).
At work is see the problem at home it works as expected.
In neither case do i see a JSC error
Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIRDFContainer.Init]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://browser/content/bookmarks/addBookmark2.js :: onOK :: line 154"  data: no]
Source File: chrome://browser/content/bookmarks/addBookmark2.js
Line: 154

while trying to use the extra entry for normal bookmarking (livebookmarks work
per comment 0, just going to the wrong place).
Blocks: 303848
On Mac and Linux Deer Park as well.
Severity: normal → major
Flags: blocking1.8b4?
OS: Windows XP → All
Hardware: PC → All
Assignee: nobody → mconnor
Flags: blocking1.8b4? → blocking1.8b4+
Attached patch fix (deleted) — Splinter Review
fixes the bug by setting the proper BTF id on the menuitem.

also fixes being able to get a context menu on the Bookmarks->Bookmark All
Tabs... menuitem.  Kinda hacky, but this all goes away soon enough.
Attachment #193380 - Flags: review?(vladimir)
Whiteboard: [has patch][needs review vlad]
Comment on attachment 193380 [details] [diff] [review]
fix

hacks on top of hacks, r=me all the way!
Attachment #193380 - Flags: review?(vladimir) → review+
Attachment #193380 - Flags: approval1.8b4?
Attachment #193380 - Flags: approval1.8b4? → approval1.8b4+
Hmm. Someone still needs to check this in on the branch.
Whiteboard: [has patch][needs review vlad] → [has patch][needs checkin]
Fixed, branch and trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Whiteboard: [has patch][needs checkin]
Not fixed on trunk

XML Parsing Error: not well-formed.
Location:chrome://browser/content/bookmarks/addBookmark2.xul
Line number 64, Column 1:

<<<<<<< addBookmark2.xul
^ 

i removed "fixed1.8" , don't know if trunk has the same problem so i won't reopen
Keywords: fixed1.8
I have checked in a fix earlier today (trunk in OK, btw), resolving again.
Keywords: fixed1.8
(In reply to comment #11)
> Not fixed on trunk
err, not fixed on BRANCH

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050824
Firefox/1.0+ ID:2005082500

it still worked in the 23:44pdt build
Keywords: fixed1.8
Keywords: fixed1.8
thanks Asaf
This isn't fixed on the branch as seen on Linux build 2005-08-25-05-mozilla1.8 
Also, now the default selected "Bookmarks" selection in the Add Bookmarks dialog
doesn't work.  However, the other "Bookmarks" item below the seperator does work.

This may not have ben checked in early emough to get into the nightly build. 
Leaving status as is. I'll check again with tomorrows build. Was the other issue
was corrected at the same time?
Status: RESOLVED → VERIFIED
Blocks: 305928
Attached image Screenshot (deleted) —
The problem is still there.
Under the blue arrow (the most left one of the two) there is a double:
"Bookmarks Toolbar". See screenshot.
This double does not work.
A solution might be to delete to whole left arrow. One arrow should be enough. :)
Ria: You are right about the duplication being a problem. We've had a similar
problem with two "Bookmarks" entries since the new-and-improved bookmarks
diologue was checked in.

However, this bug is about the crash and only the crash. I encourage you to file
another bug for the duplication problem.
Tracy: I see the same behavior on today's Mac build - Mozilla/5.0 (Macintosh; U;
PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050825 Firefox/1.0+. Also, when
you click on the drop widget is it then supposed to generate the "New Folder"
button, or that supposed to be there all of the time?

(In reply to comment #15)
> This isn't fixed on the branch as seen on Linux build 2005-08-25-05-mozilla1.8 
> Also, now the default selected "Bookmarks" selection in the Add Bookmarks dialog
> doesn't work.  However, the other "Bookmarks" item below the seperator does work.
> 
> This may not have ben checked in early emough to get into the nightly build. 
> Leaving status as is. I'll check again with tomorrows build. Was the other issue
> was corrected at the same time?

(In reply to comment #18)

I had filed this bug especially for this problem. There were never crashes
involved. See comment #0. It still continues in branch build 1.8b4_2005082521.
The error is gone, but the problem continues.

Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Reopening. Problem in WindowsXP:

When I open the Add Bookmark dialog, I see under the left arrow two choices:
"Bookmarks Toolbar" and "Bookmarks Toolbar folder". One of them is superfluous.
In trunk both choices work; they place the new bookmark in the Bookmarks Toolbar
Folder.
In branch only the choice "Bookmarks Toolbar Folder" works.
Choosing "Bookmarks Toolbar" does nothing.


Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050826
Firefox/1.0+ ID:2005082604

1. I can't generate any JSC errors
2. I can add a bookmark in both "Bookmarks" entries
3. I can add a bookmark in both "Bookmarks Toolbar" and "Bookmark Toolbar Folder"
4. The drop widget properly adds and removes the New Folder button

What is supposed to fail ?

(ps. have you tried in -safemode ?)
(In reply to comment #15)
> This isn't fixed on the branch as seen on Linux build 2005-08-25-05-mozilla1.8 
> Also, now the default selected "Bookmarks" selection in the Add Bookmarks dialog
> doesn't work.  However, the other "Bookmarks" item below the seperator does work.
> 
> This may not have ben checked in early emough to get into the nightly build. 
> Leaving status as is. I'll check again with tomorrows build. Was the other issue
> was corrected at the same time?

As I suspected, the fix wasn't checked in in time to make yesterdays builds.  As
seen with Linux DP 2005-08-26-05-mozilla1.8 this is working as expected. The
"Bookmarks" selection is fine as well.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
The bug is fixed in this build: 1.8b4_2005082604.
Problem resolved.
marking verified per comments 22 and 24
Status: RESOLVED → VERIFIED
verified on Firefox 1.4 -mozilla1.8 branch- Win, Lin and Mac : 2005-09-07
Keywords: fixed1.8verified1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: