Bug 443789 - Can't drag and drop DCC tabs
r=silver@warwickcompsoc.co.uk (James Ross) ChatZilla Only, NPOTFFB, etc. git-svn-id: svn://10.0.0.236/trunk@254338 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fe9713e573
commit
a86d3d2873
@ -3496,7 +3496,7 @@ function tabdnd_drop(aEvent, aXferData, aDragSession)
|
||||
// See comment above |var tabsDropObserver|.
|
||||
var url = transferUtils.retrieveURLFromData(aXferData.data,
|
||||
aXferData.flavour.contentType);
|
||||
if (!url || !url.match(/^ircs?:/))
|
||||
if (!url || !(url.match(/^ircs?:/) || url.match(/^x-irc-dcc-(chat|file):/)))
|
||||
return;
|
||||
|
||||
// Find the tab to insertBefore() the new one.
|
||||
@ -3528,7 +3528,8 @@ function tabdnd_drop(aEvent, aXferData, aDragSession)
|
||||
}
|
||||
|
||||
// URL not found in tabs, so force it into life - this may connect/rejoin.
|
||||
gotoIRCURL(url, { tabInsertBefore: dropTab });
|
||||
if (url.substring(0, 3) == "irc")
|
||||
gotoIRCURL(url, { tabInsertBefore: dropTab });
|
||||
}
|
||||
|
||||
tabsDropObserver.getSupportedFlavours =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user