RESOLVED INVALID 13221
VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
https://bugs.webkit.org/show_bug.cgi?id=13221
Summary VitalSource Bookshelf should not pass return statements into stringByEvaluati...
Adele Peterson
Reported 2007-03-28 14:21:44 PDT
VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString. While investigating this VitalSource Bookshelf bug: http://bugs.webkit.org/show_bug.cgi?id=12587 REGRESSION: VitalSource Bookshelf registering for a new account fails in TOT We realized that their application code was calling [WebView stringByEvaluatingJavaScriptFromString] with strings like: "return document.forms[0].elements.length" We used to allow this, but now we have error checking to make sure return statements are within a function, and this will throw a Javascript exception. We are adding a workaround for this application, but we need to notify VitalSource, so they can change their code. They seem to be using these calls to contruct a url string that contains the form elements' values. But they should just be able to use the ObjC DOM calls to submit the form directly. If they keep their current code, they should just send strings like "document.forms[0].elements.length"
Attachments
Adele Peterson
Comment 1 2007-03-28 14:21:58 PDT
Note You need to log in before you can comment on or make changes to this bug.