Console doesn't allow dismissing completion text
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
People
(Reporter: sbdegutis, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
- Open console
- Type Object.has
- Press Escape, or ctrl-a, or ctrl-b, (but left arrow works)
Actual results:
Console should get rid of "OwnProperty" ghostly-suggestion
Expected results:
Console's completion-suggestion of "OwnProperty" continues to haunt the user
Whoops I got the things backwards. Actual/expected should be switched. Mea culpa.
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Thanks for the report sbdegutis , I confirm this is an issue.
I wouldn't mind volunteering to fix it if someone could point me to the right file. Also to the source code repo's URL.
Comment 4•6 years ago
|
||
Sure.
So you can read https://docs.firefox-dev.tools/getting-started/ to set up the work environment (make sure to use Artifact builds as they're much faster to work with).
This is the place where we should handle this case devtools/client/webconsole/components/JSTerm.js#413-419 .
You can see that we call clearCompletion, but only if the autocomplete popup is open. We should also clear it if this.getAutoCompletionText() is not falsy.
Let me know if you have any issue, either here or on our Slack.
Thanks!
- The link you posted to has a dead link for "set up a development profile"
- Is there a specific channel that's useful to discuss this code fix on that Slack server?
- Thanks :)
Comment 6•6 years ago
|
||
Thanks for the dead link notice, I have a patch to fix it (https://phabricator.services.mozilla.com/D35486)
Clicking the link now seems to change my address bar URL to the right place (per your patch), but it doesn't actually change any content in the browser (assuming some sort of client-side routing system).
Unfortunately I don't think I'll have time to be able to cooperate with making this patch in the timeline I thought I would be able to (e.g. within a day or two). I might be able to work on it in the longer term (e.g. maybe within a week or two), especially if I can convince my son to work with me on it as a way of getting him to understand open source better.
Comment 8•6 years ago
|
||
Unfortunately I don't think I'll have time to be able to cooperate with making this patch in the timeline I thought I would be able to (e.g. within a day or two). I might be able to work on it in the longer term (e.g. maybe within a week or two), especially if I can convince my son to work with me on it as a way of getting him to understand open source better.
Sounds great!
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Tested again and Escape seems to work fine for me
Description
•