Closed Bug 1455294 Opened 8 years ago Closed 2 months ago

Add an option to toggle HTML comments in the inspector

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(relnote-firefox 152+, firefox152 fixed)

RESOLVED FIXED
152 Branch
Tracking Status
relnote-firefox --- 152+
firefox152 --- fixed

People

(Reporter: pbro, Assigned: sebo)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(3 files, 1 obsolete file)

Attached image toggle-comments-chrome.PNG β€”
Chrome DevTools has this. It has also been requested here https://discourse.mozilla.org/t/show-hide-html-comments/23771/2. The proposed feature is the following: add a setting in the options panel (defaults to true) that controls whether HTML comment nodes are shown in the inspector.
Product: Firefox → DevTools
I would like to work on this if there is no one else.
Assignee: nobody → ncosovic
Status: NEW → ASSIGNED
Nemanja, were you able to work on this? Sebastian
Blocks: firebug-gaps
Flags: needinfo?(ncosovic)

This bug has not been updated in the last 3 months. Resetting the assignee field.
Please, feel free to pick it up again and add a comment outlining your plans for it if you do still intend to work on it.
This is just trying to clean our backlog of bugs and make bugs available for people.

Assignee: ncosovic → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(ncosovic)

I just wasted a lot of time trying to find a stray </div> that was screwing up a WordPress page. Without the comments showing in the view-source it meant I just had to trail-and-error it. Please add this functionality as it is a real problem that needs to be fixed. Thank you.

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Severity: normal → S3
Duplicate of this bug: 1419729
Attachment #9233187 - Attachment is obsolete: true
See Also: → 2034916
Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/48d9c8dc7110 https://hg.mozilla.org/integration/autoland/rev/0237dd2b5eb9 Merged different tree walker filters into one using filter options. r=devtools-reviewers,nchevobbe https://github.com/mozilla-firefox/firefox/commit/cf10bb950a42 https://hg.mozilla.org/integration/autoland/rev/f480cbd56b70 Added option to toggle the display of comment nodes in the Inspector. r=devtools-reviewers,fluent-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Seems like this is worth a relnote callout. Please add a relnote-firefox? nomination to the bug if you agree!

Flags: needinfo?(sebastianzartner)

Yep, wanted to do that today, anyway, but thanks for the ping!

[Why is this notable]: New DevTools feature
[Affects Firefox for Android]: no
[Suggested wording]: The DevTools now have an option to toggle the display of comment nodes in the Inspector. This option is located in the Settings panel.
[Links (documentation, blog post, etc)]:
https://firefox-source-docs.mozilla.org/devtools-user/settings/index.html#settings-inspector

Also added the dev-doc-needed flag, so it's added to the dev release notes for 152, as well.

Sebastian

relnote-firefox: --- → ?
Flags: needinfo?(sebastianzartner)
Keywords: dev-doc-needed

Added to the Fx152 relnotes, thanks.

See Also: → 2040440
QA Whiteboard: [qa-triage-done-c153/b152]

FF152 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/44170 (just a release note)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: