Closed
Bug 274730
Opened 20 years ago
Closed 19 years ago
Don't fire onFocus event after switching to another window and back (on an XML/XSL page)
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: mk, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 5.0; U) Opera 7.53 [en] Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20041214 The problem occour after you switch between other windows. When you go back to the Mozilla window, normaly the onFocus event from then body tag should fire. With an simple HTML page it works fine, but if you use an XML/XSL page the onFocus event doesn't fire. After this problem it is not valid to enter any text into an input field. The bug occours only if you activate the mozilla window throw clicking on the window title or clicking on the mozilla item on the taskbar. If you click direct into the xml viewport of this page the onFocus event fires. Here are testfile for reproduction: 1. the XML File: (test.xml) <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <Mask> </Mask> 2. the XSL file (test.xsl): <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template match="Mask"> <html> <body onFocus="document.title='Fenster aktiv';" onBlur="document. title='Fenster inaktiv';"></body> </html> </xsl:template> </xsl:stylesheet> Reproducible: Always Steps to Reproduce: 1. open test.xml file 2. switch to another application window 3. switch back to the mozilla browser window (by clicking on then window title) Actual Results: Then you should see "Fenster aktiv", but you see "Fenster inaktive" or nothing. If you repeat the 3 steps the window caption change not correct from "inaktive" to "aktiv" or from "aktiv" to "inaktive" Expected Results: Fires the onFocus event.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 1•19 years ago
|
||
No specific bug / patch referenced as the fix. -> WORKSFORME
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Updated•19 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•