Open Bug 1383688 Opened 8 years ago Updated 3 years ago

Console clears when a link with the [download] attribute is clicked

Categories

(DevTools :: Console, defect, P3)

54 Branch
defect

Tracking

(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix

People

(Reporter: belst, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached video ff2.webm
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce: Logging stuff with console.log and clicking programatically on an a tag with a download attribute. See attached video of the problem. Related Code which has the 2 logs after the click: https://hastebin.com/edonafated.ts Actual results: Download dialog opens and developer console clears (Browser console doesn't) Expected results: Developer console should not clear
Component: Untriaged → Developer Tools: Console
Hello belst, thank you for reporting. I guess we follow the same pattern as when we don't have a `download` attribute, the page "navigates" and thus the logs are cleared. As a workaround, you can check the "Enable persistent logs" in the settings panel (under the "Common Preferences" label).
This seems a bit unintuitive. Since a download doesn't really "navigate" it should keep the logs imo.
(In reply to belst from comment #2) > This seems a bit unintuitive. Since a download doesn't really "navigate" it > should keep the logs imo. Yes, you're totally right. We should see if we can get the information in the packet that the "navigation" is in fact only a download (or add it if we don't). Thanks for reporting again, it's useful for us :)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Summary: Developer Console Clears when a download Dialog opens → Console clears when a link with the [download] attribute is clicked
Product: Firefox → DevTools

This isn't a console issue only, the netmonitor suffers from the same issue as well.
Let's move that on the devtools level and think of a solution.

That could be something to take into account while working on Bug 1632141.

See Also: → 1632141
See Also: → 1728529
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: