Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 21234 by [email protected]: If in the devtools --> script the  
script 'stops' because of an error then the icon of the tab should stop  
it's loading icon
http://code.google.com/p/chromium/issues/detail?id=21234

Chrome Version       : 4.0.206.1
URLs (if applicable) : n/a
Other browsers tested: they have no devtools

What steps will reproduce the problem?
1. Start devtools --> script --> enable 'stop on script error'
2. Execute a script that contains an error that is not detected by the
devtools
2.1 I had such a script a few hours ago: I forgot to close a ) in an if-
statement
3. Notice that it doesn't show the error AND it continues displaying the
loading icon, so that you won't be informed that it encountered an error,
so you will think that the page loads very long

What is the expected result?
To
1: stop the loading-icon
2: show the error

What happens instead?
It doesn't one of the above

Please provide any additional information below. Attach a screenshot if
possible.
Screenshot attached
(Also notice that when you have corrected the bug but haven't reloaded the
page 'F5' won't work, only the refresh button does)

Possible other name for this post is: Javascripterror not displayed in
devtools - scripts, but it does stop the page from loading.



THE SCRIPT I USED: (line 21 misses an ")" at the end
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>UserAgent</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br />
<div id="computerspecs" style="font-family:Arial; font-size:12; text-
align:left; width:400px; background: #c0c0c0;"></div>
<br />
</body>
<script type="text/javascript">
var OS = navigator.userAgent;
var OS_in_orde = true
document.write(OS);
if ((OS.indexOf("Windows NT 7.0")!=-1) || (OS.indexOf("Windows NT 6.1")!=-
1))
OS="Windows 7 / Windows Server 2008 R2";
else if ((OS.indexOf("Windows NT 6.0")!=-1))
OS="Windows Vista / Windows Server 2008 / Windows Home Server";
else if ((OS.indexOf("Windows NT 5.2")!=-1))
OS="Windows Server 2003 / Windows XP";
else if ((OS.indexOf("Windows NT 5.1")!=-1) || (OS.indexOf("Windows XP")!=-
1) || (OS.indexOf("Windows NT 5,1")!=-1)
OS="Windows XP";
else if ((OS.indexOf("Windows ME")!=-1) || (OS.indexOf("Win 9x 4.90")!=-1))
OS="Windows ME";
else if ((OS.indexOf("Windows NT 5.0")!=-1) || (OS.indexOf("Windows
2000")!=-1) || (OS.indexOf("Windows NT5.0")!=-1) || (OS.indexOf("Windows
NT5")!=-1))
OS="Windows 2000";
else if ((OS.indexOf("Windows 98")!=-1) || (OS.indexOf("Win98")!=-1))
OS="Windows 98";
//else if ((OS.indexOf("Windows NT 4.0")!=-1) || (OS.indexOf("WinNT4.0")!=-
1))
//OS="Windows NT4";
//else if ((OS.indexOf("Windows 95")!=-1) || (OS.indexOf("Win95")!=-1) ||
(OS.indexOf("Windows_95")!=-1))
//OS="Windows 95";
//else if (OS.indexOf("Windows NT 3.51")!=-1)
//OS="Windows NT3.51";
//else if ((OS.indexOf("Windows NT")!=-1) || (OS.indexOf("WinNT")!=-1))
//OS="Windows NT3.X";
//else if (OS.indexOf("Windows 3.1")!=-1)
//OS="Windows 3.1";
//else if ((OS.indexOf("Win16")!=-1))
//OS="Windows 1.X / Windows 2.X / Windows 3.X";
//else if ((OS.indexOf("Windows CE")!=-1))
//OS="Windows CE";
else
OS="Onbekende Windowsversie";

var computerspecparams = ""
computerspecparams += "<br />";
computerspecparams += "<div style='float:left;text-align:right;
width:135px;'>";
computerspecparams += "Your OS";
computerspecparams += "<br />";
computerspecparams += "<br />";
computerspecparams += "</div>";
computerspecparams += "<div style='float:right; color:#000080; text-
align:left; width:250px;'>";
computerspecparams += OS;
computerspecparams += "<br />";
computerspecparams += "</div>";
computerspecparams += "<br />";
computerspecs.innerHTML = computerspecparams;
</script>
</html>

Attachments:
        chrome bug.png  65.5 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to