Tab Mix Plus 0.3.7.3との組み合わせでまるで動かなくなっていた問題に暫定対処
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4212 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d049f7a44e
commit
81ebf0bcf8
@ -1375,7 +1375,7 @@ catch(e) {
|
||||
window.BrowserLoadURL
|
||||
]]>).forEach(function(aFunc) {
|
||||
var source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^function BrowserLoadURL/.test(source))
|
||||
if (!source || !/^\(?function BrowserLoadURL/.test(source))
|
||||
return;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
'aTriggeringEvent && aTriggeringEvent.altKey',
|
||||
@ -1437,7 +1437,7 @@ catch(e) {
|
||||
window.handleLinkClick
|
||||
]]>).some(function(aFunc) {
|
||||
var source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^function handleLinkClick/.test(source))
|
||||
if (!source || !/^\(?function handleLinkClick/.test(source))
|
||||
return false;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
/(openNewTabWith\()/g,
|
||||
@ -1495,7 +1495,7 @@ catch(e) {
|
||||
window.contentAreaClick
|
||||
]]>).forEach(function(aFunc) {
|
||||
var source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^function contentAreaClick/.test(source))
|
||||
if (!source || !/^\(?function contentAreaClick/.test(source))
|
||||
return;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
/((openWebPanel\([^\;]+\);|PlacesUIUtils.showMinimalAddBookmarkUI\([^;]+\);)event.preventDefault\(\);return false;\})/,
|
||||
@ -1532,7 +1532,7 @@ catch(e) {
|
||||
window.BrowserBack
|
||||
]]>).forEach(function(aFunc) {
|
||||
var source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^function (gotoHistoryIndex|BrowserForward|BrowserBack)/.test(source))
|
||||
if (!source || !/^\(?function (gotoHistoryIndex|BrowserForward|BrowserBack)/.test(source))
|
||||
return;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
/(openUILinkIn\()/g,
|
||||
@ -1549,7 +1549,7 @@ catch(e) {
|
||||
window.BrowserGoHome
|
||||
]]>).forEach(function(aFunc) {
|
||||
var source = this._getFunctionSource(aFunc);
|
||||
if (!source || !/^function (BrowserHomeClick|BrowserGoHome)/.test(source))
|
||||
if (!source || !/^\(?function (BrowserHomeClick|BrowserGoHome)/.test(source))
|
||||
return;
|
||||
eval(aFunc+' = '+source.replace(
|
||||
'gBrowser.loadTabs(',
|
||||
|
@ -93,7 +93,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
getTabClosebox : function(aTab)
|
||||
{
|
||||
var close = document.getAnonymousElementByAttribute(aTab, 'class', 'tab-close-button tabs-closebutton always-right') || // Tab Mix Plus
|
||||
var close = document.getAnonymousElementByAttribute(aTab, 'class', 'tab-close-button always-right') || // Tab Mix Plus
|
||||
document.getAnonymousElementByAttribute(aTab, 'class', 'tab-close-button');
|
||||
return close;
|
||||
},
|
||||
@ -788,6 +788,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
scrollInnerBox.removeAttribute('flex');
|
||||
|
||||
if (scrollFrame) { // Tab Mix Plus
|
||||
document.getAnonymousNodes(scrollFrame)[0].removeAttribute('flex');
|
||||
scrollFrame.parentNode.orient =
|
||||
scrollFrame.orient = 'vertical';
|
||||
newTabBox.orient = 'horizontal';
|
||||
@ -863,6 +864,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
scrollInnerBox.setAttribute('flex', 1);
|
||||
|
||||
if (scrollFrame) { // Tab Mix Plus
|
||||
document.getAnonymousNodes(scrollFrame)[0].setAttribute('flex', 1);
|
||||
scrollFrame.parentNode.orient =
|
||||
scrollFrame.orient = 'horizontal';
|
||||
newTabBox.orient = 'vertical';
|
||||
@ -1866,7 +1868,6 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
onTabbarOverflow : function(aEvent)
|
||||
{
|
||||
var box = aEvent.currentTarget;
|
||||
var tabs = this.mTabBrowser.mTabContainer;
|
||||
var horizontal = tabs.orient == 'horizontal';
|
||||
if (horizontal) return;
|
||||
@ -1874,7 +1875,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
if (aEvent.detail == 1) return;
|
||||
if (aEvent.type == 'overflow') {
|
||||
tabs.setAttribute('overflow', 'true');
|
||||
box.scrollBoxObject.ensureElementIsVisible(tabs.selectedItem);
|
||||
this.scrollBoxObject.ensureElementIsVisible(tabs.selectedItem);
|
||||
}
|
||||
else {
|
||||
tabs.removeAttribute('overflow');
|
||||
|
Loading…
Reference in New Issue
Block a user