From 787304666e8e3b54d2c995cd8f2941d52ff9ec2e Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Mon, 5 Sep 2016 01:17:10 +0900 Subject: [PATCH] Remove obsolete codes --- modules/tabbarDNDObserver.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 0278186c..56695ef5 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -1215,9 +1215,7 @@ catch(e) { this.performDrop(aDropActionInfo, newTabs[0]); } else { - // TODO: The callback (for Firefox 38 and older) should be - // migrated to a Promise (Firefox 39 and later). - w.getShortcutOrURIAndPostData(aURI, (function(aData) { + w.getShortcutOrURIAndPostData(aURI).then((function(aData) { var uri = aData.url; this.performDrop(aDropActionInfo, b.loadOneTab(uri, { inBackground : bgLoad, @@ -1237,9 +1235,7 @@ catch(e) { aDropActionInfo.position == sv.kDROP_ON) loadDroppedLinkToNewChildTab = sv.dropLinksOnTabBehavior() == sv.kDROPLINK_NEWTAB; - // TODO: The callback (for Firefox 38 and older) should be - // migrated to a Promise (Firefox 39 and later). - w.getShortcutOrURIAndPostData(uris[0], (function(aData) { + w.getShortcutOrURIAndPostData(uris[0]).then((function(aData) { var uri = aData.url; if (loadDroppedLinkToNewChildTab || locked) { this.performDrop(aDropActionInfo, b.loadOneTab(uri, {