Bug 18182
Summary: | Javascript console does not show parsing error if opened before page load. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Max Barel <max> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | aroben, timothy |
Priority: | P2 | Keywords: | HasReduction |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | data:text/html,<script>}</script> |
Max Barel
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
Confirmed on Safari 3.1 on Windows XP.
Adam Roben (:aroben)
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"
Max Barel
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