Autocomplete fails after `/(`
Categories
(DevTools :: Console, defect, P3)
Tracking
(firefox137 fixed)
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: cpplearner, NeedInfo)
Details
Attachments
(1 file, 1 obsolete file)
Steps to reproduce
- Open the console
- Type
1/(d
Expected results
The autocomplete popup should be displayed, containing document
Actual results
The autocomplete popup isn't displayed.
Comment 1•6 years ago
|
||
hi 👋 ,
I look into it and found that if you type /( https://searchfox.org/mozilla-central/source/devtools/client/webconsole/actions/autocomplete.js#145) this will do autocomplete for '(' and filled in the with matches = [] instead of matches = null which inturn fills cache(https://searchfox.org/mozilla-central/source/devtools/client/webconsole/reducers/autocomplete.js#50), so if after that you write anything (https://searchfox.org/mozilla-central/source/devtools/client/webconsole/actions/autocomplete.js#145) this is called as cache is empty we don't get any result, I cannot find the implementation of autocomplete method used here(https://searchfox.org/mozilla-central/source/devtools/client/webconsole/actions/autocomplete.js#145) can you point me into it so I could investigate further
Thanx
Pranav
Reporter | ||
Comment 2•6 years ago
|
||
hello Pranav, thanks for investigating.
I don't think the issue is on the client side.
If you apply the following diff:
diff --git a/devtools/shared/webconsole/test/xpcshell/test_js_property_provider.js b/devtools/shared/webconsole/test/xpcshell/test_js_property_provider.js
--- a/devtools/shared/webconsole/test/xpcshell/test_js_property_provider.js
+++ b/devtools/shared/webconsole/test/xpcshell/test_js_property_provider.js
@@ -594,6 +594,9 @@ function runChecks(dbgObject, environmen
});
test_has_result(results, "'propA'");
Assert.equal(results.matches.has("propLocal"), false);
+
+ results = propertyProvider("1/(t");
+ test_has_result(results, "testObject");
}
and run the test, it will fail.
This means there's an issue with JsPropertyProvider
analyzeInputString
(devtools/shared/webconsole/js-property-provider.js#412 )
The culprit is probably here https://searchfox.org/mozilla-central/rev/ad6234148892bc29bf08d736604ac71925138040/devtools/shared/webconsole/js-property-provider.js#544-547, where we reset the statement, but really should go other the normal case.
Comment 3•5 years ago
|
||
I'd like to work on this!
Reporter | ||
Comment 4•5 years ago
|
||
Thanks Miguel, it's yours :)
Let me know if you have any question
Comment 5•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:nchevobbe, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 6•7 months ago
|
||
Assignee | ||
Comment 7•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 9•7 months ago
|
||
Backed out for causing linting failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/f72ab01ea433c5eed76302eb9db9722d25ba932b
Failure log: https://treeherder.mozilla.org/logviewer?job_id=493247754&repo=autoland&lineNumber=597
Updated•7 months ago
|
Comment 10•7 months ago
|
||
Comment 11•7 months ago
|
||
bugherder |
Description
•