Closed
Bug 1664767
Opened 6 years ago
Closed 5 years ago
Remove defer usage in devtools\client\fronts\device.js
Categories
(DevTools :: Shared Components, task, P3)
DevTools
Shared Components
Tracking
(firefox84 fixed)
RESOLVED
FIXED
84 Branch
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: Honza, Assigned: vaga)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file)
We should use new Promise instead.
Honza
| Assignee | ||
Comment 1•5 years ago
|
||
Hi,
I changed defer to new Promise(...) but the method screenshotToBlob seems to be unused.
$ rg screenshotToBlob ./mozilla-unified/
./devtools/client/fronts/device.js
37: screenshotToBlob() {
Flags: needinfo?(odvarko)
| Reporter | ||
Comment 2•5 years ago
|
||
Fabien, sorry for the delay!
I think we should remove the method entirely as part of fixing this bug.
Julian, can you please confirm?
Honza
Flags: needinfo?(odvarko) → needinfo?(jdescottes)
Comment 3•5 years ago
|
||
Good call, that seems unused. Let's remove this method!
Looks like getDescription can also be removed since it was only needed for backward compat. Will file another bug.
Flags: needinfo?(jdescottes)
| Reporter | ||
Comment 4•5 years ago
|
||
Thanks Julian!
Fabien, are you still interested, should I assign this to you?
Flags: needinfo?(fabien)
| Assignee | ||
Comment 5•5 years ago
|
||
Yes, you can assign me!
Flags: needinfo?(fabien) → needinfo?(odvarko)
| Reporter | ||
Comment 6•5 years ago
|
||
Awesome, done!
Assignee: nobody → fabien
Status: NEW → ASSIGNED
Flags: needinfo?(odvarko)
| Assignee | ||
Comment 7•5 years ago
|
||
Finally, screenshotToBlob method is unused.
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e5864aed7409
Remove defer usage in devtools\client\fronts\device.js r=Honza
Comment 9•5 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•