Closed Bug 157688 Opened 22 years ago Closed 22 years ago

Window title can not be updated at the onload event handler

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mark, Assigned: hyatt)

Details

Attachments

(1 file)

388 bytes, application/vnd.mozilla.xul+xml
Details
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
Attached file 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
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
Closed: 22 years ago
Resolution: --- → INVALID
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.

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.

Attachment

General

Creator:
Created:
Updated:
Size: