Closed Bug 334466 Opened 18 years ago Closed 11 years ago

Error: uncaught exception: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://www.aaa.bbb/cccccc :: <TOP_LEVEL> :: line 3" data: no]

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: emilio, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

code of the html page:
<html>
<script>
    top.window.location = "/Farmacotecnia/jsp/privado/presentacionprivada.do";
</script>
</html>

This code work fine since the last update, with the version 1.5.0.2 don´t work, with the previous  versions no problem.

the error in the javascript console is the same of de summary.

Reproducible: Always

Steps to Reproduce:
html page with this code.
<html>
<script>
    top.window.location = "/Farmacotecnia/jsp/privado/presentacionprivada.do";
</script>
</html>

Actual Results:  
Error: uncaught exception: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: https://www.aaa.bbb/cccccc.do :: <TOP_LEVEL> :: line 3"  data: no]
If i put the url of in the navigation bar manually work fine, but if the page is acceded from link in html page don't work.
I've got a similar one while testing

Error: uncaught exception: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://localhost:7777/info.html :: MM_findObj :: line 21"  data: no]

i narrowed it down to code produced by dreamweaver (this code must all over the internet). for a rollover image dreamweaver creates

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

in my own html i have a set of rollovers that look like:

<a href="description.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('description','','images/nav-description-over.gif',1)"><img src="images/nav-description.gif" name="description" width="84" height="30" hspace="0" vspace="0" border="0"></a><a href="location.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('location','','images/nav-location-over.gif',1)"><img src="images/nav-location.gif" name="location" width="69" height="30" hspace="0" vspace="0" border="0">

The problem only occurs when the image is called 'location'

I have
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

for a demo (quick, before i change it) go to www.limniparadisevillas.co.uk and mouse over location

I can confirm the results mentioned here with 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060712 Minefield/3.0a1
Status: UNCONFIRMED → NEW
Ever confirmed: true
Is this till an issue ?
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.