Closed
Bug 157688
Opened 24 years ago
Closed 24 years ago
Window title can not be updated at the onload event handler
Categories
(Core :: XUL, defect)
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
| Reporter | ||
Comment 1•24 years ago
|
||
sample of failed xul page
Comment 2•24 years ago
|
||
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•24 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
Closed: 24 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•24 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.
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.
Description
•