Bug 1274106 - Allow displaying items with the same name/url/title in about:debugging. r=jdescottes, a=ritu
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 21 Sep 2016 02:48:49 -0700
changeset 358004 e6eb8450700911e7363654b361a31833d294f69f
parent 358003 f4e9c5c06d6064e1a2b9cb74708a459a05092828
child 358005 b3d665af312420583aee1f3b9adc98539b662a44
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes, ritu
bugs1274106
milestone51.0a2
Bug 1274106 - Allow displaying items with the same name/url/title in about:debugging. r=jdescottes, a=ritu MozReview-Commit-ID: 60tENnw1GyW
devtools/client/aboutdebugging/components/target-list.js
--- a/devtools/client/aboutdebugging/components/target-list.js
+++ b/devtools/client/aboutdebugging/components/target-list.js
@@ -19,18 +19,17 @@ module.exports = createClass({
   displayName: "TargetList",
 
   render() {
     let { client, debugDisabled, error, targetClass, targets, sort } = this.props;
     if (sort) {
       targets = targets.sort(LocaleCompare);
     }
     targets = targets.map(target => {
-      let key = target.name || target.url || target.title;
-      return targetClass({ client, key, target, debugDisabled });
+      return targetClass({ client, target, debugDisabled });
     });
 
     let content = "";
     if (error) {
       content = error;
     } else if (targets.length > 0) {
       content = dom.ul({ className: "target-list" }, targets);
     } else {