Closed Bug 1368202 Opened 7 years ago Closed 7 years ago

convert uses of "defer" to "new Promise" in client/inspector

Categories

(DevTools :: Inspector, enhancement, P3)

53 Branch
enhancement

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: stylizit, Assigned: nicolaso)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → matthieu.rigolot
Status: NEW → ASSIGNED
DevTools bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Matthieu, are you still working on this? If not, could I pick this up? It seems easy enough.
Flags: needinfo?(matthieu.rigolot)
(In reply to Nicolas Ouellet-Payeur from comment #2)
> Matthieu, are you still working on this? If not, could I pick this up? It
> seems easy enough.

Hi Nicolas, sorry for the late reply. I won't be able to contribute until September, so for sure, feel free to go for it!
Flags: needinfo?(matthieu.rigolot)
Assignee: matthieu.rigolot → nicolaso
Here's a first patch. Added you as reviewer, Tom, since Matt is away, and you seem to have reviewed similar patches.
Comment on attachment 8893247 [details]
Bug 1368202 - convert uses of "defer" to "new Promise" in client/inspector

https://reviewboard.mozilla.org/r/164284/#review169828

Thank you for the patch.  This looks good.

Can you do a try run?  If you don't have sufficient permission, let me know and I will do it.

::: devtools/client/inspector/computed/computed.js:12
(Diff revision 1)
>  "use strict";
>  
>  const ToolDefinitions = require("devtools/client/definitions").Tools;
>  const CssLogic = require("devtools/shared/inspector/css-logic");
>  const {ELEMENT_STYLE} = require("devtools/shared/specs/styles");
>  const promise = require("promise");

I just wanted to note that with this patch in place, the inspector will use a combination of Promise (DOM promises) and "promise" (Promise.jsm promises).

That seems possibly confusing, but it seems to me that (1) we brought this on ourselves by having multiple promises in the first place, and (2) it is temporary due to bug 1384527.

So, I am inclined to not worry about it here, at least assuming that the result passes try.
Attachment #8893247 - Flags: review?(ttromey) → review+
> Can you do a try run?  If you don't have sufficient permission, let me know
> and I will do it.

No, I don't have the permissions to trigger a try run yet. Can you do it for me?
Pushed by ttromey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/24eaf9aca85c
convert uses of "defer" to "new Promise" in client/inspector r=tromey
https://hg.mozilla.org/mozilla-central/rev/24eaf9aca85c
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
https://hg.mozilla.org/projects/date/rev/24eaf9aca85c2bf6664ea92d295003f9c0be835b
Bug 1368202 - convert uses of "defer" to "new Promise" in client/inspector r=tromey
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: