Closed Bug 296399 Opened 20 years ago Closed 20 years ago

Deer Park Alpha: Tab titles cannot be changed via script

Categories

(Firefox :: Tabbed Browser, defect)

PowerPC
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 295210

People

(Reporter: codedread, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files)

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

I do not believe this is a dupe of Bug 294902 or 250423, since this
functionality works properly in Firefox 1.0 but does NOT work in Deer Park Alpha
1 (20050523).

Apparently you cannot change the title of a tab via script when multiple tabs
are opened.

The simplest file that will show this bug is:

<html><body onload="document.title='Hello, world!';"/></html>

Steps to reproduce: 1) open a new browser window, 2) open a new tab (so that
there are at least two tabs opened, 3) browse to the above HTML doc.  The title
of the tab will not be "Hello, world!".  Note that the title of the tab WILL be
"Hello, world!" if you browse to this document without any tabs open.

To see the problem a little more clearly, try this file:

<html><head><script type="text/javascript"><!--
var gNum = 0;
function changeTitle() { document.title="Number is " + (++gNum); }
function start() { window.setInterval(changeTitle, 1000); }
//--></script></head><body onload="start();"/></html>

Steps to reproduce:  1) Browse to the above file, observe the title changes
every second, 2) Open a new tab.  The title of the tab will be frozen at the
most recent change but will not update periodically after the tabs are open.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
taken from comment 0
taken from comment 0
WFM Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050602
Firefox/1.0+ ID:2005060208

Reporter, are you sure you see this with a new profile (or more specifically,
without any tab-related extensions installed)?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050602
Firefox/1.0+ ID:2005060206

Confirming, new profile, no extensions.

Doesn't even work for me with one tab open.
No tab-related extensions installed.  I didn't create a new profile, I only
noticed that it works in Fx 1.0 and not in Fx 1.1+ (Deer Park Alpha).  

I didn't you could create attachments like that for the test cases.  Cool.  I'll
do that for any new bugs I report.
Steve (#3), does your "WFM" mean "Worked For Me"?  I'm unclear on the
terminology here.  Anyway, I had 20050523 and I've updated to the nightly build
20050602 and it still doesn't work.  Test Case 2 is probably an easier one to
demonstrate.  Right-click it and open in New Window.  After you verify the title
is updating every second, open a new tab.
Hardware: PC → Macintosh
Confirming on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050531 Firefox/1.0+.

This does work in 1.0 though.
this worked in 1.0
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
This is probably the same cause as bug 295210, so will likely be fixed by that.
Blocks: 295210
No longer blocks: 295210
Depends on: 295210
jst/bz/sikking could you have a look
Peter, see comment 9.
(In reply to comment #12)
> Peter, see comment 9.
was too busy... you're right


*** This bug has been marked as a duplicate of 295210 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: