In my quest to make Thunderbird a 'more capable' Newsreader, I have altered 
many CAPS prefs. Some were easy to find,
but this one has me stumped:
Error: uncaught exception: [Exception... "Component returned failure code: 
0x80004005 (NS_ERROR_FAILURE)
[nsIDOMJSWindow.open]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: news://A valid newsgroup :: launchFull :: line 34"  
data: no]

The violation comes from the following Javascript:
<script language="JavaScript">
<!--

var str = "left=0,screenX=0,top=0,screenY=0";

if (window.screen) {
  var ah = screen.availHeight - 30;
  var aw = screen.availWidth - 10;
  str += ",height=" + ah;
  str += ",innerHeight=" + ah;
  str += ",width=" + aw;
  str += ",innerWidth=" + aw;
  str += ",fullscreen";
  str += ",scrollbars=0";
  str += ",status=No";
} else {
  str += ",resizable"; // so the user can resize the window manually
}

function launchFull(url, name) {
  return window.open(url, name, str);
}

// -->
</script>
<form><input value="Run Win RG (Real Good)  Demo"
 onclick="launchFull('http://www.A_valid_Url.htm', 'full', ',fullscreen')"
 type="button"></form>

Seamonkey will launch a Fullscreen window in the browser, even N4.x accepts the 
code.
I didn't expect Thunderbird to over-ride the messagepane window, but did expect 
my default (Firefox)
to be called.

Is there a pref or a workaround to enable the script to work, or perhaps a pref 
that was not included
in Thunderbird builds.

JoeS


_______________________________________________
dev-security mailing list
dev-security@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-security

Reply via email to