har lige testet lidt, og det er ikke blevet mindre underligt.
har disse 2 filer:
default.htm
-----------------------------------------------------------------
<html>
<head>
<script language="JavaScript">
function func(){
window.open('closeTest.htm','xx','');
}
</script>
</head>
<body>
<INPUT type="button" value="ok" onClick="func();">
</body>
</html>
-----------------------------------------------------------------
closeTest.htm
-----------------------------------------------------------------
<html>
<head>
<script language="JavaScript">
window.close();
</script>
</head>
<body>
</body>
</html>
-----------------------------------------------------------------
når jeg klikker på knappen får jeg disse fejl i JavaScript console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://mozapps/content/update/updates.xml :: onxbldestructor :: line 20" data: no]
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIControllers.removeController]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://browser/content/search.xml :: onxbldestructor :: line 77" data: no]
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://browser/content/browser.js :: Shutdown :: line 840" data: no]
det er ikke hver gang jeg klikker den komme med fejlene, men ca. 3/4 gange.