<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Can't resume Debugger after breaking on exception in Promise"
href="https://bugs.webkit.org/show_bug.cgi?id=157240">157240</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Web Inspector: Can't resume Debugger after breaking on exception in Promise
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Web Inspector
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>timothy@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bburg@apple.com, graouts@webkit.org, joepeck@webkit.org, mattbaker@apple.com, nvasilyev@apple.com, timothy@apple.com, webkit-bug-importer@group.apple.com
</td>
</tr></table>
<p>
<div>
<pre>Steps:
1) Enable break on All Exceptions
2) Run this code in the console from <a class="bz_bug_link
bz_status_NEW "
title="NEW - WebCrypto can generate but fails to export RSA-OAEP-256 keys"
href="show_bug.cgi?id=156114">bug 156114</a>:
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>