Bug 201717 - Web Inspector: Improve the Uncaught Exception View file a bug link
Summary: Web Inspector: Improve the Uncaught Exception View file a bug link
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-09-12 01:30 PDT by Joseph Pecoraro
Modified: 2019-09-23 11:08 PDT (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (8.55 KB, patch)
2019-09-12 01:35 PDT, Joseph Pecoraro
hi: review+
Details | Formatted Diff | Diff
[IMAGE] After - Uncaught Exception Reporter (656.64 KB, image/png)
2019-09-12 01:36 PDT, Joseph Pecoraro
no flags Details
[IMAGE] After - New Bug Report (616.16 KB, image/png)
2019-09-12 01:36 PDT, Joseph Pecoraro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2019-09-12 01:30:38 PDT
Improve the Uncaught Exception View file a bug link

* Link doesn't work today
* Update the pre-filled comment style
* Bring the new tab to the foreground if possible
Comment 1 Joseph Pecoraro 2019-09-12 01:35:55 PDT
Created attachment 378632 [details]
[PATCH] Proposed Fix
Comment 2 Joseph Pecoraro 2019-09-12 01:36:17 PDT
Created attachment 378633 [details]
[IMAGE] After - Uncaught Exception Reporter
Comment 3 Joseph Pecoraro 2019-09-12 01:36:42 PDT
Created attachment 378634 [details]
[IMAGE] After - New Bug Report
Comment 4 Devin Rousso 2019-09-20 19:03:24 PDT
Comment on attachment 378632 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=378632&action=review

r=me

One thought, should we expose this (or something like this) for STP? We may find out about more bugs that way 🤔

> Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js:-283
> -        bug with this information</a>. It is possible that someone else broke it by accident.</dd>

lol I didn’t know it said this 😂

> Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js:301
> +        event.stop();

Should we avoid using Utilities.js functions in this file, in case it wasn’t loaded properly and therefore the extra functions don’t exist?

> Source/WebKit/WebProcess/WebPage/WebInspectorUI.cpp:270
> +        WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::BringInspectedPageToFront(), m_inspectedPageIdentifier);

Shouldn’t we bring to front before opening a new tab? Just thinking about it, I’d expect the inspected page/tab/window to be focused before attempting to open another tab.

Alternatively, should we just always bring the inspected page/tab/window to front in the UIProcess whenever calling `openInNewTab`? Is there a situation where we’d want to open a background tab?
Comment 5 Joseph Pecoraro 2019-09-23 10:57:25 PDT
Comment on attachment 378632 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=378632&action=review

>> Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js:301
>> +        event.stop();
> 
> Should we avoid using Utilities.js functions in this file, in case it wasn’t loaded properly and therefore the extra functions don’t exist?

Good idea. I'll expand this.

>> Source/WebKit/WebProcess/WebPage/WebInspectorUI.cpp:270
>> +        WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::BringInspectedPageToFront(), m_inspectedPageIdentifier);
> 
> Shouldn’t we bring to front before opening a new tab? Just thinking about it, I’d expect the inspected page/tab/window to be focused before attempting to open another tab.
> 
> Alternatively, should we just always bring the inspected page/tab/window to front in the UIProcess whenever calling `openInNewTab`? Is there a situation where we’d want to open a background tab?

Hmm, maybe we should do something like Safari's preferences. ⌘-click versus ⌘-Shift-click. Where Shift activates the new tab. That said I think activating is a clear improvement for now. Unlike in Safari where you might like to open a lot of links from an article, opening content from Web Inspector generally is an operation where you want to go to the content you just opened.
Comment 6 Joseph Pecoraro 2019-09-23 11:07:10 PDT
https://trac.webkit.org/r250243
Comment 7 Radar WebKit Bug Importer 2019-09-23 11:08:25 PDT
<rdar://problem/55629572>