Backed out 2 changesets (bug 1568143, bug 1567174) for causing browser_ext_addon_debugging_netmonitor.js to perma fail CLOSED TREE
Backed out changeset a8faaa1c722e (bug 1568143) Backed out changeset 5dddaeb1e952 (bug 1567174)
This commit is contained in:
@@ -344,8 +344,11 @@ class MarkupContextMenu {
|
||||
*/
|
||||
_showDOMProperties() {
|
||||
this.toolbox.openSplitConsole().then(() => {
|
||||
const { hud } = this.toolbox.getPanel("webconsole");
|
||||
hud.ui.wrapper.dispatchEvaluateExpression("inspect($0)");
|
||||
const panel = this.toolbox.getPanel("webconsole");
|
||||
const jsterm = panel.hud.jsterm;
|
||||
|
||||
jsterm.execute("inspect($0)");
|
||||
jsterm.focus();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -356,27 +359,26 @@ class MarkupContextMenu {
|
||||
* temp variable on the content window. Also opens the split console and
|
||||
* autofills it with the temp variable.
|
||||
*/
|
||||
async _useInConsole() {
|
||||
await this.toolbox.openSplitConsole();
|
||||
const { hud } = this.toolbox.getPanel("webconsole");
|
||||
_useInConsole() {
|
||||
this.toolbox.openSplitConsole().then(() => {
|
||||
const { hud } = this.toolbox.getPanel("webconsole");
|
||||
|
||||
const evalString = `{ let i = 0;
|
||||
while (window.hasOwnProperty("temp" + i) && i < 1000) {
|
||||
i++;
|
||||
}
|
||||
window["temp" + i] = $0;
|
||||
"temp" + i;
|
||||
}`;
|
||||
const evalString = `{ let i = 0;
|
||||
while (window.hasOwnProperty("temp" + i) && i < 1000) {
|
||||
i++;
|
||||
}
|
||||
window["temp" + i] = $0;
|
||||
"temp" + i;
|
||||
}`;
|
||||
|
||||
const options = {
|
||||
selectedNodeActor: this.selection.nodeFront.actorID,
|
||||
};
|
||||
const res = await hud.ui.webConsoleClient.evaluateJSAsync(
|
||||
evalString,
|
||||
options
|
||||
);
|
||||
hud.setInputValue(res.result);
|
||||
this.inspector.emit("console-var-ready");
|
||||
const options = {
|
||||
selectedNodeActor: this.selection.nodeFront.actorID,
|
||||
};
|
||||
hud.jsterm.requestEvaluation(evalString, options).then(res => {
|
||||
hud.setInputValue(res.result);
|
||||
this.inspector.emit("console-var-ready");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
_buildA11YMenuItem(menu) {
|
||||
|
||||
Reference in New Issue
Block a user