Console runs the wrong getter if it's shadowed
Categories
(DevTools :: Console, defect, P2)
Tracking
(firefox-esr60 unaffected, firefox64 unaffected, firefox65 verified, firefox66 verified)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | verified |
firefox66 | --- | verified |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details |
Assignee | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
Try seems green enough: https://treeherder.mozilla.org/#/jobs?repo=try&revision=df52404edf310f35a9a3557a8eb063ba96a13168
Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/874c30e2b934
Add receiverId parameter in objectClient.getPropertyValue. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/524ec48474fd
Let reps invoke the right getter when it's shadowed. r=nchevobbe
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/874c30e2b934
https://hg.mozilla.org/mozilla-central/rev/524ec48474fd
Comment 8•6 years ago
|
||
Please nominate this for Beta approval when you get a chance.
Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9034581 [details]
Bug 1515046 - Let reps invoke the right getter when it's shadowed. r=nchevobbe
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Bug 1513505
User impact if declined: Console invokes the wrong getter if the one clicked by the user is shadowed
Is this code covered by automated tests?: Yes
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: Yes
If yes, steps to reproduce: 1. Open the console
2. Evaluate the following code:
({
value: 2,
get getter() { return this.value * 3 },
__proto__: {
value: 5,
get getter() { return this.value * 7 },
}
})
- Expand the object
- Expand <prototype>
- Click '>>' next to 'getter' to invoke the getter
- Expected result: 14
List of other uplifts needed: Bug 1515046, Bug 1515447
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): This bug only has devtools changes for getter invocation, and are covered by tests.
Bug 1515447 has JS changes in DebuggerObject but they mimic existing code and are also covered by tests.
String changes made/needed:
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
I can apply the patches cleanly to latest beta 5b52f9f83004.
Note that the order should be 1st D15018, 2nd D15788, 3rd D15789.
D15789 does not apply cleanly without D15788.
Comment 12•6 years ago
|
||
Oh, I missed the dependency on the other bug. It also needs an uplift request.
Assignee | ||
Comment 13•6 years ago
|
||
OK I thought a single uplift request sufficed. But you should have been able to apply the patches from this bug without the other one (the tests would fail, though)
Comment 14•6 years ago
|
||
Fun, I can import D15788 from Phabricator without issue, but grafting 874c30e2b934 has conflicts in reps.js.
Comment 15•6 years ago
|
||
Comment on attachment 9034581 [details]
Bug 1515046 - Let reps invoke the right getter when it's shadowed. r=nchevobbe
[Triage Comment]
Fixes a devtools bug. Approved for 65.0b11.
Comment 16•6 years ago
|
||
bugherder uplift |
Comment 17•6 years ago
|
||
I have reproduced this issue using Firefox 66.0a1 (2018.12.18) on Win 10 x64.
I can confirm this issue is fixed, I verified using Firefox Nightly 66.0a1 and Firefox 65.0b11 build from Taskcluster on Win 10 x64, Mac OS X 10.13.6 and Ubuntu 18.04 x64.
Comment 18•6 years ago
|
||
Thanks a lot Oriol for fixing this + requesting the uplift!
Description
•