Closed
Bug 1231489
Opened 9 years ago
Closed 5 years ago
Custom properties of primitive prototypes are not autocompleted
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox66 fixed)
RESOLVED
FIXED
Firefox 66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: simon.lindholm10, Assigned: nchevobbe)
References
Details
(Whiteboard: [boogaloo-mvp])
Attachments
(1 file)
STR:
>> String.prototype.hello = 1
>> a = "hi"
>> a.h<tab>
should auto-complete to "a.hello", but does not. This happens because the browser chrome's String.prototype is used when converting "a" to an object, rather than the page's.
Also happens for numbers, symbols, etc., and for literal strings and arrays (through a separate but similar code path).
Updated•6 years ago
|
Product: Firefox → DevTools
Assignee | ||
Updated•6 years ago
|
Priority: -- → P2
Whiteboard: [boogaloo-reserve]
Updated•6 years ago
|
Priority: P2 → P3
Assignee | ||
Updated•6 years ago
|
Whiteboard: [boogaloo-reserve] → [boogaloo-mvp]
Updated•6 years ago
|
Priority: P3 → P2
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Assignee | ||
Comment 1•5 years ago
|
||
When provided a string, number or array literals, we use to simply return the properties from String.prototype, Number.prototype and Array.prototype. This is working fine unless the content prototypes are modified. In order to make it work properly, we retrieve the actual content prototype. The js-property-provider unit test is modified to ensure this is working as expected.
Assignee | ||
Comment 2•5 years ago
|
||
TRY push https://treeherder.mozilla.org/#/jobs?repo=try&revision=2b88a07e9e8bf2991b470e6dc494f79296b90bc1
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c65391dd1e7d Use content prototype for autocompletion of String, Number and Array literals; r=bgrins.
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
You need to log in
before you can comment on or make changes to this bug.
Description
•