Closed
Bug 1783373
Opened 3 years ago
Closed 3 years ago
Download panel will not appear in private window when taking a screenshot using devtools
Categories
(DevTools :: General, defect, P2)
Tracking
(firefox105 fixed)
RESOLVED
FIXED
105 Branch
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: 6k64x4ma, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Steps to reproduce:
- Open a private window and a non-private window.
- Take a screenshot using Inspector or Responsive Design Mode on the private window.
- Close the non-private window and take another screenshot.
Actual results:
- If there is a non-private window, the download panel will appear in the non-private window.
- If there are no non-private windows, the download panel will not be displayed.
Expected results:
The download panel should be displayed in a private window in both cases.
Comment 1•3 years ago
|
||
Thanks for filing, Nicolas will take a look
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(nchevobbe)
Priority: -- → P2
Assignee | ||
Comment 2•3 years ago
|
||
This is where we trigger the Download panel behavior:
const download = await Downloads.createDownload({
source: sourceURI,
target: targetFile,
});
const list = await Downloads.getList(Downloads.ALL);
// add the download to the download list in the Downloads list in the Browser UI
list.add(download);
// Await successful completion of the save via the download manager
await download.start();
It looks like Downloads.createDownload
take a isPrivate
param (toolkit/components/downloads/Downloads.jsm#81-82,107-113 ) which we could pass from DevTools code
Flags: needinfo?(nchevobbe)
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/176ca1d8bfc6
[devtools] Pass isPrivate property to Downloads.createDownload. r=jdescottes.
Comment 5•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox105:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•