[Webkit-unassigned] [Bug 118542] New: Web Inspector: Debugger hangs after breakpoint in iOS code launched by [UIWebView stringByEvaluatingJavaScriptFromString]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 10 16:06:36 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118542

           Summary: Web Inspector: Debugger hangs after breakpoint in iOS
                    code launched by [UIWebView
                    stringByEvaluatingJavaScriptFromString]
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: GregLutzGM at gmail.com
                CC: timothy at apple.com, joepeck at webkit.org,
                    webkit-bug-importer at group.apple.com, graouts at apple.com


Created an attachment (id=206416)
 --> (https://bugs.webkit.org/attachment.cgi?id=206416&action=review)
A tar archive of a small Xcode iOS project

[The components involved are
  WebKit nightly build 152535
  Xcode Version 4.6.3 (4H1503)
  iOS Simulator Version 6.0 (369.2)
  OS X 10.8.4]

The attached project creates a UIWebView and populates it with a toy HTML document. It then inserts into that document's head a <script> tag whose "src" attribute references a small JavaScript file JS.js. Build and execute it under Xcode with the iPhone Simulator as device. It advises you to attach the Web page to Web Inspector. The HTML document and the JavaScript script duly become visible in Web Inspector. To continue execution, enter "init()" in the Web Inspector console command line. The app continues by using [UIWebView stringByEvaluatingJavaScriptFromString] to invoke fcn(), a function created by function init(). This causes a JavaScript alert ("Inside fcn()") to appear. If you dismiss this alert, execution continues normally with an alert message from the App ("fcn() call returned...").

However, if you set a breakpoint on line 8 of the script ('return "fcn result";'), either before entering init() or before dismissing the "Inside fcn()" alert, execution stops at this breakpoint in Web Inspector, but then nothing more can be done: Web Inspector doesn't respond to any of the buttons for continuing execution.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list