WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
159182
Web Inspector: Uncaught Exception page never shows if exception is thrown while processing a protocol event
https://bugs.webkit.org/show_bug.cgi?id=159182
Summary
Web Inspector: Uncaught Exception page never shows if exception is thrown whi...
Blaze Burg
Reported
2016-06-27 17:12:08 PDT
We catch, log, and drop the assertion on the floor. We should probably only do that if !DebugUIEnabled, so that we can easily file and fix these exceptions.
Attachments
Proposed Fix
(10.54 KB, patch)
2016-06-28 17:48 PDT
,
Blaze Burg
joepeck
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2016-06-27 17:12:16 PDT
exception*
Blaze Burg
Comment 2
2016-06-28 17:48:01 PDT
Created
attachment 282307
[details]
Proposed Fix
Joseph Pecoraro
Comment 3
2016-06-28 18:20:45 PDT
Comment on
attachment 282307
[details]
Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=282307&action=review
> Source/WebInspectorUI/UserInterface/Base/Main.js:2456 > + } else if (optionalMessage) > + console.error(optionalMessage, error);
This `optionalMessage` stuff seems stale? Right now it looks like a ReferenceError.
> Source/WebInspectorUI/UserInterface/Base/Main.js:2459 > +}
Style: ;
> Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js:173 > + if (entry.details) { > + lines.push(""); > + lines.push("Additional Details:") > + for (let key in entry.details) { > + let value = entry.details[key]; > + lines.push(`${indent}${key} --> ${value}`); > + } > + }
Seems this can be outside of the "if (entry.stack)" block.
> Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js:305 > + WebInspector.reportInternalError(e, details);
Style: Inlining the details would look nicer!
> Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js:357 > + WebInspector.reportInternalError(e, details);
Style: Inlining the details would look nicer!
Blaze Burg
Comment 4
2016-06-29 16:06:19 PDT
Committed
r202657
: <
http://trac.webkit.org/changeset/202657
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug