Open Bug 1281184 Opened 9 years ago Updated 1 year ago

console.clear() could only remove Console API messages and not service messages

Categories

(DevTools :: Console, enhancement, P3)

46 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: bgrins, Unassigned)

References

Details

From https://bugzilla.mozilla.org/show_bug.cgi?id=659625#c68 and https://bugzilla.mozilla.org/show_bug.cgi?id=659625#c69 "For example, on https://people.mozilla.org/~tvyas/mixedboth.html the 'console was cleared.' message should still show up, but none of the existing messages around mixed content warnings would actually be removed"
Depends on: 659625
Priority: -- → P2
Product: Firefox → DevTools
Severity: normal → S3
Whiteboard: [devtools-triage]

I'm not sure how I feel about this one, the spec says that the console should be cleared: https://console.spec.whatwg.org/#clear

If possible for the environment, clear the console.

The comments that led to filing this bug seem to highlight the case where people want to debug websites where console.clear() is used as an obfuscation method, which seems valid. We now prevent clearing the console if you have "Persist logs" enabled (we'll print console.clear() was prevented due to “Persist Logs”), so this is somewhat addressed.

Anyway, this doesn't look like a P2, and also more like an enhancement since all consoles out there are clearing the console (and not only console API messages)

Type: defect → enhancement
Priority: P2 → P3
Summary: console.clear() should only remove Console API messages and not service messages → console.clear() could only remove Console API messages and not service messages
Whiteboard: [devtools-triage]
You need to log in before you can comment on or make changes to this bug.