bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Allows Base page javascript menus of a "GrayBox" popup to receive focus making badness possible




10 years ago
8 years ago


(Reporter: Randy Pelletier, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CLOSEME 2010-11-01])



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Graybox site - http://orangoo.com/labs/GreyBox/
Specific menu set in use "omnislide" menu 


I have a little ditty that uses javascript side menus and a popup window called "Graybox - a popup window that doesn't suck".

What Graybox essentially does is pop up the requested page as sort of an overlay of the current page preventing that current page from receiving any mouse focus until the popup has been closed.

As I've loaded this FF version over my FF2 directories and thus made FF2 a bit flakey I don't start it any longer so I do not know if the bahaviour applies there as well.  Anyway to get to the point FF allows the menu to receive focus when the graybox popup is open and as such I can make selections from it which basically hoses the graybox popup as it becomes layered beneath and therefore cannot close resulting in having to reload the original page.  

I am on OSX, Camino behaves nice as does Safari as does IE when I test it.

Thanks for you time.

Reproducible: Always

Steps to Reproduce:
1. Create very basic page
2. Install omnislide generic JS menu
3. Install Graybox
4. dress up your page with a few links, pictures etc.
5. create an omnislide menu item that opens a 'graybox' or via another method that accomplishes the same

5. observe what graybox does to the base page without js menu
6. enable the js menu with some items
7. observe that you can still select base page menu ites
8. observe how multiple selections degrades current base page and graybox layering
Actual Results:  
The page degrades and I have to reload.

Expected Results:  
Nothing on the base page should be able to receive focus until the graybox has been closed

This may or may not affect other OS's but it definitely does not occur in other browsers.

Can I work around it?.. Probably.  Will I care if you don't care?  Probably not.

Do I think it may indicate some other underlying page handling problem?  I think it may yes.

Thanks for your time.. and I hope I haven't wasted any of it.

Good luck and good stuff..



Comment 1

10 years ago
The Graybox Site : http://orangoo.com/labs/GreyBox/

And the JS menu system I'm using for this is "omnislide" which is a menu set that attaches to the sides and top of your base page.

Comment 2

10 years ago
Sorry, one more update.

If you decide to test this I altered "OmniSlide"'s "mmenu.js" to enable it to open a "graybox" by enabling a 5th column with new variabl as follows;

 diff mtest.js mmenu.js
< /* if (o.menuItems[i_tem][4]&&o.menuItems[i_tem][4]=='no') */
< if (o.menuItems[i_tem][5]&&o.menuItems[i_tem][5]=='no')
> if (o.menuItems[i_tem][4]&&o.menuItems[i_tem][4]=='no')
< if(!o.reltest) {o.reltest=""};
< if ((o.menupos=='top'&&i_tem==0)||i_tem>0&&(!o.menuItems[i_tem-1][5]||o.menuItems[i_tem-1][5]!=='no'))
> if ((o.menupos=='top'&&i_tem==0)||i_tem>0&&(!o.menuItems[i_tem-1][4]||o.menuItems[i_tem-1][4]!=='no'))
<  tb+='<td '+(i_tem==o.menuItems.length-1&&!o.wrapbar&&o.menupos!='top'? 'id="'+o.id+'lastrow" ' : '')+'colspan="'+(o.menuItems[i_tem][3]&&o.menuItems[i_tem][3]!==''? o.menuItems[i_tem][3] : o.d_colspan)+'"><a href="'+o.menuItems[i_tem][1]+'" target="'+(o.menuItems[i_tem][2]? o.menuItems[i_tem][2] : o.linktarget)+'" title="'+o.menuItems[i_tem][0]+'" rel="gb_page_center[750, 550]">'+o.menuItems[i_tem][0]+'</a></td>'

You should be able to duplicate the basic fault without changing up the omnislide file by you might not be able to duplicate further degradation of the  page as a whole.


Comment 3

10 years ago
Yeah.. you guys like graybox dontcha?  mmm hmm..  

Anyway.. I would close this out.. the only browser that behaves "right" is Camino.  Good stuff that Graybox stuff hey?

Would you mind if I asked for some hints on how you got to resize yours on the fly?  Pretty please?

This is a mass search for bugs that are in the Firefox General component, are
UNCO, and have not been changed for 800 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10, create a fresh profile,
http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you
still see the bug, please update this bug. If the issue is gone, please set the
resolution to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]

Comment 5

8 years ago
Changed underlying menu components -rpp
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.