Bug 118434 - Breakpointing into a script launched by [UIWebView stringByEvaluatingJavaScriptFromString:] hangs script execution
Summary: Breakpointing into a script launched by [UIWebView stringByEvaluatingJavaScri...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.8
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-05 15:32 PDT by Greg Lutz
Modified: 2013-07-05 20:21 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lutz 2013-07-05 15:32:18 PDT
[Example code available upon request]
In an IOS7 app, I load an HTML document into a UIWebView, then dynamically insert a <script> element into that, identifying a JavaScript file in a resource in my app as its "src". When a function in that script is invoked by entering the invoking expression in Web Inspector's console, all debugging features work fine. But if a subsequent execution of a function in the script is initiated by calling [UIWebView stringByEvaluatingJavaScriptFromString:], execution of that function can be interrupted by a previously set (by Web Inspector) breakpoint, or by encountering a "debugger" call. When the execution interruption occurs, control comes to Web Inspector, but no debugging features are then operational -- execution cannot be continued or single-stepped, and no data-examination commands produce any response.
Comment 1 Alexey Proskuryakov 2013-07-05 20:21:51 PDT
Please check legal agreements you have with Apple regarding how you may discuss iOS 7.

We do not track iOS 7 issues in Bugzilla. All bugs should be filed via bugreport.apple.com.