Minefield 3.1b2preで動作しなくなっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3337 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
fe27c4687f
commit
47af624231
@ -1196,51 +1196,54 @@ catch(e) {
|
|||||||
funcs = 'handleLinkClick __splitbrowser__handleLinkClick __ctxextensions__handleLinkClick __treestyletab__highlander__origHandleLinkClick'.split(' ');
|
funcs = 'handleLinkClick __splitbrowser__handleLinkClick __ctxextensions__handleLinkClick __treestyletab__highlander__origHandleLinkClick'.split(' ');
|
||||||
for (var i in funcs)
|
for (var i in funcs)
|
||||||
{
|
{
|
||||||
if (funcs[i] in window && /^function handleLinkClick/.test(window[funcs[i]].toString()))
|
if (!(funcs[i] in window) ||
|
||||||
eval('window.'+funcs[i]+' = '+
|
!/^function handleLinkClick/.test(window[funcs[i]].toString()))
|
||||||
window[funcs[i]].toSource().replace(
|
continue;
|
||||||
/(openNewTabWith\()/g,
|
eval('window.'+funcs[i]+' = '+
|
||||||
<><![CDATA[
|
window[funcs[i]].toSource().replace(
|
||||||
if (!TreeStyleTabService.checkToOpenChildTab(event.target.ownerDocument.defaultView)) TreeStyleTabService.readyToOpenChildTab(event.target.ownerDocument.defaultView);
|
/(openNewTabWith\()/g,
|
||||||
$1]]></>
|
<><![CDATA[
|
||||||
).replace(
|
if (!TreeStyleTabService.checkToOpenChildTab(event.target.ownerDocument.defaultView)) TreeStyleTabService.readyToOpenChildTab(event.target.ownerDocument.defaultView);
|
||||||
/(event.ctrlKey|event.metaKey)/,
|
$1]]></>
|
||||||
<><![CDATA[
|
).replace(
|
||||||
TreeStyleTabService.checkReadyToOpenNewTab({
|
/(event.ctrlKey|event.metaKey)/,
|
||||||
uri : href,
|
<><![CDATA[
|
||||||
external : {
|
TreeStyleTabService.checkReadyToOpenNewTab({
|
||||||
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),
|
uri : href,
|
||||||
forceChild : true
|
external : {
|
||||||
},
|
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),
|
||||||
internal : {
|
forceChild : true
|
||||||
newTab : TreeStyleTabService.getTreePref('openAnyLinkInNewTab')
|
},
|
||||||
},
|
internal : {
|
||||||
modifier : $1,
|
newTab : TreeStyleTabService.getTreePref('openAnyLinkInNewTab')
|
||||||
invert : TreeStyleTabService.getTreePref('link.invertDefaultBehavior')
|
},
|
||||||
}) ? true : (TreeStyleTabService.readyToOpenChildTab(), false)
|
modifier : $1,
|
||||||
]]></>
|
invert : TreeStyleTabService.getTreePref('link.invertDefaultBehavior')
|
||||||
).replace(
|
}) ? true : (TreeStyleTabService.readyToOpenChildTab(), false)
|
||||||
'return false;case 1:',
|
]]></>
|
||||||
<><![CDATA[
|
).replace(
|
||||||
if (!('TMP_contentAreaClick' in window) && // do nothing for Tab Mix Plus
|
'return false;case 1:',
|
||||||
TreeStyleTabService.checkToOpenChildTab()) {
|
<><![CDATA[
|
||||||
TreeStyleTabService.stopToOpenChildTab();
|
if (!('TMP_contentAreaClick' in window) && // do nothing for Tab Mix Plus
|
||||||
if (linkNode)
|
TreeStyleTabService.checkToOpenChildTab()) {
|
||||||
urlSecurityCheck(href,
|
TreeStyleTabService.stopToOpenChildTab();
|
||||||
'nodePrincipal' in linkNode.ownerDocument ?
|
if (linkNode)
|
||||||
linkNode.ownerDocument.nodePrincipal :
|
urlSecurityCheck(href,
|
||||||
linkNode.ownerDocument.location.href
|
'nodePrincipal' in linkNode.ownerDocument ?
|
||||||
);
|
linkNode.ownerDocument.nodePrincipal :
|
||||||
var postData = {};
|
linkNode.ownerDocument.location.href
|
||||||
href = getShortcutOrURI(href, postData);
|
);
|
||||||
if (!href) return false;
|
var postData = {};
|
||||||
loadURI(href, null, postData.value, false);
|
href = getShortcutOrURI(href, postData);
|
||||||
}
|
if (!href) return false;
|
||||||
return false;
|
loadURI(href, null, postData.value, false);
|
||||||
case 1:
|
}
|
||||||
]]></>
|
return false;
|
||||||
)
|
case 1:
|
||||||
);
|
]]></>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
funcs = 'contentAreaClick __contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
|
funcs = 'contentAreaClick __contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
|
||||||
|
@ -457,7 +457,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}, 0, this);
|
}, 0, this);
|
||||||
|
|
||||||
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
||||||
allTabPopup.addEventListener('popupshowing', this, false);
|
if (allTabPopup) {
|
||||||
|
allTabPopup.addEventListener('popupshowing', this, false);
|
||||||
|
}
|
||||||
|
|
||||||
/* To move up content area on the tab bar, switch tab.
|
/* To move up content area on the tab bar, switch tab.
|
||||||
If we don't do it, a gray space appears on the content area
|
If we don't do it, a gray space appears on the content area
|
||||||
@ -827,7 +829,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
tabContext.removeEventListener('popuphiding', this, false);
|
tabContext.removeEventListener('popuphiding', this, false);
|
||||||
|
|
||||||
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
||||||
allTabPopup.removeEventListener('popupshowing', this, false);
|
if (allTabPopup) {
|
||||||
|
allTabPopup.removeEventListener('popupshowing', this, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.tabbarCanvas) {
|
if (this.tabbarCanvas) {
|
||||||
this.tabbarCanvas.parentNode.removeChild(this.tabbarCanvas);
|
this.tabbarCanvas.parentNode.removeChild(this.tabbarCanvas);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user