When an Javascript exception is raised due to setting a CSS property to an invalid value, the exception object lacks line number and file information. To Reproduce: Load the above URL in Safari, and check the Javascript Console. An exception titled 'CSS exception 0' is listed with a URL of 'undefined' and line number of 0. Excepted behaviour: The Javascript console should contain an exception with the correct URL, http:// bdash.net.nz/files/safari-js-error.html, and line number of 4.
Created attachment 2137 [details] Retrieve the line number + source URL from the current node if an exception is found during KJS_CHECKEXCEPTIONVALUE.
Created attachment 2142 [details] Updated patch using local variable to reduce duplication of effort. Patch updated as requested. I ran run-webkit-tests earlier after creating my initial patch, and everything looked ok. I've pulled in the changes to the Xcode project files since then though and the tests no longer build so I cannot verify them with this latest patch applied.
r=me
Committed the change.
Reporter, please mark this bug as Verified if this issue has been fixed in the latest TOT Webkit.