location.then(({ href, line, column }) => {
   let target = this.inspector.target;
   if (ToolDefinitions.styleEditor.isTargetSupported(target)) {
     gDevTools.showToolbox(target, "styleeditor").then(function(toolbox) {
       toolbox.getCurrentPanel().selectStyleSheet(href, line, column);
     });
   }
   return;
 })
Exemple #2
0
 location.then(({source, href, line, column}) => {
   let target = inspector.target;
   if (ToolDefinitions.styleEditor.isTargetSupported(target)) {
     gDevTools.showToolbox(target, "styleeditor").then(function(toolbox) {
       let sheet = source || href;
       toolbox.getCurrentPanel().selectStyleSheet(sheet, line, column);
     });
   }
 });