Firefox 3.5で期待通りに動いていなかった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4999 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-25 10:05:47 +00:00
parent 8a223ba0d4
commit ef9fcb7755
3 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@
</row>
<row>
<radio value="left" label="&config.tabbar.position.left;"/>
<box style="border: ThreeDShadow 1px solid; margin: 0.3em; background: white; margin: 0;"/>
<box style="border: ThreeDShadow 1px solid; background: white; margin: 0;"/>
<radio value="right" label="&config.tabbar.position.right;"/>
</row>
<row align="start">

View File

@ -1891,7 +1891,7 @@ catch(e) {
)
);
if (!('getSupportedFlavours' in contentAreaDNDObserver)) { // Firefox 3.1 or later
if (!('getSupportedFlavours' in contentAreaDNDObserver)) { // Firefox 3.6 or later
eval('contentAreaDNDObserver.onDrop = '+
contentAreaDNDObserver.onDrop.toSource().replace(
'var types = aEvent.dataTransfer.types;',
@ -1908,10 +1908,9 @@ catch(e) {
contentAreaDNDObserver.onDrop.toSource().replace(
'{',
<![CDATA[$&
if (aXferData.flavour.contentType == gBrowser.treeStyleTab.kDRAG_TYPE_TABBAR) {
if (gBrowser.treeStyleTab.panelDNDObserver.canDrop(aEvent, aDragSession)) {
aEvent.preventDefault();
aEvent.stopPropagation();
return gBrowser.treeStyleTab.panelDNDObserver.onDrop(aEvent);
return gBrowser.treeStyleTab.panelDNDObserver.onDrop(aEvent, aXferData, aDragSession);
}
]]>
)

View File

@ -2503,6 +2503,7 @@ TreeStyleTabBrowser.prototype = {
canDrop : function(aEvent, aDragSession)
{
return (
aDragSession &&
aDragSession.isDataFlavorSupported(this.mOwner.kDRAG_TYPE_TABBAR) &&
aDragSession.sourceNode
) ? true : false ;