Closed
Bug 1089368
Opened 10 years ago
Closed 6 years ago
Promisify _removeLegacySites from content/newtab/updater.js
Categories
(Firefox :: New Tab Page, defect)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
Firefox 60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: evold, Assigned: evold)
References
Details
Attachments
(1 file)
1.82 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
https://github.com/erikvold/gecko-dev/pull/5/files
Attachment #8511670 -
Flags: review?(ttaubert)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → evold
Comment 2•10 years ago
|
||
Comment on attachment 8511670 [details] [diff] [review] 1089368.diff Review of attachment 8511670 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! r=me with the two callback args removed. ::: browser/base/content/newtab/updater.js @@ +139,5 @@ > node.parentNode.removeChild(node); > resolve(); > }); > + }); > + }).then(aCallback).catch(console.exception); There's no reason to still support the callback, right? Catching errors should probably be moved to the caller as well. @@ +152,4 @@ > let {cells, sites} = gGrid; > > // Find empty cells and fill them. > + return Promise.all(sites.map((aSite, aIndex) => { We can remove the callback argument here for _fillEmptyCells() as well.
Attachment #8511670 -
Flags: review?(ttaubert) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Tim Taubert [:ttaubert] from comment #2) > Comment on attachment 8511670 [details] [diff] [review] > 1089368.diff > > Review of attachment 8511670 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thanks! r=me with the two callback args removed. > > ::: browser/base/content/newtab/updater.js > @@ +139,5 @@ > > node.parentNode.removeChild(node); > > resolve(); > > }); > > + }); > > + }).then(aCallback).catch(console.exception); > > There's no reason to still support the callback, right? Catching errors > should probably be moved to the caller as well. > > @@ +152,4 @@ > > let {cells, sites} = gGrid; > > > > // Find empty cells and fill them. > > + return Promise.all(sites.map((aSite, aIndex) => { > > We can remove the callback argument here for _fillEmptyCells() as well. sounds good!
Assignee | ||
Comment 4•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=368c829e9c17
Comment 5•6 years ago
|
||
Code was removed in bug 1433133 https://hg.mozilla.org/mozilla-central/rev/fc80dd3e4fae
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Depends on: 1433133
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in
before you can comment on or make changes to this bug.
Description
•