[Webkit-unassigned] [Bug 157240] New: Web Inspector: Can't resume Debugger after breaking on exception in Promise

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 30 18:00:52 PDT 2016


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

            Bug ID: 157240
           Summary: Web Inspector: Can't resume Debugger after breaking on
                    exception in Promise
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: timothy at apple.com
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

Steps:
1) Enable break on All Exceptions
2) Run this code in the console from bug 156114:

    crypto.webkitSubtle.generateKey({
        name: "RSA-OAEP",
        modulusLength: 2048,
        publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
        hash: {name: "SHA-256"}
    }, true, ["encrypt", "decrypt" ]).then((keypair) => {
        console.log("Generated Key Pair:", keypair);
        return crypto.webkitSubtle.exportKey("jwk", keypair.publicKey);
    }).then((keydata) => {
        console.log("Key Data:", keydata);
    }).catch((error) => {
        console.log("Error: ", error);
    });

3) It should stop on the return line with an exception
4) Try to continue
5) console.log should be logged with the error from the Promise catch
6) Still appear paused, try to continue

Results: Appears to stay paused, but it does resume. Error is logged when inspecting Inspector:

[Error] DebuggerManager.resume failed: – Error: Can only perform operation while paused.
    Error: Can only perform operation while paused.
        _dispatchResponseToPromise — InspectorBackend.js:307
        _dispatchResponse — InspectorBackend.js:272
        dispatch — InspectorBackend.js:149
        dispatchNextQueuedMessageFromBackend — MessageDispatcher.js:42

(anonymous function) (DebuggerManager.js:194)
promiseReactionJob

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160501/74984efa/attachment.html>


More information about the webkit-unassigned mailing list