Bug 18182 - Javascript console does not show parsing error if opened before page load.
Summary: Javascript console does not show parsing error if opened before page load.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: data:text/html,<script>}</script>
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2008-03-28 09:41 PDT by Max Barel
Modified: 2008-11-05 12:22 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Barel 2008-03-28 09:41:37 PDT
If the web inspector is open before a page is loaded, the console does not display Javascript parsing errors.
Closing the inspector window and then reopening it workaround and displays errors.
This is both on Safari 3.1 and Webkit nightly, 10.5.2
Comment 1 Adam Roben (:aroben) 2008-03-28 10:00:51 PDT
Confirmed on Safari 3.1 on Windows XP.
Comment 2 Adam Roben (:aroben) 2008-03-28 10:03:38 PDT
To test:

1. Open a new window
2. Open the Web Inspector
3. Go to data:text/html,<script>}</script>

Results:

There is a red bubble next to the main resource with the number "1" in it. This is correct and expected. The problem is that beneath the Console icon/text should be the text "1 error", and when you click on the Console you should see the error message "SyntaxError: Parse error"
Comment 3 Max Barel 2008-11-05 12:22:44 PST
Not sure I'm entitled, as the reporter, to do that, but this issue is resolved for long now. So I update it as fixed