Open Bug 1593911 Opened 6 years ago Updated 3 years ago

Prevent dev tools closing on tab/popup close

Categories

(DevTools :: Netmonitor, enhancement, P5)

70 Branch
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: mavinkai, Unassigned)

References

()

Details

Attachments

(1 file)

Browse to https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm

Select a date and click get data. The page adds a download link to a zip file. Clicking on the link to the zip file is impossible to capture in the dev tools network panel.

The request is not logged at all even though persist logs is clicked. Or maybe the dev tools of the popup tab opened and closed too quickly.

There should be an option to keep the dev tab open even of closed popups/tabs

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Netmonitor
Product: Firefox → DevTools

Thanks for the report!

I can reproduce this on my machine.

It's because the download itself is not happening as part of the current page. But, you can use Browser Toolbox's Network panel [1] to capture the request and inspect.

Michal, how exactly downloading happens? is it done as part of the current page? Is it part of a new tab opened and immediately closed?

Harald, what do you think from the product perspective?
Should we show downloads in the Network panel?
(Btw. chrome doesn't show it either)

Honza

[1] https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox

Flags: needinfo?(michal.novotny)
Flags: needinfo?(hkirschner)

I don't know the exact answer. Forwarding ni? to Honza.

Flags: needinfo?(michal.novotny) → needinfo?(honzab.moz)

It depends. In this case the link added is:

<a href="/content/historical/EQUITIES/2020/MAR/cm16MAR2020bhav.csv.zip" target="new">cm16MAR2020bhav.csv.zip</a>

The response has Content-Type: application/zip but no content disposition. Clicking such a link is treated as a navigation - we build a new docshell, documentloadinfo and depending on the response we render it or download it.

What I can see is that when I open a new tab (about:blank), open devtools, copy-paste the download link [1] to the address bar and press enter, the tab is quickly closed and open, or somehow quickly reloaded as it seems (with devtools left open too) but the request is not logged. When I cancel the download and press enter in the address bar again (with the URL pasted) the request is logged in devtool, and apparently this time we don't do the about:blank -> https://.. tab reload/replacement.

[1] https://www1.nseindia.com/content/historical/EQUITIES/2020/MAR/cm16MAR2020bhav.csv.zip

Flags: needinfo?(honzab.moz)

@mayhemer thanks for the analysis!

Honza

Priority: -- → P5
Flags: needinfo?(bugzilla)
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: