Open Bug 1442333 Opened 2 years ago Updated Last month

console.clear() should only clear messages from the same context

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Fission Milestone:M6)

Fission Milestone M6

People

(Reporter: miker, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-reserve)

STR:

1. Open the Web Console.
2. Open the Browser Console.
3. Ensure there is something displayed in each console.
4. In the web console enter `console.clear()` and press [enter].

Both consoles are cleared but only the web console is cleared.
What should be done here is only clear the browser console if the console.clear message don't come from a content page.
I guess this could be easy to do after Bug 1260877 is done, since it will give us a property on the packet for us to know if a message is chrome or not.
Depends on: 1260877
Product: Firefox → DevTools
Whiteboard: dt-fission-m2-reserve
Summary: console.clear() from the web console clears the browser console → console.clear() should only clear messages from the same context
Priority: P2 → P3

Tracking dt-fission-m2-mvp bugs for Fission Nightly (M6)

Fission Milestone: --- → M6
You need to log in before you can comment on or make changes to this bug.