Remove obsolete codes
This commit is contained in:
parent
49b0aa9f99
commit
787304666e
@ -1215,9 +1215,7 @@ catch(e) {
|
|||||||
this.performDrop(aDropActionInfo, newTabs[0]);
|
this.performDrop(aDropActionInfo, newTabs[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// TODO: The callback (for Firefox 38 and older) should be
|
w.getShortcutOrURIAndPostData(aURI).then((function(aData) {
|
||||||
// migrated to a Promise (Firefox 39 and later).
|
|
||||||
w.getShortcutOrURIAndPostData(aURI, (function(aData) {
|
|
||||||
var uri = aData.url;
|
var uri = aData.url;
|
||||||
this.performDrop(aDropActionInfo, b.loadOneTab(uri, {
|
this.performDrop(aDropActionInfo, b.loadOneTab(uri, {
|
||||||
inBackground : bgLoad,
|
inBackground : bgLoad,
|
||||||
@ -1237,9 +1235,7 @@ catch(e) {
|
|||||||
aDropActionInfo.position == sv.kDROP_ON)
|
aDropActionInfo.position == sv.kDROP_ON)
|
||||||
loadDroppedLinkToNewChildTab = sv.dropLinksOnTabBehavior() == sv.kDROPLINK_NEWTAB;
|
loadDroppedLinkToNewChildTab = sv.dropLinksOnTabBehavior() == sv.kDROPLINK_NEWTAB;
|
||||||
|
|
||||||
// TODO: The callback (for Firefox 38 and older) should be
|
w.getShortcutOrURIAndPostData(uris[0]).then((function(aData) {
|
||||||
// migrated to a Promise (Firefox 39 and later).
|
|
||||||
w.getShortcutOrURIAndPostData(uris[0], (function(aData) {
|
|
||||||
var uri = aData.url;
|
var uri = aData.url;
|
||||||
if (loadDroppedLinkToNewChildTab || locked) {
|
if (loadDroppedLinkToNewChildTab || locked) {
|
||||||
this.performDrop(aDropActionInfo, b.loadOneTab(uri, {
|
this.performDrop(aDropActionInfo, b.loadOneTab(uri, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user