Closed Bug 276214 Opened 20 years ago Closed 20 years ago

emart.se - element.onfocus set to window.blur

Categories

(Tech Evangelism Graveyard :: Other, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mathias, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

1. Goto the page http://www.emart.se
2. Open a new window by pressing CTRL+N
3. Go back to the original window and click on the layer-tabs on the page.
(PRODUKTKATALOG, MINA SIDOR etc)
4. The window that was opened with CTRL+N pops up and gets focus.
I have also tried this on Linux and the bug is not there, so this is Windows
related in some way.


Reproducible: Always

Steps to Reproduce:
1. Goto the page http://www.emart.se
2. Open a new window by pressing CTRL+N
3. Go back to the original window and click on the layer-tabs on the page.
(PRODUKTKATALOG, MINA SIDOR etc)


Actual Results:  
The window that was opened with CTRL+N pops up and gets focus.


Expected Results:  
The same result as I get when I dont have any other windows open.


I have also tried this on Linux and the bug is not there, so this is Windows
related in some way.
For whatever reason, the JavaScript from /P62.jsp includes in ShowMenu():

  if(brTp=='ns') {
    lyr.onFocus = blur();
  }

so the onfocus handler for the div including the dropdown menu winds up calling
window.blur(), which if you have another window open brings that window to the
front. Dunno if they meant something more like lyr.onfocus = lyr.blur (which
they seem very fond of), but surely they don't want to unfocus the window if you
click on a menu.
Assignee: firefox → other
Status: UNCONFIRMED → NEW
Component: General → Other
Ever confirmed: true
Product: Firefox → Tech Evangelism
QA Contact: firefox.general → other
Summary: Focus is changed to another opened window if click on a layer → emart.se - element.onfocus set to window.blur
I have talked to them and the brTp=='ns' was a patch for netscape 4.X 
They took firefox for netscape and therefor the the code was executed when it
wasnt supposed to.
They will look into it and correct the browser identifier code.
So this is not a Firefox bug. Sorry for taking your time with this false bugreport.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.