зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0d64e50e68
Коммит
b05d25d7d6
|
@ -802,9 +802,7 @@ class JSTerm extends Component {
|
|||
lines: str.split(/\n/).length,
|
||||
});
|
||||
|
||||
const { frameActor, client } = this.props.serviceContainer.getFrameActor(
|
||||
options.frame
|
||||
);
|
||||
const { frameActor, client } = this.props.serviceContainer.getFrameActor();
|
||||
|
||||
return client.evaluateJSAsync(str, {
|
||||
frameActor,
|
||||
|
|
|
@ -161,22 +161,19 @@ class WebConsoleWrapper {
|
|||
* Retrieve the FrameActor ID given a frame depth, or the selected one if no
|
||||
* frame depth given.
|
||||
*
|
||||
* @param {Number} frame: optional frame depth.
|
||||
* @return { frameActor: String|null, client: Object }:
|
||||
* frameActor is the FrameActor ID for the given frame depth
|
||||
* (or the selected frame if it exists), null if no frame was found.
|
||||
* client is the WebConsole client for the thread the frame is
|
||||
* associated with.
|
||||
*/
|
||||
getFrameActor: (frame = null) => {
|
||||
getFrameActor: () => {
|
||||
const state = this.hud.getDebuggerFrames();
|
||||
if (!state) {
|
||||
return { frameActor: null, client: webConsoleUI.webConsoleClient };
|
||||
}
|
||||
|
||||
const grip = Number.isInteger(frame)
|
||||
? state.frames[frame]
|
||||
: state.frames[state.selected];
|
||||
const grip = state.frames[state.selected];
|
||||
|
||||
if (!grip) {
|
||||
return { frameActor: null, client: webConsoleUI.webConsoleClient };
|
||||
|
|
Загрузка…
Ссылка в новой задаче