Add logging if native messaging host manifest is missing on windows
Categories
(WebExtensions :: General, defect, P3)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: aswan, Assigned: graham.mcknight2, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [native messaging]triaged)
Attachments
(1 file)
Updated•9 years ago
|
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
Add logging to _winLookup if host manifest is missing
Assignee | ||
Comment 5•6 years ago
|
||
Hi; I'm a student and I would like to take this bug. I submitted a patch, but I still have some concerns:
- The wording of the error. It seems to me as though the exceptions for nonexistent files do not have a message field of their own, so I added my own "no such file exists"
- Do we want to test the logging behavior? In the patch I submitted, I added an xpcshell test for this, however, none of the other logging of errors is seemingly tested, and I'm not sure that the technique used is robust.
- A number of the tests for browser/components/extensions/test/browser/ timed out or failed due to window positioning locally (both with and without the commit in question), so I was not able to verify that this change does not break those tests further, but there do not seem to be any related to native messaging in this directory.
- Likewise I did not verify that the current behavior on Mac/Linux was maintained, but I can set up a vm for it.
Reporter | ||
Comment 6•6 years ago
|
||
I'm about to be offline for several days, redirecting while I'm gone.
Comment 7•6 years ago
|
||
Hi Graham, thank you for submitting the patch, it looks good, though I left a few comments.
- The wording of the error. It seems to me as though the exceptions for nonexistent files do not have a message field of their own, so I added my own "no such file exists"
A more specific message might work better, like "Native Manifest file pointed to from registry not found" only perhaps worded better.
- Do we want to test the logging behavior? In the patch I submitted, I added an xpcshell test for this, however, none of the other logging of errors is seemingly tested, and I'm not sure that the technique used is robust.
Since this bug is specifically about adding a logging message, it makes sense to test that.
- A number of the tests for browser/components/extensions/test/browser/ timed out or failed due to window positioning locally (both with and without the commit in question), so I was not able to verify that this change does not break those tests further, but there do not seem to be any related to native messaging in this directory.
Yeah, unfortunately some tests are flaky and don't pass on some dev machines :/, please ignore them as they seem totally unrelated to your changes.
- Likewise I did not verify that the current behavior on Mac/Linux was maintained, but I can set up a vm for it.
That's not needed/expected, but if you want to go for bonus points, you can let your test run on all platforms, and assert the error message is not logged on linux/osx.
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Pushed by opoprus@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3e5348e100e4
Add logging to _winLookup if host manifest is missing r=zombie
Comment 9•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
Thanks so much for the patch, Graham! 🎉 Your contribution has been added to our recognition wiki: https://wiki.mozilla.org/Add-ons/Contribute/Recognition
Would you be interested in creating a profile on mozillians.org? I'd be happy to vouch for you!
Assignee | ||
Comment 11•6 years ago
|
||
Hi Caitlin! I missed this because my phone stopped showing me notifications for emails. I just created a mozillian account, and the link to vouch is here: https://mozillians.org/en-US/u/graham.mcknight2/
This is also a good opportunity for me to say: thanks for the review, Tomislav!
Comment 12•6 years ago
|
||
Awesome, thank you, Graham! Your profile has been vouched.
Welcome onboard! We look forward to seeing you around! 😎
Comment 13•5 years ago
|
||
Hello,
Will this fix require manual validation? If yes, please provide some steps to reproduce in order to correctly test it and also, please set the "qe-verify+" flag. Otherwise, could the "qe-verify-" flag be added? Thanks!
Assignee | ||
Comment 14•5 years ago
|
||
I started, but haven't finished typing instructions to reproduce, so I will finish after work. I'm unsure whether it needs manual verification. Tomislav, can I get you to shed some light on when manual verification is needed?
Comment 15•5 years ago
|
||
This landed with a test, and it's not a significant change, so QA doesn't seem necessary. Though if you already tested, feel free to change the status to VERIFIED.
Description
•