nsBrowserAccessの上書きのタイミングを変更
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3443 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
c3f8baf29d
commit
1f90a9b4a7
@ -879,6 +879,18 @@ var TreeStyleTabService = {
|
||||
}
|
||||
}
|
||||
|
||||
eval('nsBrowserAccess.prototype.openURI = '+
|
||||
nsBrowserAccess.prototype.openURI.toSource().replace(
|
||||
/(switch\s*\(aWhere\))/,
|
||||
<><![CDATA[
|
||||
if (aOpener &&
|
||||
aWhere == Components.interfaces.nsIBrowserDOMWindow.OPEN_NEWTAB) {
|
||||
TreeStyleTabService.readyToOpenChildTab(aOpener);
|
||||
}
|
||||
$1]]></>
|
||||
)
|
||||
);
|
||||
|
||||
this.overrideExtensionsPreInit(); // hacks.js
|
||||
},
|
||||
preInitialized : false,
|
||||
@ -1339,20 +1351,6 @@ catch(e) {
|
||||
'window.BrowserHomeClick' in permaTabs.utils.wrappedFunctions)
|
||||
overwriteProcess('permaTabs.utils.wrappedFunctions["window.BrowserHomeClick"]');
|
||||
|
||||
eval('nsBrowserAccess.prototype.openURI = '+
|
||||
nsBrowserAccess.prototype.openURI.toSource().replace(
|
||||
/(switch\s*\(aWhere\))/,
|
||||
<><![CDATA[
|
||||
if (aOpener &&
|
||||
aWhere == Components.interfaces.nsIBrowserDOMWindow.OPEN_NEWTAB) {
|
||||
TreeStyleTabService.readyToOpenChildTab(aOpener);
|
||||
}
|
||||
$1]]></>
|
||||
)
|
||||
);
|
||||
window.QueryInterface(Components.interfaces.nsIDOMChromeWindow).browserDOMWindow = null;
|
||||
window.QueryInterface(Components.interfaces.nsIDOMChromeWindow).browserDOMWindow = new nsBrowserAccess();
|
||||
|
||||
eval('FeedHandler.loadFeed = '+
|
||||
FeedHandler.loadFeed.toSource().replace(
|
||||
'openUILink(',
|
||||
|
Loading…
Reference in New Issue
Block a user