Open Bug 1622439 Opened 6 years ago Updated 3 years ago

Console filter should also include source paths

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Harald, Unassigned, Mentored)

Details

Attachments

(1 file)

Example message: Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). panel.js:62:24

panel.js links to chrome://global/content/elements/panel.js

Filtering on elements filters out the message even though the file path contains elements.

Nicolas, could this be a good first bug?

Flags: needinfo?(nchevobbe)

not a good first bug, but a good mentored bug I guess :)

Mentor: nchevobbe
Flags: needinfo?(nchevobbe)

Hey Nicolas, I would like to work on this.

(In reply to Samarjeet from comment #3)

Hey Nicolas, I would like to work on this.

sure, thanks :)

Assignee: nobody → thelehhman

Harald, it looks like this was done on purpose (see Bug 1364386).
Should we still proceed with Samarjeet's patch?

Flags: needinfo?(hkirschner)

Maybe we only allow whats after the protocol and host. For example, if the message is from chrome://global/content/elements/panel.js, it should be visible when input is "conent", "elements" but not when "chrome".

Harald, it looks like this was done on purpose (see Bug 1364386).

Seems like this bug is aiming for old-Console on the behavior; which did not match origin or path. Chrome does the same. On the other side, Chrome has the sidebar for filtering by origin and file, so I am not sure if it a good baseline.

Are there other practical cases where this would be bad?

Maybe we only allow whats after the protocol and host. For example, if the message is from chrome://global/content/elements/panel.js, it should be visible when input is "content", "elements" but not when "chrome".

Filtering on host has its use cases, so maybe just ignoring protocol?

Flags: needinfo?(hkirschner)

Maybe we only allow whats after the protocol and host. For example, if the message is from chrome://global/content/elements/panel.js, it should be visible when input is "content", "elements" but not when "chrome".

Filtering on host has its use cases, so maybe just ignoring protocol?

Sounds good, should we proceed with that?

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:thelehhman, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(thelehhman)

Hey Harald, How do you think should we proceed?

Flags: needinfo?(thelehhman)

Sorry for not getting back to you earlier, Samarjeet . I pinged a few people in Slack last week and got no major pushback against filtering more broadly – so including the path is fine. If users need less results, additional filters can always reduce further.

ni Samarjeet for visibility.

Flags: needinfo?(thelehhman)

Cool, so just to clarify, by "path" do you mean including the protocol?

Flags: needinfo?(thelehhman)

The bug assignee didn't login in Bugzilla in the last 7 months.
:nchevobbe, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: samarsault → nobody
Flags: needinfo?(nchevobbe)
Flags: needinfo?(nchevobbe)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: