browser.notifications.onClicked callback get erroneous second parameter
Categories
(WebExtensions :: Compatibility, enhancement, P5)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: nmaier, Assigned: myeongjun.ko, Mentored)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file)
Updated•8 years ago
|
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 2•6 years ago
|
||
This is still open, and quite simple to fix. Just remove the parameter at: https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/toolkit/components/extensions/parent/ext-notifications.js#141
Comment 3•6 years ago
|
||
If this is your first contribution, please refer to https://wiki.mozilla.org/WebExtensions/Contribution_Onramp for how to get started.
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
When I see this bug, I happen one question.
I think that "onShown" parameter[0] be removed as well as "onClicked".
I checked onShown that is a single parameter. [1][2]
If you have a time, Please Check this things again :)
Thank you.
[0] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/extensions/parent/ext-notifications.js#172
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications/onShown#Parameters
[2] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/extensions/schemas/notifications.json#419
Comment 5•6 years ago
|
||
The second parameter to onShown can be removed too, thanks for asking.
Note: When you link to source code, try to generate a permalink. Otherwise, if the code changes, the link will point to a different location in the code, and it will be more difficult to understand the context of your comment.
Example:
- https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent/ext-notifications.js#172 (no specific revision)
- https://searchfox.org/mozilla-central/rev/597a69c70a5cce6f42f159eb54ad1ef6745f5432/toolkit/components/extensions/parent/ext-notifications.js#172 (permalink, Searchfox)
- https://dxr.mozilla.org/mozilla-central/rev/85b4e005b39ce061e796d65ce1b2fc4e83c96a41/toolkit/components/extensions/parent/ext-notifications.js#172 (permalink, DXR)
| Assignee | ||
Comment 6•6 years ago
|
||
Thank you for teaching me :)
When I make link, I gonna be careful to make it.
Can I try to work on this issue?
| Assignee | ||
Comment 8•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Pushed by aiakab@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f97cc8c93227
browser.notifications.onClicked callback get erroneous second parameter r=robwu
Comment 10•6 years ago
|
||
| bugherder | ||
Comment 11•6 years ago
|
||
Hello,
Could you please provide a test extension and STR if this fix requires manual validation? Otherwise, could the "qe-verify-" flag be added? Thanks!
Updated•6 years ago
|
Description
•