Closed Bug 872368 Opened 11 years ago Closed 11 years ago

Web Console is not cleared on page load

Categories

(DevTools :: Console, defect)

x86
macOS
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 705921

People

(Reporter: lstowasser, Unassigned)

Details

Attachments

(1 file)

Existing console logs are not very useful after a new page load/refresh.
Attachment #749646 - Flags: review?(mihai.sucan)
Attachment #749646 - Attachment is patch: true
Attachment #749646 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 749646 [details] [diff] [review]
Patch to clear console on page load

Review of attachment 749646 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you for bug report and for the patch! Unfortunately, this is not the right approach for fixing this bug.

The web console is split between a client and a server. Please see the details about Web Console remoting. [1] You need to listen to the tabNavigated event from the remote server.

You also need to add a preference to allow users to persist web console output - some do not want to always clear output on page navigation/reload.

Lastly, you also need to write a test.

[1] https://developer.mozilla.org/en-US/docs/Tools/Web_Console/remoting
Attachment #749646 - Flags: review?(mihai.sucan)
This bug is also a duplicate...
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Louis: please submit the updated patch in bug 705921. Thank you!
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: