Remove defer usage in devtools/server/startup/worker.js
Categories
(DevTools :: Shared Components, task, P3)
Tracking
(firefox86 fixed)
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: Honza, Assigned: falgunimst95)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(2 files)
We should use new Promise instead.
Honza
Assignee | ||
Comment 1•3 years ago
|
||
Hello, I am new to contributing to Bugzilla can you assigned me to this issue so that I can learn to fix these bugs and also suggest to me how can Is start working on this bug to fix it.
Reporter | ||
Comment 2•3 years ago
|
||
Done, thanks for helping!
Honza
Assignee | ||
Comment 3•3 years ago
|
||
Hello Honza, I am a bit confused how can i start working into this bug. I mean do this codes are in any git hub. For help in Mozilla chat channel how can i communicate about any kind of help regarding this bugs fixing issue.
Comment 4•3 years ago
|
||
(In reply to Falguni Islam from comment #3)
Hello Honza, I am a bit confused how can i start working into this bug. I mean do this codes are in any git hub. For help in Mozilla chat channel how can i communicate about any kind of help regarding this bugs fixing issue.
See https://firefox-source-docs.mozilla.org/setup/contributing_code.html
Assignee | ||
Comment 5•3 years ago
|
||
Thank you very much, @Tim Nguyen. I had already understood how to setup. Currently, I am studying these bugs to fix them and working on these bugs.
Comment 6•3 years ago
•
|
||
https://searchfox.org/mozilla-central/source/devtools/shared/defer.js shows how defer is implemented in general.
This bug is about rewriting devtools/server/startup/worker.js
to not use the defer
module.
If the promise property isn't used anywhere else:
const deferred = defer();
rpcDeferreds[id] = deferred;
return deferred.promise;
can just be changed to:
return new Promise((resolve, reject) => {
rpcDeferreds[id] = { resolve, reject };
});
If the promise property is used elsewhere (I'm not sure, but I don't think it is), you can just port the defer.js code inside the worker.js that uses it and adapt the code slightly.
Hopefully that's helpful, please let me know if you've got any questions.
Assignee | ||
Comment 7•3 years ago
|
||
Having problem to solve a error of break
Bug 168188 problem to understand the error Nicolas Silva <nsilva@mozilla.com>
Bug 1681888 using my concept to use break Nicolas Silva <nsilva@mozilla.com>
Assignee | ||
Comment 8•3 years ago
|
||
Hello @Tim Nguyen. , actually, this video helps me to submit my patches https://www.youtube.com/watch?v=3e-eaeeIDXk&t=509s but I am a bit confused that how can I land my revisions in Lando as in my Phabricator I did not found any lando. Is Lando important to use?
Comment 9•3 years ago
|
||
(In reply to Falguni Islam from comment #8)
Hello @Tim Nguyen. , actually, this video helps me to submit my patches https://www.youtube.com/watch?v=3e-eaeeIDXk&t=509s but I am a bit confused that how can I land my revisions in Lando as in my Phabricator I did not found any lando. Is Lando important to use?
Lando needs special permissions, instead you should use request review and then use the "Check-in needed" tag on Phabricator after approval.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d875215ffaf6 [devtools] Remove defer usage in devtools/server/startup/worker.js. r=nchevobbe
Comment 11•3 years ago
|
||
bugherder |
Assignee | ||
Comment 12•3 years ago
|
||
Reporter | ||
Comment 13•3 years ago
|
||
Falguni, this bug is already fixed, perhaps you wanted to attach the patch to different bug?
Honza
Assignee | ||
Comment 14•3 years ago
|
||
Hello Honza, Actually I was facing a problem while working on a bug. This file work was also attached in my new work , so I had separate this file and did hg revert , now my problem has been fixed.
Description
•