Prevent dev tools closing on tab/popup close
Categories
(DevTools :: Netmonitor, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: mavinkai, Unassigned)
References
()
Details
Attachments
(1 file)
58.61 KB,
image/png
|
Details |
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
Comment 1•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
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
Comment 3•5 years ago
|
||
I don't know the exact answer. Forwarding ni? to Honza.
![]() |
||
Comment 4•5 years ago
|
||
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
Updated•4 years ago
|
Updated•3 years ago
|
Description
•