Bug 13645
Summary: | JSEnv bookmarklet doesn't print errors | ||
---|---|---|---|
Product: | WebKit | Reporter: | Garrett Smith <xk1t> |
Component: | WebKit Website | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, xk1t |
Priority: | P2 | ||
Version: | 419.x | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://www.squarefree.com/jsenv/ | ||
Bug Depends on: | |||
Bug Blocks: | 8456 |
Garrett Smith
JSEnv is a very useful development bookmarklet that does not work in Safari.
I don't expect the feature "install as user script" to work.
However, JSEnv cannot run a simple script in Safari.
Try in FireFox to see how it should work.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sam Weinig
Hi Garrett, JSEnv seems to work fine in the nightlies. If you are seeing a particular problem please reopen the bug. Thanks for the report though.
Garrett Smith
Much better in the nightly. However, running the example in Safari, the failure case has a different Result: The error does not make it to the console, as it does in FireFox. I didn't try to find out why the failure test failed.
In firefox:
================================================
Running...
Squares of numbers 0 through 4:
0
1
4
9
16
Error on line 11: this.statement has no properties
================================================
In safari:
================================================
Running...
Squares of numbers 0 through 4:
0
1
4
9
16
================================================
David Kilzer (:ddkilzer)
Confirmed with a local debug build of WebKit r21332 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
JavaScript console reports (when running the "failure" test):
TypeError: Undefined value
Line: 11
Alexey Proskuryakov
This problem is caused by window.onerror not working in WebKit, closing as a duplicate.
Thank you for reporting this! Please file new bugs if you find any other problems with this bookmarklet.
*** This bug has been marked as a duplicate of 8519 ***