mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
This patch adds two things to JsPropertyProvider: - when provided an input which try to access an unsafe getter properties, the function will indicate that an unsafe getter should be invoked, with its name. - a new boolean argument that when set to true would invoke any unsafe getter that might be in the expression to be completed. For simplicity sake, the function only warns the user of the presence of an unsafe getter when it's the last property of the expression: `object.myGetter.` will return that `myGetter` should be invoked `object.myGetter.a.b.` will not (because then, a and b could also be getters, and it's getting complex to handle both in the function itself as in the UI). Tests are added to ensure this works as expected. Differential Revision: https://phabricator.services.mozilla.com/D11170