Closed
Bug 1245599
Opened 9 years ago
Closed 9 years ago
Implement chrome.downloads.onCreated
Categories
(WebExtensions :: Untriaged, defect)
WebExtensions
Untriaged
Tracking
(firefox48 fixed)
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: aswan, Assigned: aswan)
References
(Blocks 1 open bug)
Details
(Whiteboard: [downloads])
Attachments
(1 file)
Part of supporting chrome.downloads in WebExtensions
https://developer.chrome.com/extensions/downloads#event-onCreated
Updated•9 years ago
|
Whiteboard: [downloads]
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → aswan
Iteration: --- → 48.1 - Mar 21
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38725/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38725/
Attachment #8727990 -
Flags: review?(kmaglione+bmo)
Updated•9 years ago
|
Attachment #8727990 -
Flags: review?(kmaglione+bmo) → review+
Comment 2•9 years ago
|
||
Comment on attachment 8727990 [details]
MozReview Request: Bug 1245599 - Implement chrome.downloads.onCreated r?kmag
https://reviewboard.mozilla.org/r/38725/#review35427
::: toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_misc.html:57
(Diff revision 1)
> + || !expected.every((item, i) => compare(events[i], item))) {
Can we explicitly fail if one of these doesn't match?
::: toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_misc.html:122
(Diff revision 1)
> + extension = ExtensionTestUtils.loadExtension({
Can you return this rather than making it a global?
Assignee | ||
Comment 3•9 years ago
|
||
https://reviewboard.mozilla.org/r/38725/#review35427
> Can you return this rather than making it a global?
You're looking at this partway through its journey into becoming a richer test suite, I plan to add additional tests in separate tasks, so things like setup() and runInExtension() would be outside the actual test tasks. extension is still scoped to this script, is the desire for it to not be global just for general tidiness or is there another reason to prefer a narrower scope?
Comment 4•9 years ago
|
||
https://reviewboard.mozilla.org/r/38725/#review35427
> You're looking at this partway through its journey into becoming a richer test suite, I plan to add additional tests in separate tasks, so things like setup() and runInExtension() would be outside the actual test tasks. extension is still scoped to this script, is the desire for it to not be global just for general tidiness or is there another reason to prefer a narrower scope?
I generally prefer test tasks to be as self-contained as possible, but I guess this is fine.
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8727990 [details]
MozReview Request: Bug 1245599 - Implement chrome.downloads.onCreated r?kmag
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38725/diff/1-2/
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 7•9 years ago
|
||
backed out for test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=7893663&repo=fx-team
Flags: needinfo?(aswan)
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8727990 [details]
MozReview Request: Bug 1245599 - Implement chrome.downloads.onCreated r?kmag
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38725/diff/2-3/
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(aswan)
Comment 11•9 years ago
|
||
You might want to enable the ESLint pre-commit hook[1] to prevent that from happening again.
[1]: https://wiki.mozilla.org/WebExtensions/Hacking#Version_control_hooks
Comment 12•9 years ago
|
||
Keywords: checkin-needed
Comment 13•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•