Window title can not be updated at the onload event handler

RESOLVED INVALID

Status

()

Core
XUL
RESOLVED INVALID
16 years ago
10 years ago

People

(Reporter: Mark Kaplun, Assigned: David Hyatt)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

388 bytes, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1a) Gecko/20020611
BuildID:    2002071104

When a new window is opened for an XUL file which updates its window title by
using window.title, the title is not changed. If some delay is added the title
is changed as expected.

IMHO the cuase to this phenomena is that a windows message is sent for changing
the title before the window is being displayed.

Reproducible: Always
Steps to Reproduce:
1. open the attached xul with mozilla -chrome test.xul


Actual Results:  window title remains failure

Expected Results:  window title should be success

If the remark line is removed, the title is changed correctly
(Reporter)

Comment 1

16 years ago
Created attachment 91486 [details]
failure sample

sample of failed xul page
This is not dom core.
Assignee: jst → hyatt
Status: UNCONFIRMED → NEW
Component: DOM Core → XP Toolkit/Widgets: XUL
Ever confirmed: true
QA Contact: stummala → shrir

Comment 3

16 years ago
Er, what 'window.title' property? Were you looking for 
'document.title' instead?

<?xml version="1.0"?> 
<window
    xmlns:html="http://www.w3.org/1999/xhtml"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    onload="start();"> 
<script>
function start() {
    if ("title" in window)
        alert('has');
    else
        alert('not');
}
</script>
</window>



Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
(Reporter)

Comment 4

16 years ago
This is quite a disappointing response, for someone who have invested his time
to report a bug :-(

Please test the attached sample following the reproduction steps. The bug is
about writing to the title property and not reading from it. If you replace
"window" with "document" at the sample the resulting title is still wrong.

Updated

10 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.