Closed Bug 214832 Opened 21 years ago Closed 21 years ago

document title changes to/bookmarks as [object HTMLImageElement]

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: miken32, Assigned: p_ch)

References

()

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1

If I go to the specified page and try to bookmark it, the bookmark comes up with
the title [object HTMLImageElement] for the page.  Furthermore, if I make a new
tab, and then return to the original tab, the text on the window title bar
changes to [object HTMLImageElement] as well.
I filed this under Firebird cause it looks like it would be an XUL problem, and
I don't have a Mozilla installation.  Please change it if necessary.

Reproducible: Always

Steps to Reproduce:
1. Go to the site
2. Bookmark the page
3. Observe the title

Actual Results:  
Should say "Jobs Workers Training and Careers"

Expected Results:  
Says "[object HTMLImageElement]"

I am running a fresh install, and a new profile.
I should add that it doesn't affect the site's tab title text, even if other
tabs are closed and then reopened (thereby refreshing this site's tab title.)
Not entirely Firebird specific.  Can also see the bookmark problem in 2003072909
PC/WinXP.  

The tabbed behavior problem is Firebird specific.  Reproduced in 20030729
PC/WinXP but not in Mozilla of same date.

->Browser/Bookmarks first, I guess.  Someone can correct if necessary.
Assignee: blake → chanial
Status: UNCONFIRMED → NEW
Component: General → Bookmarks
Ever confirmed: true
Product: Firebird → Browser
QA Contact: asa → petersen
Summary: document title changes to [object HTMLImageElement] → document title changes to/bookmarks as [object HTMLImageElement]
Version: unspecified → Trunk
The bookmarks code needs to use the safe property accessor; just using
document.title is incorrect.
*** Bug 215929 has been marked as a duplicate of this bug. ***
Attachment #129727 - Flags: superreview?(bz-vacation)
Attachment #129727 - Flags: review?(caillon)
Attachment #129727 - Flags: superreview?(bz-vacation) → superreview+
Comment on attachment 131769 [details] [diff] [review]
Alternative approach

r=caillon for this approach.
Attachment #131769 - Flags: review+
Comment on attachment 131769 [details] [diff] [review]
Alternative approach

sr=bzbarsky.  Neat.
Attachment #131769 - Flags: superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
It still is happenin for me with the 9/25 build
This bug was about bookmarks.  The code that handles setting the titlebar for
the window is in a different place and needs a separate bug.
Bug 215929 is that bug. It was marked as a duplicate of this one. It should be
reopened.
Product: Browser → Seamonkey
This bug is still present with Firefox:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
and
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20041204
Firefox/1.0+ .

Not present with Suite:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20041204 .

Should this be reopend for Firefox?
(In reply to comment #13)
> Should this be reopend for Firefox?

no, please file a new bug for ffox
And make sure to point to this bug in the new bug... (and to file the new bug on
the Firefox product).
I opened Bug 273249.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: