Closed Bug 1464241 Opened 6 years ago Closed 6 years ago

Initiating download caused debugger inspector to disappear

Categories

(DevTools :: Inspector, defect)

61 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1347761

People

(Reporter: alexander.ressler, Unassigned)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180521110957

Steps to reproduce:

PROBLEM:

When inspecting or debugging a web page with the developer tools HTML inspector, if the user initiates a download, then the inspector content disappears. No HTML is inspectable afterwards. The user needs to refresh the page to reload the inspector.




USE THE FOLLOWING AS A TEST HTML PAGE TO REPRODUCE THE ISSUE:


<!doctype html>
<html>
<head>
    <meta charset="utf-8">
</head>
<body>
    <div id="foo">content</div>
    <a download="foo.txt" href="#">
        download button
    </a>
    <script>
        var a = document.querySelector('a'),
            blob = new Blob(['foo'], {type: 'text/plain'});
        a.setAttribute('href', URL.createObjectURL(blob));
    </script>
</body>
</html>


Actual results:

The inspector disappeared after clicking the anchor tag to initiate a file download.


Expected results:

The inspector shouldn't have disappeared.
I have reproduced this on Firefox Developer Edition and Firefox 61.
reproduced on Nightly62.0a1 too
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Inspector
Ever confirmed: true
STR
1. Open http://archive.mozilla.org/pub/firefox/nightly/2004/02/2004-02-10-08-trunk/
2. Open Inspector
3. Click on a link in the page of step1
   --- observe, the inspector dom tree becomes blank

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a105cf2d33a5643d63c516d5ecfe917d8eb5eeee&tochange=fb4f5c7e082a4176cd1b8f3c784e5f424417e3fa

Regressed by: Bug 1151909
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: